Commit Graph

1087 Commits (39c039302372d9cab39c4553f18b6b61f4a1969c)

Author SHA1 Message Date
cutealien 5cbc0836d1 IGUIElement::getElementFromPoint now virtual.
Was needed because just having isPointInside virtual doesn't allow controlling sub-element behavior.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4787 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-23 23:00:48 +00:00
cutealien 6d5b191eea remove redundant includes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4786 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-22 20:40:15 +00:00
cutealien 9f4b70a123 Merge branch releases/1.8 revisions 4773 to 4778 into trunk:
- Fix bug in IGUISkin serialization which messed up serialization of the button-pressed offsets (Thanks at @Midnight for reporting).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4779 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-18 12:36:58 +00:00
nadro ea41a9146f - Remove force blending mechanism and improve blending handling in material renderers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4775 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-16 21:31:52 +00:00
nadro de6df498e6 Fixed issue with wrongly enabled Z-writing for transparent shader materials. Thanks Hendu for this fix.
Fixed issue with missing blending when transparent shader material is used with blending operation set to EBO_NONE.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4774 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-15 18:21:23 +00:00
cutealien 322b1abef1 More behavior control for particles:
- ParticleSystemSceneNode does now affect the particle movement direction by default. Can be disabled to get old behavior.
- Allow interpolating postions which is useful when particles are attached to fast-moving nodes (to avoid regular patterns).
- Invisible behavior flags from check-in yesterday re-implemented with new general behavior flags.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4770 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-10 18:44:49 +00:00
cutealien ca6029b564 Allow more control over particle behavior when the ParticleSystemSceneNode is invisible.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4769 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-09 17:59:05 +00:00
cutealien 7d8307b1da - ISceneNodeAnimators can now be disabled and paused.
- Moved StartTime in the ISceneNodeAnimators class instead of derived classes.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4767 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-08 14:39:11 +00:00
cutealien c11d706e6a Get rid of some nested anon types.
Unfortunately more tricky to get rid of those in S4dVertex, so can't fix em all.
Reason is that pedandic clang no longer likes those in newer clang versions. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4766 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-08 13:18:53 +00:00
cutealien 4e5075d93c Remove comma at end of enum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4763 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-07 20:17:20 +00:00
cutealien 71e6c303ec Add header which I forgot in last check-in, sorry!
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4760 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-04 10:12:39 +00:00
cutealien 7336c44751 Focus behavior of IGUIEnvironment now controllable (right-click focus, mouse-over focus). Disabled elements no longer get the focus unless users enforce it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4759 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-03 21:07:25 +00:00
cutealien 5b156c1dca Buttons can now now have 7 more image-states, 1 more sprite-state and the sprites are now scaleable.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4756 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-02 21:05:39 +00:00
cutealien 88581a4c42 IGUIEnvironment::hasFocus can work with a const pointer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4755 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-02 19:23:20 +00:00
cutealien 50f43d5a3d Spritebanks can now draw scaled sprites.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4754 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-02 16:33:19 +00:00
cutealien 14fd2945cc Mention in documentation that getSpriteBank currently doesn't load files (that's never been implemented).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4752 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-02 00:10:14 +00:00
cutealien 911f70b8bb Improve spritebank slightly (more comfort functions and documentation).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4751 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-02 00:07:26 +00:00
cutealien f21b7b9cf8 Reverting last changes - there is more stuff broken with generating documentation, so I suspect the real troubles is the layout file.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4747 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-30 17:05:14 +00:00
cutealien 8133fef8d2 Fixing doxygen layout for ISceneNode. Same should probably be done throughout.
Our current member function documentation look often rather strange. The reason is that the first 
line in multi-line comment is handled special (it get's a box around it). So in the cases where we use
this for \param or have sentences starting in that line and continuing in the next it always looks broken.
Please click for example through IGUIElement documenation which is not yet fixed to see this.
Also links to enums don't seem to need @ref but just ::my_enum_name.  


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4746 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-30 16:43:07 +00:00
cutealien c5f271b4fc Improved i18n key input for X11. Which means languages like cyrillic work now.
Japanese not yet, but we're even a little closer to that now.
Dead-key handling is not working. I just can't figure it out (X11 documentation and examples make me swear badly).
Users which have language input with dead-keys (like ^) will now have those characters always ignored.
Before it had just printed the characters but set a complete wrong key-code. So dead keys partly better, partly worse.
But this solution is going in the right direction. Either we figure out later why X11 doesn't handle dead-keys or we handle them ourselves.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4743 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-28 17:30:54 +00:00
cutealien be8b58503a IGUIEnvironment::getNextElement now public (was only in CGUIEnvironment before).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4737 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 16:42:24 +00:00
cutealien ff7eee0801 Add IGUIImages::setDrawBounds/getDrawBounds to allow coding stuff like progress bars.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4734 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 23:28:01 +00:00
cutealien 3fc1052725 Improve documentation for tabcontrol.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4732 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 16:36:25 +00:00
cutealien d2d6088917 Add IGUIImages::setSourceRect/getSourceRect to allow using only parts of an image (can also be used to mirror and scroll them).
Thx @Nalin and @StarSonata who both proposed patches for this in the past.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4730 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 13:42:08 +00:00
cutealien 0dbead2597 Change the rest of the attributes interfaces to pass parameters by const ref instead of per value.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4726 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-15 20:49:02 +00:00
cutealien 5ee9c208b4 Ensure vector3df and all classes containing a vector3df are passed by reference instead of per value. Thanks @Danyal Zia for the patch (#280).
This is breaking the IAttributes interface - so anyone who derived from that will have to update his implementation. More changes in that interface probably coming later today.
The idea behind the patch is preparing the engine for SSE support.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4725 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-15 20:14:32 +00:00
cutealien 84de6cb206 triangle3d constructor and line3d::getIntersectionWithSphere passing vectors now as const-ref instead of per value. Thx @nemo for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4719 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-13 17:08:46 +00:00
cutealien f763315a9b Improve documentation for new texture-loader interface and mention that the old solutions are deprecated.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4707 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 13:57:08 +00:00
cutealien 4d45ef2ec7 IMeshTextureLoader could be simplified further with the recent ITexture addition.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4706 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 13:07:06 +00:00
cutealien 359ae63b53 Add ITexture::getSource which can be used to check where the last IVideoDriver::getTexture call found the texture. Thx @Bobbo for helping me to find a better enum name ;-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4705 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 12:55:15 +00:00
cutealien 6b4dc7c50a Simplify IMeshTextureLoader interface - getRecentTextureName was not needed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4704 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 12:07:46 +00:00
cutealien bbc215fdc5 Add IMeshTextureLoader interface and replace texture-loading algorithms in most meshloaders.
Previously each meshloader had implemented texture loading independendly. This had caused a lot of redundant codes and behaviour 
between different meshloaders was often different. So we have now one common interface which should be used by all meshloaders.
This also allows deprecating TEXTURE_PATH attributes as those paths can now be set by that interface and for all meshloaders using it.
I have replaced the codes for the 3DS, B3D, CSM, Collada, DMF, LMTS, LWO, MY3D, OBJ, OCT, Ogre, SMF and X meshloader.
Not changed (just using old code) are: MS3D (I forgot that one), CIrrMeshFileLoader (haven't figured out how it works yet).
STL and PLY both don't load textures and need no changes.
MDL, MD3, MD2 and BSP all work a little different (the textureloading there isn't implemented inside the meshloaders). Those could maybe still be adapted.
Stuff still needs a lot more test (unfortunately I don't have test-models for most formats...), but wanted to check it in already to get some feedback.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4703 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-02 00:56:46 +00:00
cutealien 7d44da69a4 Improve documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4702 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-01 11:46:31 +00:00
cutealien f4fbe1b502 Second try on fixing some rounding problem with vector3d<s32>.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4699 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-20 19:45:54 +00:00
cutealien f0058fbd66 Prevent some precision troubles on some compilers when working with vector3d<s32>. Thx @AReichl for bugfix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4698 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-20 14:36:29 +00:00
cutealien ee19b6b5e8 Bugfix: IGUIElement::addChild now prevents setting an element as it's own child (fixes for example a crash in the GUI-editor).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4694 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-18 12:02:22 +00:00
cutealien d697587211 Implement setWindowSize for Win32 device.
Note about implementation: There is already IVideoDriver::getScreenSize() which is more or less the getter for this function. But I don't think it belongs in IVideoDriver and also this function is about the window and not the screen obviously. So might make sense adding getWindowSize and deprecating getScreenSize, but that needs further changes in GUI. For now I just added a comment and let the rest be as it was.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4693 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-17 14:57:03 +00:00
cutealien d6f7029221 Add IrrlichtDevice::setWindowSize (implemented only on X11, will try Windows next).
A few minor changes to the GUIEditor:
- Displays the window-size
- Update (rarely) when Window now active
- Sleep after drawing to prevent update-delays on resizing
- Driver choice now only for available drivers
- Kick out the "Tools" tab as it's unused so far and just irritating users.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4692 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-17 12:01:07 +00:00
cutealien 808515226e Add function mergeFilename
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4680 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-13 00:17:03 +00:00
cutealien 0b58a6d5d4 Add ISceneNodeAnimator::setStartTime/getStartTime to allow resetting movement animators. This should work for:
CSceneNodeAnimatorFlyStraight, CSceneNodeAnimatorFlyCircle, CSceneNodeAnimatorFollowSpline, CSceneNodeAnimatorTexture.
It's also implemented for CSceneNodeAnimatorRotation, but that one currently resets the StartTime constantly (I don't think 
it has to, but I have no tests written for animators currently so can't change that for now).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4675 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-03 11:58:28 +00:00
cutealien 6f73eca609 Get Irrlicht to compile with IRRLICHT_FAST_MATH on Linux (out-define code which was written for VS and remove #warn which is not a preprocessor command recognized by GCC).
Note that I did this just to do some tests against the fast-math functions - and those tests showed a lot of troubles so I still won't recommend using IRRLICHT_FAST_MATH.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4672 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-28 11:32:21 +00:00
cutealien cc2b3716b7 Improve speed for finalizing skinned meshes (removal of unnecessary frames after loading) (thx @ichtyander for the testmodel)
Down from ~20 seconds to ~0,5 seconds :-)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4622 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-03 18:25:53 +00:00
hybrid e0c819b1c1 Merged updates from 1.8.1 release to trunk, revisions 4579-4615.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4616 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-11-28 10:37:09 +00:00
cutealien e7c1f9b6c4 Fix more typos in documentation and add a little more docs (thx @Yoran for reporting).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4594 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-10-24 12:33:25 +00:00
cutealien e6210eb578 Fix typo in documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4589 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-10-17 13:21:32 +00:00
cutealien 80512c8385 line2d::intersectWith has a new parameter to allow ignoring intersections with coincident lines
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4586 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-10-16 16:56:13 +00:00
cutealien b09c2a5c2d vector2d::equals now has an tolerance parameter for passing the epsilon (like vector3d has already). Note that this changes the default behavior of vector2d::equals as well as functions using it like the operators for ==, !=, <, >, <=, >= when using vector2d with f64 as the tolerance is increased in that case (for f32 and integer values it shouldn't make any difference).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4584 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-10-08 14:25:13 +00:00
cutealien ced8386dad Reverting my changes from r4569 as they also break stuff by now. Will continue the discussion in http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=48940
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4575 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-08-13 10:06:37 +00:00
hybrid e7dd176703 Add intersect method to create intersect box, provided by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4572 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-08-05 23:23:47 +00:00
cutealien fdf52abb5e _IRR_OVERRIDE_ needed a few more checks on gcc to prevent compile warnings on some systems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4570 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-08-05 20:53:35 +00:00
cutealien 1aadbe16b1 EMT_TRANSPARENT_ALPHA_CHANNEL_REF working again like in older Irrlicht versions (1.4 or so):
It uses again SMaterial::MaterialTypeParam instead of a hardcoded values and makes an exception when MaterialTypeParam is 0 (using it like 0.5 instead) to ensure it works by default. See http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=48940 for new discussion.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4569 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-08-05 20:28:05 +00:00
cutealien edac25e83c Add a CMatrix4::getRotationDegrees where you can pass the scale vector if you know it (faster and useful otherwise sometimes).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4556 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-22 11:04:40 +00:00
hybrid bb3d37794b Second round of override checks
Exposed some more functions:
getArchiveName returning name (path) of archive
getColor and getColorHSL for color select dialog
get/setDoubleClickTime in device for setting the time offset necessary to have two separate clicks instead of a double-click

Removed deprecated getXJoint and getMS3DJoint functions

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4545 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 15:55:56 +00:00
hybrid 1db8718c23 Remove white spaces before semicolon
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4544 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 14:32:28 +00:00
hybrid b93788fa3d First round of override updates.
Some fixes:
Added get/setCurrentRenderPass to scene manager (internally renamed, exposed)
Removed destructor from light scene node.
Removed getType calls from archive loaders (one file archives have this)
Removed some internal exposures and virtual attributes for protected classes

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4543 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 14:18:14 +00:00
hybrid 80efea5574 Oops, wrong copy'n'paste. Fixed to pure virtual
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4542 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 13:43:57 +00:00
hybrid 00f8f8a8ac Expose getSpeed and setSpeed of particle attraction affector
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4541 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 09:28:37 +00:00
hybrid f8d7aab701 Add override patch by hende, to check for proper deriving in the class tree. Added MSVC support for this feature, should work beginning with MSVC 2010
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4539 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 08:57:19 +00:00
hybrid dadf0b99df Add the geoplane from hendu. This surface improves visualization of large surfaces.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4538 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-06-17 08:38:20 +00:00
hybrid 20969d5c25 Heightmap optimization functions, supplied by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4525 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-05-13 23:06:21 +00:00
hybrid 37f8eb7d5d Merged revisions 4485-4509 from 1.8 branch. Cursor fix for Windows 8.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4510 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-17 16:09:25 +00:00
hybrid 9f7227b7ad Some whitespace adjustment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4500 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-05 21:55:05 +00:00
hybrid 6d6b243924 Push trunk to 1.9 version information everywhere
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4498 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-05 12:14:04 +00:00
hybrid 9a0d42cef0 Push trunk to 1.9 version information everywhere
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4497 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-05 12:03:44 +00:00
hybrid 5de4ef87f6 Merged from 1.8 branch, revisions 4393-4484: Compiler issues with certain compilers fixed, localtime bug under windows7 fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4485 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-27 13:43:52 +00:00
nadro 1b37134284 - revert rotation patch from rev4478. Texture Matrix will be default solution for manipulate 2d image drawing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4480 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-18 16:19:02 +00:00
nadro 5f4c2795ef - Added support for rotation 2D images. This patch base on FuzzYspo0N patch from irrEXT. (Software drivers aren't supported).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4478 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-16 03:03:15 +00:00
hybrid c2b593fbe3 New method for camera scene nodes. updateMatrices updates the camera matrices without uploading them to the driver directly. Patch submitted by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4475 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 17:02:32 +00:00
hybrid a01095adfe Add getRadius method for aabbox3d, as suggested by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4474 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 16:57:55 +00:00
hybrid a36cdf072b Added window position parameter to device creation params. For now, window is not programmatically movable. This patch is merely intended for restoring the device in the same location as with last run. Patch provided by Auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4472 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 12:44:11 +00:00
hybrid b53e949e6e Added hendu's constification patch for memory read/write files. Also slightly changed the use of global C methods to class specific static methods, which seems more appropriate
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4471 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 12:17:35 +00:00
hybrid fce326fdd0 Constification patch by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4470 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 10:16:05 +00:00
cutealien 695abde41d IGUIEnvironment::hasFocus has now a parameter checkSubElements as subelements are usually seen as part of an element. Default unfortunately must be false due to backward compatibility.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4465 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-05 12:32:54 +00:00
cutealien 2659619e1a Add IGUIElement::isTrulyVisible which works like ISceneNode::isTrulyVisible.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4462 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-02-27 14:47:26 +00:00
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
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 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
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
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 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 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
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 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
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
cutealien 1965979541 Add getters IGUIButton::isDrawBorderEnabled and IGUIButton::isDrawBackgroundEnabled
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4384 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-26 16:23:58 +00:00
hybrid ae25bdf202 Merged from 1.8 branch, revisions 4345-4378. All release fixes since the branch to 1.8, and some fixes after that. Now commencing development on this branch, and only bug fixes on the others.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4379 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-20 18:31:33 +00:00
hybrid 36ad2bb93e Merge from 1.7 branch. revisions 4319-4343. Compiler problem and STL loader fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4344 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-30 14:57:54 +00:00
cutealien 8537ca8eb7 - CMatrix4<T>::getInverse working now with FLT_MIN instead of ROUNDING_ERROR_f32 which fixes a bug reported by amin here: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=47422
NOTE: There's a good chance that this should be changed in more places where iszero is used, as that check is often about avoiding a division by 0. 

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4343 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-30 10:03:25 +00:00
Nadro 4797bbcaad - Fixed infinity default value for static meshes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4334 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-18 23:50:31 +00:00
hybrid 64e4fe5717 Add shadow interface to static meshes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4333 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-18 23:19:45 +00:00
Nadro b6f902f13f - decreased default infinity value from 10000.0f to 1000.0f.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4327 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-15 21:12:53 +00:00
cutealien 5a265656cc Fix compiling with _IRR_WCHAR_FILESYSTEM on MinGW. Thx @ alexzk for reporting. Note that I tested this with gcc 4.7.0 and only compiling is tested.
Also added some documentation that UNICODE must be set as well for compiling with _IRR_WCHAR_FILESYSTEM ('cause I always forget to set that at first otherwise...).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4322 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-03 10:51:20 +00:00
cutealien cbe3f1ac70 Add skin-constants to control push-button behavior better.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4321 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-10-01 16:31:34 +00:00
hybrid 0a2330890a Bump copyright to 2012
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4320 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-30 23:38:54 +00:00
cutealien a87bb3a063 - Fix a bunch of off-by one errors in irr::core::string in functions equals_substring_ignore_case, findFirst, findFirstChar, findNext, findLast, findLastChar, replace, remove and removeChars. This prevents some potential memory access errors, find functions no longer try to find the \0, replace no longer replaces the \0 and remove no longer tries to remove it (which did remove the last character instead).
- Fix a few new warnings in gcc.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4308 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-06 19:49:45 +00:00
cutealien a83a87594a Replacing matrix4::setRotationRadiansLH and setRotationRadiansRH by setRotationRadians. Old functions had left handed and right handed just the wrong way round and contained an additional bug that did lead to wrong rotations (mixing up y,z). A single function for this is enough (people can just flip the axis) and this way people who already used the old functions (which only got added in trunk) don't just get new behavior but some compile error. Thanks to Randajad for finding the error with the wrong results, giving a testcase and insisting that there's really a bug when I didn't see it on first try :-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4295 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-20 11:22:05 +00:00
cutealien efa93883e2 Remove code causing compile warning on gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4294 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-19 19:19:56 +00:00
hybrid 516faec05b Add another saveScene overload which allows to pass in a user-created XMLWriter. Patch suggested by eversilver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4284 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 15:20:22 +00:00
hybrid 23b8381c72 Remove empty destructor.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4283 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 15:19:04 +00:00
hybrid 490475edef Fix compiler problem with newer gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4281 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 13:46:14 +00:00
hybrid 8d628796f9 Added default parameter to getMatrix
Change matrix pointer access to direct array operator access.
Add some test cases for quaternion methods.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4280 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 11:32:27 +00:00
cutealien 86bd1032f9 ColladaExporter does now cache material-names on export by default which leads to smaller .dae files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4279 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 10:36:25 +00:00
cutealien 9459acf1ee Added IColladaMeshWriterProperties::useNodeMaterial to allow handling custom ISceneNode implementation on export.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4278 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 08:49:46 +00:00
cutealien f1aea87c1a - IColladaMeshWriter now writes a scene by default (most tools can't handle .dae's otherwise)
- In CColladaMeshWriter the texcoords in in mesh-source and those in texture (for effects) don't use the same name anymore. bind_vertex_input does handle that connection and having the same name had complicated the code (and was confusing)
- In Collada export mesh-geometries can now be copied when different materials are using the same mesh. Reason was that many tools (all I tested so far including Irrlicht) can't handle such materials otherwise.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4277 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-14 20:17:39 +00:00
cutealien 26f44f6f48 quaternion conversions to and from matrix4 no longer invert rotations. Define IRR_TEST_BROKEN_QUATERNION_USE in quaternion.h allows compile-tests to find affected code (see changes.txt for more info). Loaders for b3d, ms3d, ogre and .X just use transposed matrixes now for downward compatibility - meaning if it worked before it still works - if it was broken before it's still broken. Same for CSkinnedMesh. For collada (.dae) loader this fixed previously wrong rotations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4276 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-14 19:12:49 +00:00
cutealien ad1775dce3 Fix documentation errors reported by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4273 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-12 10:28:01 +00:00
cutealien 41efacc9c1 - CGUIEnvironment::loadGui - loading a gui into a target-element no longer messes up when the gui-file contained guienvironment serialization.
- Improve IGUIEnvironment::loadGui documentation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4272 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-11 18:23:23 +00:00
cutealien 78e936aae4 Simplify the IColladaMeshWriterNames interface somewhat and improve documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4270 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 18:05:52 +00:00
cutealien f09f35e082 Make nameFor functions in IColladaMeshWriterNames non-const as it's not necessary in the writer and we don't know what people will do with it (and because I already needed it non-const to avoid ugly mutable variables in writing the example).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4269 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 12:36:50 +00:00
cutealien 8fbc2fb8fc - Colladawriter does now reset correctly (calling writeMesh twice failed before and writeScene twice didn't write light-nodes second time)
- Add some callbacks that allow users to use custom-names on writing
(I'll probably add an example as well soon for how to use all that - the problem is that there don't seem to be 2 tools out there interpreting Collada the same way and so we have to be rather flexible on export. And yeah - our own import also still  has way to go...)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4268 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-08 17:04:26 +00:00
cutealien 5ccc141921 Add the usual count element to E_LIGHT_TYPE enum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4265 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-02 22:08:04 +00:00
hybrid aac4394cc5 Add new parameter to array reallocate function. This prevents a reallocation in case the array would become smaller. As the reallocation operation is quite time consuming, this can be avoided on request now, on the expense of more memory consumption.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4261 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 22:06:38 +00:00
cutealien 2d13027a9c Add IAnimatedMeshSceneNode::getLoopMode (asked for by JLouisB)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4259 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-28 10:32:08 +00:00
cutealien d439c11f54 Unify spelling in documentation (color, behavior).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4252 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-20 12:49:43 +00:00
cutealien b52a040fe6 Allow caching cursor position on X11 to work around slow XQueryPointer calls. Resolves patch 3476712. Thanks @ hendu for reporting and patch-proposal. For more info: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=45525
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4251 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-20 12:25:32 +00:00
cutealien 1e2341226a Update documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4236 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-11 16:03:20 +00:00
cutealien de5f4b7af1 Add documentation to all IGUIElement's which events they are creating.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4235 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-09 13:55:44 +00:00
cutealien 82ea8b53a7 Fix compile warnings for matrix4::setRotationAxisRadiansLH and matrix4::setRotationAxisRadiansRH found by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4232 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 10:41:20 +00:00
cutealien 14a4a07e66 Add documentation and some compile-tests for matrix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4231 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 10:31:09 +00:00
cutealien 238f3b7bd8 Fix string::replace which failed replacing substrings at the end when the replacement was longer (thx @ zerochen for reporting). Corresonding tests added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4230 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 09:14:59 +00:00
Nadro d432f415a2 - Added bool interface for a shaders constants.
- Fixed issue with an int array uniforms.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4229 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-04 13:59:21 +00:00
cutealien 642f4080b4 - Modified struct packing solution to work with gcc 4.7 on MinGW. Which makes for example bmp-loader work again (textures in example 01 for example). Note: If this should be backported to 1.7 we should maybe just set the -mno-ms-bitfield flag for mingw there (not as nice, but will probably work good enough as workaround for what we use in Irrlicht and we don't have our nice packing headers there yet so we would have to do that all over the place).
- Also added new packing headers to c::b project file.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4226 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-02 18:40:30 +00:00
cutealien 27879dd9a7 - User can now set characters used for decimal point in fast_atof for localisation.
- Update changes.txt

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4224 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-29 17:04:18 +00:00
cutealien 3a608e8381 Add parameter useAlphaChannel to second IGUIEnvironment::addImage function as it's rather confusing when they have different defaults. Unfortunately can't use same parameter order anymore without messing up existing user-code now (some things can only be done right on first try...).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4223 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-29 15:41:23 +00:00
hybrid 8106d4200f Add a shortcut return in case reallocate has nothing to do. Should reduce a lot of memory thrashing on irrArrays.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4218 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-27 17:16:19 +00:00
cutealien c739925fbe Merge revisions 4188-4208 from release branch 1.7 into trunk:
- Update changes.txt 
- Change include order to get example 21 compiling on MinGW.
- Fix linker path in example 16 for C::B project file (linker path was in include path section). 
- Link with opengl32 and gdi32 in Example 14 in C::B. 
- Remove --no-export-all-symbols which got recently added to the windows build as that flag is not known by gcc on Windows. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4209 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-26 10:52:27 +00:00
hybrid 4fb661abc4 Make Iterator types friend to each other
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4198 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-22 15:15:06 +00:00
hybrid 4bf7ef38c5 Fix pack and unpack include file to properly work under MSVC as well. Needs to suppress warning as we don't have the push and pop together anymore.
Fix push and pop usage - some files forgot to add the define, so effectively not work under gcc with special architectures - and move all files to use the new include files.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4196 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-22 14:28:33 +00:00
hybrid b4f7ef5fd4 Add simple include files for easy alignment packing of data structures
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4195 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-22 13:39:44 +00:00
hybrid 69d08c7b2f Fix constness of operators
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4194 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-22 13:35:55 +00:00
cutealien 94968c4a8c Fix tests triangle3d:
- triangle3d::isPointInsideFast now using some epsilon to catch all points on the borders.
- triangle3d::getIntersectionOfPlaneWithLine calculates now with higher precision for more exact results.
- triangle3d::isOnSameSide (used by isPointInside) calculates now with higher precision and uses some epsilon to make it work with larger integers and less floating point troubles. Slightly slower now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4183 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-11 15:24:38 +00:00
cutealien e33c2c5a9a - equalsByUlp rewritten slightly to compile with our gcc release settings without warnings.
- fast_atof tests now running on 64-bit (should've been last 64-bit specific trouble in tests).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4180 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 15:27:28 +00:00
cutealien 833ad991dd - Add function equalsByUlp to test for spacing between floating point numbers.
- Allow difference of 1 ULP in fast_atof tests (as that is still correct). Note that this only fixes part of the fast_atof test, the whole tests still fails on 64-bit because test_strtol still fails (that looks more like a real bug).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4179 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 11:46:37 +00:00
cutealien ac94777f6d Allow setting D3DCREATE_MULTITHREADED when creating Direct3D drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4167 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-05-22 13:10:25 +00:00
hybrid de9c9aa625 Fix description of draw2DLine to make clear that both start and end will be colored
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4141 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-24 07:36:42 +00:00
hybrid eef85c2edf Add documentation about bbox update not called automatically.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4140 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-24 07:07:47 +00:00
hybrid 1c43d27cca Copy s64 type to unsigned u64 counterpart. Add borland checks as suggested by Ethon
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4137 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-18 11:33:10 +00:00