Commit Graph

2111 Commits (13793ac5224da4d6424d0802948b81b5b6dc27b1)

Author SHA1 Message Date
hybrid 5fdbe503b5 Last updates for proper window closing after a test has run.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3499 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 16:19:34 +00:00
hybrid cfd8e9412d Add a test which tries to reproduce a bug mentioned by REDDemon. Works correctly here, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3498 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 10:33:11 +00:00
hybrid 0fc4c3e777 Avoid setting texture settings when no texture is active
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3496 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 00:01:52 +00:00
hybrid 68b6a2fd2a Fix ATI_draw_buffers support
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3494 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-08 00:37:09 +00:00
hybrid 8cf6ce43d6 Make viewPort test a little less tight
Add more driver tests to let mrt test go through on systems which don't support MRT

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3493 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-08 00:35:47 +00:00
hybrid 8c6c657ef4 Fix more device->drop calls to properly remove the window as well under windows.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3492 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 18:16:42 +00:00
hybrid 195c746018 Add driver attribute element for AntiAliasing level. This allows to check whether the driver has AA enabled, and which level.
Fix AA setup for OpenGL under windows, where the extension was missing and no error came up due to unsupported feature request. Now, the driver recognizes the missing support and properly sets AA to 0.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3491 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 17:58:11 +00:00
hybrid 884ede4efd Fix transformation matrices for OpenGL rendering after setRenderTarget.
Fix draw2DImage into RTT in BurningsVideo
Let ViewPorts unchanged if illegal viewport was given.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3490 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 16:21:43 +00:00
hybrid 014272f2c1 Fix the text scene node placing in viewports. The problem was, that the calculation took the absolute viewport dimension into account, while rendering into the viewport requires the screenwidth to be taken. Hence, the text was usually misplaced. The collision method can still be used for this mixed mode calculation (get screen coordinate during viewport rendering, use it for full screen rendering), but requires an additional parameter.
Software drivers don't support 2d rendering into viewports, so they still fail to properly position text (or other 2d things) into a viewport.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3489 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 15:22:58 +00:00
hybrid eff82803d3 The checkbox color seems to have changed. Please check if this was intended!
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3488 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 15:23:49 +00:00
hybrid af86f53958 Avoid access to StencilBuffer if it is non-existent.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3487 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 14:02:07 +00:00
hybrid d1a4b28847 Avoid duplicated render state resets in 2d mode under OpenGL
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3486 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 13:54:10 +00:00
hybrid fbde0c7fc8 Fix mrt disabling, also avoid duplicated enabling for all rtts. Both affects only OpenGL
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3485 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 13:53:00 +00:00
hybrid e2fddfe5a6 Fix file search, bug found by Sylence
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3484 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-05 23:45:11 +00:00
hybrid e877b786c7 Patch by Auria, which allows to render text in gui static text elements over the element clip area. This makes handling of changing text simpler. As default, this feature is turned off.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3483 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-05 15:19:51 +00:00
hybrid 8b5ed2bc5f Change addShadowVolumeSceneNode to replace the current shadow completely. This allows to change the shadow parameters, such that a call to addShadowVolumeSceneNode will always result in the correct shadow. Note that redundant calls to this method will be quite expensive now, so avoid them.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3477 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-04 23:45:21 +00:00
cutealien ac1d878aac Add IGUIEnvironment::removeFont (requested regularly).
Note: Currently we still will have the font-texture for CGUIFont's in the cache afterward.
But that needs a more general mechanims that allows cleaning up textures easier when the last one has been removed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3465 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-02 22:14:44 +00:00
cutealien 7e20fd0d06 - Use SW_SHOWNORMAL instead of SW_SHOW in first ShowWindow (recommended by msdn)
- Fix problem that NULL device did steal focus away from other devices when created.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3461 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-25 10:53:45 +00:00
hybrid bdb55248e7 Fix mem leak found by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3460 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-25 09:33:02 +00:00
hybrid 2fe0df7686 Update opengl headers to OpenGL 4.1, add extensions to glext handler.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3459 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-24 23:50:02 +00:00
hybrid 4e586c7a9f Update to bzip2 1.0.6, libpng 1.4.4 and lzma from 9.20 SDK
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3458 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-24 22:30:16 +00:00
cutealien 1e69bb99bc Functions in IMeshCache expecting IAnimatedMesh* parameters removed as similar functions with IMesh* can be used since a while. Fixes also problems when IAnimatedMesh* got upcasted to IMesh*. (thx @ Greenya for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3457 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-24 21:28:15 +00:00
hybrid 22e391f814 Merged from 1.7 branch, revisions 3421-3447. Fix for Attributes, documentation fixes, disabled menu handling, treeview disabling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3448 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 22:57:26 +00:00
cutealien 5596d96da8 Use more descriptive variable-names in addArrowMesh (noted by Yoran)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3447 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 16:00:44 +00:00
cutealien c9694ad3c5 Fix compile errors.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3446 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 14:21:50 +00:00
hybrid 031838cbb8 Fix blend state propagation for MRTs to OpenGL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3445 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 12:36:30 +00:00
hybrid 8aa814a7c7 Add 64bit targets for msvc2010, supplied by Josh Brown
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3444 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 12:09:28 +00:00
hybrid 96f77300e2 Fix possible infinite loop due to testing an unsigned for >=0
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3443 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 12:04:25 +00:00
cutealien 8b71ff58b4 The following functions will now use a "ISceneNode *" instead of a "const ISceneNode *":
ITriangleSelector::getSceneNodeForTriangle, ISceneNodeAnimatorCollisionResponse::getCollisionNode, ISceneCollisionManager::getCollisionPoint and ISceneCollisionManager::getCollisionResultPosition.
As collision functions often are followed by changing node positions users where so far forced to using const_casts (found by Greenya).
(This will lead once more to many post about correct getCollisionResultPosition usage, but can't be helped - those consts were too restricitive, sorry)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3442 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-21 00:23:09 +00:00
cutealien 5c3e9500f8 Add vector3d::getAs3Values (patch provided by slavik262)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3441 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-20 13:31:44 +00:00
cutealien 5db243df93 Add function to SViewFrustum to get corners of the near plane (patch provided by slavik262)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3440 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-20 13:18:30 +00:00
cutealien 43fa6a674f - ParticleFadeOutAffector::setFadeOutTime can no longer be set to invalid values
- ParticleFadeOutAffector uses now throughout u32 for fadeOutTime (found by greenya)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3439 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-16 23:45:45 +00:00
cutealien 90c021e123 - Add missing access function CParticleSystemSceneNode::getAffectors() (seen by B@z)
- Add missing setters/getters for particle emitters (seen by B@z)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3438 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-16 23:21:34 +00:00
cutealien e448136f57 - Compile-defines can now be disabled from Makefiles/Projectfiles instead of having to change IrrCompileConfig.h each time (that's mostly to make it easier to use identical sources for client&server versions by simply using 2 different projectfiles)
- Disabled Xcursor support by default to avoid the additional link dependency on Xcursor lib (too many people got confused by that already).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3437 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-09 22:31:29 +00:00
cutealien 243356035d IGUITabControl::setActiveTab should only take IGUITab* and not IGUIElement* (thx to greenya for finding)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3434 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-07 23:52:23 +00:00
cutealien 3897efe381 - Add new skin-colors: EGDC_GRAY_WINDOW_SYMBOL, EGDC_EDITABLE, EGDC_GRAY_EDITABLE, EGDC_FOCUSED_EDITABLE
- Make sure disabled state is extended to sub-elements.
- Fix that icons in tabcontrol get also affected immediately by skin-changes
- Make disabled state for several elements more visible


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3433 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-07 23:36:13 +00:00
hybrid 61d232290f Fix cleanup in case of a failed visual creation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3432 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-07 20:17:52 +00:00
cutealien 45752ab653 Bugfix: XML-Reader from ANSI->wchar_t should no longer mess up characters above 127
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3429 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-10-14 12:06:24 +00:00
cutealien 059af2899e Changing compile settings for VS10 in debug builds, now using: _ITERATOR_DEBUG_LEVEL=0
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3428 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-10-14 09:18:04 +00:00
hybrid cc927f36c4 Fix method names of localtime for old MSVC versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3427 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-10-08 08:27:33 +00:00
hybrid 2e5f0eebe4 Fix outdir setting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3424 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-23 12:56:09 +00:00
hybrid d12a775318 Fix uninitialized member. Was working ok, but is still no good.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3423 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-23 12:28:01 +00:00
hybrid a72fe29f29 Avoid mipmaps by default, when rendering 2d elements
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3422 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-23 12:27:10 +00:00
hybrid 2db72f3aa9 Remove unused code fragment
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3421 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-23 12:24:32 +00:00
hybrid 06c13f78bc Merge from 1.7 branch, revisions 3389-3419. Only a valgrind warning in heapsort. Also skipped the date bump, which would cause too many conflicts. Will be changed later on manually.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3420 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-20 21:34:39 +00:00
cutealien 43a1fd36e7 Add xml example written by Yoran Bosman.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3419 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-19 21:18:00 +00:00
cutealien 4a5a8ef7f4 Bugfix: don't clear cursors in linux-device after the display has been closed already. Fixes crashes on application shutdown with more than one device.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3418 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-19 21:11:39 +00:00
hybrid e12988e77a Fix collada loader bug, which tried to access non-existing textures. Found by Sylence.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3416 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-17 11:19:10 +00:00
hybrid 3a66a00b68 Add a test case for mrt usage. Based on code by wing64.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3414 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:26:03 +00:00
hybrid fc8bf66fbc Fix driver attribute setting in all other drivers.
Fix wrong destruction calls, due to missing drop ion the attribute. Was a cyclic dependency on the video driver.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3413 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:22:33 +00:00