Commit Graph

270 Commits (fb49e30c417d5bf0b77c4968685159167ee1a2ec)

Author SHA1 Message Date
cutealien 128f5a14e9 Replace asserts in tests with new macro assert_log.
This is done to allow all tests running through even when one has a problem. Otherwise people just comment-out the asserts. The macro will log file, line and assert-test to the tests.log.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4126 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-03 21:27:22 +00:00
cutealien 1746799898 Documentation changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4120 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-26 20:53:56 +00:00
cutealien 4ae5949756 - line2d::getClosestPoint can now also get the closest point on the line additional to only checking for closest point on the line-segment.
- Avoid division by zero in line2d::getClosestPoint when start- and endpoint are identical.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4112 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-21 15:13:41 +00:00
cutealien b994e969ab - Fix font-loading which got broken by fixed xml-loading. Thanks @ pc0de for finding and providing a test and patch.
- Don't crash draw2DSpriteBatch when it get's no textures.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4109 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-19 10:40:55 +00:00
cutealien 86e5345306 - XML-reader now preserves all whitespace. So even newlines are now returned as EXN_TEXT nodes. Old behavior was dropping those, but it handled unix-style newlines badly and should rather have preserved all whitespace or none. Preserving no whitespace could be useful feature for the future.
- XML documentation updated where documentation and implementation had been different.
- c::b Linux now compiling engine with -fno-exceptions like the Makefile. Should probably use no-rtti as well, but haven't figured out how to do that without getting warnings for every c-file.
- tests now compiling with -fno-exceptions and defines _IRR_STATIC_LIB_ plus _DEBUG
- new function xmlCompareFiles in testUtils to replace binaryCompareFiles for tests with xml-files as binaries always broke with different wchar_t sizes.
- test ioScene now working on Linux-32


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4092 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-20 19:43:51 +00:00
hybrid e62884f781 Merged revisions 4072-4081 from 1.7 branch. Latest updates due to release of 1.7.3
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4085 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-20 01:14:57 +00:00
cutealien 9c8790136c More fixed to make line2d work with integers this time in intersectWith and getClosestPoint.
I've renamed test line2dIntersect to testLine2d and added new tests there (lazy).
Similar fixes for integers should be done in line3d, but can't do that now, so has to wait.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4076 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-13 15:16:46 +00:00
cutealien 9184ea4c47 Merged revisions 4057-4071 from 1.7 branch.
- GUIEditor attributes have now scrollbar to be editable
- Remove warning when compiling line2d::intersectWith with other types than f32.
- CodeBlocks tests project file now compiling also on Linux.
- Slightly more lenient comparison in test textureRenderStates


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4072 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-11 13:07:07 +00:00
cutealien d9a6ac315a - line2d::getMiddle and line3d::getMiddle work now also with integers. But can be slower in debug and for compilers which are not optimizing division by 2 to multiplication by 0.5 for floats also in release (if that still matters we need a template specialization here).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4070 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-10 12:08:44 +00:00
hybrid 40480a7822 Merged revisions 4001-4056 from 1.7 branch. Keycode updates, fix compilation errors, vector normalize error case fixed, joystick safety fixes, editbox updates, meshviewer modal window fix, isPointInsideFast changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4057 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-01 23:29:32 +00:00
bitplane ade2a3938c Added IGUIEnvironment::getHovered, returns the last hovered element.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4038 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:24:23 +00:00
cutealien bf5890e814 - Add support for bsp brush entities. Written by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3991 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-09 19:28:12 +00:00
hybrid afa978f2a5 Merge from 1.7 branch, revisions 3877-3908. Fix for getSphericalCoordinateAngles, some warnign fixes, md2 normal fix, several GUI fixes, isPointInside fix, zip endianess fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3909 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-08 21:50:10 +00:00
hybrid 7b5f390920 Fix comment about makefile changes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3900 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-05 12:32:10 +00:00
cutealien 0d5d30acaf Add IGUIComboBox::setMaxSelectionRows and IGUIComboBox::getMaxSelectionRows
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3883 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-20 09:16:34 +00:00
cutealien 1e90e2d9b3 Merge revision 3848-3875 from 1.7 branch:
- EMIE_MOUSE_WHEEL messages now handled correctly in several gui-element when wheel isn't just 1.0 or -1.0
- Fix serialization for CBillboardSceneNode, it had missed 2 color
- Fix 'k' in bigfont.png
- Recalculate FrameRect and ScrollPos in CGUIEditBox when AbsoluteRect gets changed


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3876 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-07 21:56:31 +00:00
cutealien e373bc4cf4 Merged revision 3847 from 1.7 branch. Fix problems in textwrapping in CGUIStaticText. Did use wrong size and did ignore last word of the text. NOTE: this will need some more work now in trunk as trunk supports by now right-to-left text which probably needs similar fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3874 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-07 21:34:10 +00:00
cutealien 98b7d10ec9 Scenemanager switches from type ESNT_UNKNOWN to type ESNT_SCENE_MANAGER.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3867 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-23 12:55:31 +00:00
cutealien caac1b4505 - Add getActiveFont to all elements which have setOverrideFont for cleaner code
- Add getOverrideFont to all elements which have setOverrideFont to have a consistent interface


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3861 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 21:41:10 +00:00
cutealien 7d101163aa IGUIEditBox: Added setDrawBackground. Crash-fix with wordwrapping and spaces. Remove bug with spaces getting added to the end of each line. Add missing serialization for Border.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3857 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-20 20:36:07 +00:00
cutealien dd3ef0fdd7 CGUISkin::draw3DSunkenPane no longer ignores fillBackGround in non-flat mode. Also borderlines are no longer drawn overlapping to avoid ugly corners.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3856 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-19 22:52:18 +00:00
cutealien 3d930cba96 Add missing implementation for CDummyTransformationSceneNode::clone (thx @ Voxel for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3854 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-16 21:18:31 +00:00
hybrid 7b5fa07671 Merged revisions 3729-3829 from 1.7 branch. Fixed serialization of camera nodes, fix array::erase, fix mem leaks in example 22, fix interpolation in SColorf, fix crash in collada loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3830 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 06:45:29 +00:00
hybrid a6e94cc3e9 Changed name and signature of getOperationSystemVersion, which is now correctly called getOperatingSystemVersion. Also changed the internal type and OSOperator creation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3778 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 20:18:54 +00:00
cutealien 1869d1ec6c Added IGUITabControl::insertTab, IGUITabControl::removeTab, IGUITabControl::clear and IGUITabControl::getTabAt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3773 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 13:31:33 +00:00
hybrid 13793ac522 Merged from branch 1.7, revisions 3607-3725. Fix some compilation errors, fix soname in Linux Makefile, calculation fix in vector2d class, CGUIScrollBar event handling fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3726 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-18 21:32:00 +00:00
cutealien 4f990e2084 Added IGUIListBox::getItemAt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3723 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-15 22:07:31 +00:00
hybrid 418b861827 Merge from 1.7 branch, revisions 3559-3607. Fixed for GUI clipping, PCX loader, and OSX project.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3608 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-13 19:15:48 +00:00
cutealien a4dc43f581 Added IGUITable::getColumnWidth
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3603 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-06 16:23:51 +00:00
bitplane 5ea3a40831 Added method to add an archive from an IReadFile pointer. Added FileToHeader, a tool for embedding a collection of IReadFiles into a user app. Described a way to make single file portable applications using it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3586 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-02-04 00:44:08 +00:00
bitplane 7543da637a Added ISceneManager::createSceneNodeAnimator to create an animator by name, so scene loaders don't need to worry about how the animator factories are used.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3579 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-02-03 06:56:26 +00:00
bitplane b25ed6a92f Fixed a bug introduced when reversing the order of the animators, fixed the Makefile so "make install" symlinks from the soname to the binary, removed an unused variable from HL loader
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3578 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-02-03 02:53:31 +00:00
bitplane d9798dafe7 Added SMF loader, supporting 3D World Studio meshes. Originally written by Joseph Ellis
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3575 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-31 10:43:08 +00:00
bitplane e451fa41c2 The loader selection process now consistently checks loader lists in reverse order, so new loaders added to Irrlicht override the internal ones. This applies when adding external mesh, image, scene and archive loaders, image writers, plus node, animator and GUI element factories.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3568 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-20 08:50:15 +00:00
bitplane 901dac358a Added scene loader interface and moved the .irr loading code out to CSceneLoaderIrr. In future can support scene formats properly rather than loading them as meshes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3566 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-17 20:12:17 +00:00
hybrid c7d6ea0ecd Merge from 1.7 branch, revisions 3535:3557. MS3D optimization and changes update. Skipping date updates which have been made in this repository already.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3558 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:48:40 +00:00
bitplane 34ccfb68d8 Renamed IGUIElement::bringToBack to sendToBack, like in Win32 SDK
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3554 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-12 19:48:13 +00:00
hybrid 2ed9d27731 Add all changes that I added over the last year or so ;-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3553 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-12 00:25:06 +00:00
cutealien f8655a2d5d Send EGET_ELEMENT_CLOSED event when context menues should be closed (thx @ Mloren for reporting).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3550 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-10 20:28:23 +00:00
bitplane 4fc3ef98cd Added root GUI element type. Added tree view to GUI editor, from Armen
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3545 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 18:46:12 +00:00
bitplane 37dce51ed5 Fixed scrollbars in GUI editor
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3541 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 00:47:30 +00:00
cutealien 481f550313 Add some getters to IGUIImage: getImage, getColor
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3520 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-27 20:33:56 +00:00
hybrid 1ad3c74407 Merge from 1.7 branch, revisions 3449-3513. createImage fixed. Many GUI fixes. Saved particles can be loaded again. Volume light, skydome and water scene node updates. Let hw mapping hint be loaded. D3D reset fix, now terrain scenes can resize screens again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3514 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-19 19:39:20 +00:00
hybrid d9c9de5158 Add a new texture lock mode for write-only access. The lock method has changed for this. Support is only implemented under OpenGL so far.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3510 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-14 23:32:54 +00:00
cutealien cee8c4fbb5 - Add function IParticleSystemSceneNode::clearParticles
- Speedup deleting of particles


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3503 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-12 16:46:47 +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 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 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