Commit Graph

2615 Commits (96a10f2d2f1860d47447138b3eac187237942163)

Author SHA1 Message Date
nadro 96a10f2d2f - Fixed some methods and variables names in IImage/CImage classes.
- Added query feature related to DXT compressed textures.
- Added compressed textures support for D3D9.
- Fixed minor bugs in OpenGL related to compressed textures handling.
- Properly handle compressed textures in D3D8 and Software drivers (Those drivers doesn't support compressed textures).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4450 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-26 02:28:41 +00:00
nadro e2aee66c49 - Removed IImageCompressed and derived.
- Extended IImage class for support compressed textures.
- Improved DDS loader for support mip map loading.
- Added DXT1-5 compressed textures support for OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4449 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-25 03:21:06 +00:00
nadro 6f278dd40f - Added partially (IImageCompressed part) support for compressed textures. Currently only DDS format is supported.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4448 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-23 04:37:16 +00:00
cutealien 4250b6f7d3 Had added a const too much in last check-in.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4447 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-21 23:01:03 +00:00
cutealien 3a40f567cf Add function ISceneNode::getTransformedBoundingBoxEdges.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4446 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-17 20:03:52 +00:00
nadro 758c1ff0dc - Fixed MacOSX compilation issues.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4444 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-17 14:42:20 +00:00
hybrid 962677d097 Fix warning about wrong number scheme on some 64bit platforms
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4443 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-17 12:53:46 +00:00
hybrid 2542e9f888 Init order warnings fixed
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4442 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-17 12:51:10 +00:00
hybrid cad8bd981c Fix problems with older compiler versions on OSX
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4440 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-16 14:41:20 +00:00
cutealien 186ee4a929 Last commit was about: Improve automatic compiling under solaris (proposed by curaga)
(sorry commit-message got lost because I ignored some warning)
Also fixed a comment again which I accidentally messed up in last login.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4438 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-15 22:27:25 +00:00
cutealien 1096511f49 git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4437 dfc29bdd-3216-0410-991c-e03cc46cb475 2013-01-15 22:24:00 +00:00
cutealien 9736e456db - In IGUICheckBox add: setDrawBackground, isDrawBackgroundEnabled, setDrawBorder, isDrawBorderEnabled
- Some minor function re-ordering in IGUIStaticText


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4433 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-08 18:01:39 +00:00
cutealien 187c56cceb comment added
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4430 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-04 16:59:38 +00:00
cutealien a6ce50eabb Again: IGUISpinBox now passes on the EGET_BUTTON_CLICKED, EGET_EDITBOX_CHANGED and EGET_EDITBOX_ENTER events from it's sub-elements (wasn't fixed with last check-in).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4429 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-04 15:15:42 +00:00
cutealien ae541ffaf4 - IGUISpinBox now passes on the EGET_BUTTON_CLICKED, EGET_EDITBOX_CHANGED and EGET_EDITBOX_ENTER events from it's sub-elements.
- IGUISpinBox no longer validates values after each character type but only on KEY_ENTER and when losing focus. New behavior can be set with IGUISpinBox::setValidateOn

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4428 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-04 14:35:28 +00:00
cutealien c2d2390e9e IAttributes::getAttributeAs functions now can have a customizable default-parameter to return when attributeName is not found. This makes it easier to work correctly with old serialized data when adding new variables. Also it would probably be worth it passing generally in all serialization the old value as default-parameter, then it can handle missing serialization data as well.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4427 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-04 12:52:47 +00:00
nadro ba95913a1a - Added next optimizations to OpenGL driver related to blending, alpha testing and cull facing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4426 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-03 19:28:50 +00:00
cutealien 433445cdc2 Add a LeakHunter class which can be enabled with compile-flag _IRR_COMPILE_WITH_LEAK_HUNTER_ to find leaking IReferenceCounted objects.
Will break OSX compiling for now as that project file is not yet updated. I hope other project files are all fixed correctly.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4425 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-03 17:24:30 +00:00
nadro f9d0f81342 - Fixed blending issues in example no. 08 (OpenGL driver).
- Added ECFN_DISABLED value (it works like ECFN_NEVER worked before) and changed ECFN_NEVER behaviour (it works like its equivalent value in OpenGL/Direct3D).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4424 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-03 05:07:17 +00:00
cutealien 15bd95977a Add _IRR_COMPILE_WITH_XML_ define to allow compiling Irrlicht without xml (patch written by curaga)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4423 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-02 23:13:21 +00:00
nadro 5457c5e5b9 - Added vertex texture support to D3D9 driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4422 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-31 17:58:09 +00:00
cutealien d39f77f0b3 Remove superfluous check in IGUIElement::recalculateAbsolutePosition (found by cppcheck utility).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4421 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-31 00:29:25 +00:00
cutealien 6f3942e544 Initialize variables in second SSharedMeshBuffer constructor.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4420 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-31 00:27:31 +00:00
cutealien 6851f05df2 Add missing inlude to vs10 project file.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4419 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-31 00:24:26 +00:00
cutealien ac75fdd5fd - Add functions to set/get cursor character and blinktime to IGUIEditBox
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4418 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-30 23:37:10 +00:00
nadro 5562ee1d45 - Optimized 2D materials rendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4417 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-26 03:50:05 +00:00
nadro cc6f569bc1 - Fixed issue with 2D line rendering in OpenGL.
- Fixed issue with example no. 3 (other driver also need similar improvements -> move texture parameters update from OnSetMaterial/setBasicRenderStates to OnRender, because SMaterial compare operator doesn't check SMaterialLayer values).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4416 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-26 02:46:22 +00:00
nadro 45c2694010 - More improvements in client states handling.
- Removed debug info drawing for a light in example no. 11.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4415 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-24 03:30:47 +00:00
nadro 4e0dc592e6 - Improved 2D rendering (removed GL 1.1 - glBegin, glEnd deprecated stuff).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4414 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-24 02:35:27 +00:00
nadro d493514cf6 - Improved client states handling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4413 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-24 01:29:48 +00:00
nadro 42c92aa53b - Improved OpenGL optimized calls organization.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4412 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-23 04:14:49 +00:00
nadro dd15cecd50 - Fixed OSX compilation issues.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4411 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-22 17:15:28 +00:00
nadro ff8e50738d - Finally improved active texture handling in OpenGL.
- Optimized rendering with ARB shaders in OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4410 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-21 23:14:00 +00:00
cutealien 7afcfbd12c Calculating values for orthonormal camera on Collada export. Note that I have found no tool yet which can load them, so I have no test so far (CColladaFileLoader also ignores existence of orthographic cameras so far). But the old export was definitely wrong while the new solution should at least work in theory.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4409 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-19 12:11:52 +00:00
nadro e0952a9c3f - Partially improved active texture handling in OpenGL (cause some issues with 2D rendering visible in example no. 11).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4408 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-19 03:10:57 +00:00
cutealien 06193571c1 Collada exporter now exports the camera matrix as "lookAt" values. The problem with rotations was that the camera disregards the up-vector in rotations (also using lookAT is probably nicer anyway for cameras). This should likely also be fixed in the camera code. But there's more trouble it seems as for example projection matrix changes also don't register in the near/far values. I've just added a todo there in the Collada export. Meaning that orthographic camera export is still broken (still experimenting how to fix that best).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4407 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-18 19:10:28 +00:00
nadro 9f8f38e16b - Improved organization of texture state cache.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4406 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-18 17:01:01 +00:00
nadro 165b266bef - Fixed problem with dynamic_cast.
- Restored const-correctness for draw2DImage methods (it was changed in previous revision).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4405 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-18 14:31:15 +00:00
nadro 6238406ccd - Improve OpenGL calls cache (This may be unstable revision, require more tests). Cache will be improved further in close future.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4404 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-18 03:30:52 +00:00
nadro 5b282f8f83 - Minor improved speed of shader based material rendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4403 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-18 00:08:00 +00:00
cutealien d8611d8279 Add IColladaMeshWriter::findGeometryNameForNode
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4402 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-14 18:26:49 +00:00
nadro 36f1a5cdb1 - Added deprecated method for backward compatibility with previous shader constant system handling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4401 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-14 16:02:57 +00:00
nadro 4f1c2b4e54 - Fixed issues with D3D9 get constant ID method.
- Fixed example 10.Shaders.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4400 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-14 15:20:37 +00:00
nadro 263be759d1 - Improved a shader interface handling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4399 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-13 18:49:52 +00:00
nadro fbedea08b6 - Removed shader interface for bool variables (int interface will handle them).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4398 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-13 17:24:52 +00:00
nadro 5fbcafdefd - Removed unnecessary OpenGL calls. Thanks to Hendu for prepare patches.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4397 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-13 17:11:11 +00:00
cutealien ab6df40cdd Enable MultiProcessorCompilation in VS 10 for faster compiling (it's usually on by default, maybe got disabled because it was converted from an older project file once).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4392 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-03 20:59:27 +00:00
cutealien d5f166fd70 Merging 1.8 branch:
- r4389: Fix crashes in CCubeSceneNode::clone and CSphereSceneNode::clone (reported by  marsupial)
- r4387/r4390: fixed getDepthFunction in IQ3Shader which always returned ECFN_EQUAL due to missing break (found by the cppcheck tool)
- r4382: Fix the clipping in the listbox drawing which was only showing the right line of the sunken pane (reported by Mloren and Abraxas).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4391 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-03 20:47:54 +00:00
hybrid 5762641633 Use methods access to avoid out-of-bounds array usage
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4386 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-27 08:27:53 +00:00
hybrid 31e8ed045a Convert CAttributes Parameter member to dynamic memory allocation, as it is reference counted.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4385 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-27 00:44:19 +00:00