Commit Graph

1227 Commits (master)

Author SHA1 Message Date
nadro 538751d85c - Added new IRenderTarget interface.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5068 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-23 19:00:17 +00:00
cutealien 11fc4820c2 Update documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5066 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-23 16:24:09 +00:00
cutealien cf229fdda8 Don't show DX8 in driver choice any longer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5065 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-10 18:13:37 +00:00
cutealien c1c8ec280b Fix compiling on Linux (got broken on recent swprintf/snprintf changes).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5058 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-02 00:57:59 +00:00
cutealien ab330c1204 Replace the swprintf and snprintf defines by swprintf_irr and snprintf_irr to avoid conflicts with the standard libraries (and other libraries).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5055 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 22:00:17 +00:00
cutealien db604be111 Xbox support deprecated as we no longer have DirectX 8 now.
I kept the few places in code where the define is checked as those basically didn't matter.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5054 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 21:21:15 +00:00
cutealien 9eccabce40 Support for Direct3D 8 removed.
Missing people with interest in maintaining it. Anyone who still needs DX8 can branch the previous svn version or use Irrlicht 1.8.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5053 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 20:52:35 +00:00
cutealien ab00c9db09 Update minimal compiler support to Microsoft Visual Studio 9.0 and remove some workarounds for earlier versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5051 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 17:34:55 +00:00
cutealien 0cbb9112a3 _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX removed.
This was a bugfix for VS2003 (in combination with .NET) which we haven't supported in a while.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5050 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 17:12:12 +00:00
cutealien 5a73679b5e WinCE 6 supported removed. It's just too outdated.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5047 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 16:52:10 +00:00
cutealien 1fa7e87f5e NVidia CG support removed due to lack of maintenance.
Note, I would have liked to get it compiling again a last time, but it was referring to a class which didn't exists, so I didn't know what to make of that.
NVidia has also stopped supporting this by the way.
No changes for MacOSX project files, so those still might have to be fixed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5046 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-02-28 20:11:40 +00:00
cutealien 6011b4c01f Add a new core::rect constructor which takes a dimension parameter and set's left-top to 0.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5036 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-02-09 15:15:47 +00:00
cutealien c67308f25a Increase NUMBER_OF_AXES to 18 (thx @Tobias314 and devonsoft for telling about devices which need more axes).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5034 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-02-06 12:06:44 +00:00
cutealien c525b00fa2 mtl (obj) format reader and write now regards texture scaling and translation. (thx @thanhle for noticing and patch proposal).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5029 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-16 17:00:29 +00:00
nadro 883ed034d4 - Removed unnecessary virtual methods in ITexture and reduced double lines of code across video drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5017 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-07 19:58:07 +00:00
cutealien 14b2983be1 SColor::getData is now const (thx @Ovan for noticing).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5004 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-12-29 14:32:21 +00:00
nadro ed321197a7 - Solved issue related to crash at screenshot unit test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4991 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-12-04 18:37:52 +00:00
nadro 657fad2385 - Added ability to set custom depth/stencil texture for render targets (currently OpenGL only).
- Added new color formats: ECF_D16, ECF_D32, ECF_D24S8 (currently OpenGL only).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4984 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-11-07 21:34:14 +00:00
nadro 7b46d86889 - Added partial support for R8 and R8G8 color formats (at now OpenGL only). Thanks Hendu for this patch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4982 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-11-03 18:30:20 +00:00
cutealien 323aea6ab9 IGUIProfiler has now more and better display filters.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4973 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-15 18:47:35 +00:00
cutealien b6f767b182 Allow IGUIProfiler to display all profile groups on the same page.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4971 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-15 00:49:45 +00:00
cutealien bc6ed7c8b5 Allow to freeze the IGUIProfiler interface.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4970 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-15 00:03:57 +00:00
cutealien ea6ee609ee Make profiler start/stop calls use counters to make profiling recursive functions easier.
IGUIProfiler can now work with any profiler using the IProfiler interface.
Some spelling fixes.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4969 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-14 23:00:30 +00:00
cutealien acff12d139 Can now enable/disable backround drawing for IGUITable and IGUIProfiler.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4968 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-14 18:29:18 +00:00
cutealien c8c9733e0f Allow compiling on VS with (/Zc:wchar_t-) set.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4966 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-10-12 22:32:39 +00:00
cutealien 38d837348c Add an array with driver name strings for the driver enums.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4950 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-30 21:09:51 +00:00
cutealien 5238954d8a Array index was used before limit check (found by cppcheck tool).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4948 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-29 18:06:59 +00:00
nadro 3dc833cc80 Fixed issue with functions for convert from/to UTF8 and shared libs.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4934 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-18 17:26:54 +00:00
nadro 3d21af203b Added helper functions for converting between wchar and utf-8. Patch provided by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4922 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-16 18:24:23 +00:00
nadro 48f84e28e9 Added sphere frustum culling support. Patch provided by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4921 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-16 18:07:26 +00:00
cutealien b337ae06b7 ISceneNode::deserializeAttributes uses now old values for parameters which are not in the attributes (thx @entity for noticing).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4872 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-05-15 17:01:24 +00:00
cutealien bb890274bc - Add interface for easier access to scrollbars for IGUIListBox, IGUITreeView and IGUITable
- Add IGUITable::getItemHeight


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4813 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-29 21:42:29 +00:00
cutealien 6309d3d871 Rewrite profiler implementation some more to get around linker troubles.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4797 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-25 13:06:38 +00:00
nadro 1b5297b8fd - Minor improvement in SMaterial::isTransparent method.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4795 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-25 01:29:50 +00:00
nadro 9bad8de603 - Added separate blending support for both OpenGL and D3D9.
- Added blend factor to SMaterial.
- Improved transparent nodes handling.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4794 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-25 01:19:38 +00:00
cutealien 6058c27631 Get new profiling interface compiling on Windows (with lot's of warnings).
This needs to be rewritten - the current solution has too many linker troubles.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4793 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-25 00:33:33 +00:00
cutealien 794ad41a7e Fix a comment and add license information.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4792 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-24 23:17:46 +00:00
cutealien 1fa2ba2b61 Add a code profiler (stop-watch style).
- breaks MacOSX build for now (files need to be added there).
- Interface still needs to be discussed, so maybe wait a few days before using this.
- Not yet tested on Windows (will do that tomorrow)
- No VS project files yet for the profiling example (will do that tomorrow)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4791 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-24 22:52:10 +00:00
cutealien c695a21f33 Add override font to IGUITable
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4790 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-24 13:43:23 +00:00
cutealien f7583dc1f9 IGUITable can now disable the active column.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4788 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-23 23:09:25 +00:00
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
cutealien aac4887879 Fix warning in comments (my fault). Thx @ khonkhortisan for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4123 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-01 21:12:49 +00:00
cutealien 80011c5b1b Add explicit cast in vector2d::getAngleWith to avoid warnings when using type irr::s64.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4122 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-30 11:08:22 +00:00
cutealien 23de908708 Clarify IGUIEnvironment::getHovered documentation as it's nearly never what the user really should use.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4121 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-26 21:01:20 +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 7ee90ea3d6 Added setName and getName to IGUIElement, the same way as it's in ISceneNode. Note: I don't yet add a function like ISceneManager::getSceneNodeFromName to IGUIEnvironment as well. The reason is that current implementations of related functions ISceneManager::getSceneNodeFromId and IGUIElement::getElementFromId are done very different and I first have to figure out if there's any way to reconcile those sanely.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4119 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-26 20:32:48 +00:00
cutealien d3b4e039fc Another s64 fix, this time for gcc on 64-bit platforms.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4118 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-26 10:25:15 +00:00
cutealien c96ab8b96e irr::s64 now compiles with -ansi and -pendentic on gcc without warnings. Also can now be disabled completely by define.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4116 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-24 11:29:06 +00:00
cutealien 7b112dbce8 - Add core::iszero and core::squareroot for s64 type.
- line2d::getLength now returning type T. f64 would actually be fine, but then it has to be used throughout, here the cast to T happens before already, so returning f64 is just confusing as looks like it would return a greater accuracy than it has at that point.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4115 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-23 16:27:54 +00:00
cutealien 960dac6ed0 Add irr::s64 back in (using long long for non VS compilers). If there's any problem with this please inform me, I'd like that to stay in as it makes Irrlicht a lot easier to use in combination with the Clipper library (a boost-licensed library for working with 2d polygons).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4114 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-23 15:45:39 +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
Nadro a4abd6e0fc - Added support for int interface in setShaderConstant methods.
- Improved parameter names in a files related to a Cg support.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4106 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-16 10:43:36 +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
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 92d1b40623 Add Nadro's initial Cg support. Example 10 is enhanced to allow also Cg shaders.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4060 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-02 17:51:24 +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
hybrid 0d8a27f7e8 Add SVN property and fix eol style
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4051 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-22 14:56:31 +00:00
hybrid 1fda9980df Add vertex optimization algorithm submitted by curaga
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4048 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 18:08:14 +00:00
hybrid b34352deac rename texureBlend functions to textureBlend
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4047 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 17:54:33 +00:00
hybrid c82925896d Add threshold for slerp calculation, switching between linear and slerp at this point.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4046 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 09:51:47 +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
hybrid bd72b79df0 Typo fixed
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4032 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:47:10 +00:00
hybrid 19c8f77583 Some new setter methods suggested by kaos.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4031 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:46:51 +00:00
hybrid c0586e309a Add some convenience wrappers for simplified shader generation in the default cases. Suggested and implemented by curaga.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4027 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 13:44:12 +00:00
hybrid f1ec3dad93 Add method which draws the normals of a mesh buffer. Mainly for debug purposes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4025 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 00:29:21 +00:00
hybrid bd60a5dcda SMaterial serialization patch by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4023 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-02 15:35:56 +00:00
hybrid 7d6d371bae Add a FPS setting for animated meshes. This allows to store an overall animation speed for a mesh, which enables reading this information from the formats that support it and set the animation speed in scene nodes accordingly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4009 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:10:15 +00:00
hybrid 6d9a31a037 Add functions and constructor parameter to set the distance of the maya camera from the currently used target.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4002 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 16:26:59 +00:00
hybrid 3353705fc2 Improve use of constref which is now possible due to the API change in irrMap. Suggestion made by JVr
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3999 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-02 10:36:07 +00:00
cutealien 6f1db5fc41 - Add vector2d and dimension2d attributes (both already had incomplete parts of implementations for some reason)
- Add tests for vector2d and dimension2d attributes
- Test currently failing on Win32-VS: collisionResponseAnimator, sceneCollisionManager, screenshot

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3996 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-29 22:56:28 +00:00
hybrid ca0a9cca3e Change new billboard API to use more common names and a better usable interface. Fixed documentation. Proposal for fix made by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3995 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-15 13:34:48 +00:00
cutealien 3788ea88bd Add missing include IRandomizer.h to irrlicht.h (found by greenya)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3993 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-14 10:22:10 +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 c2e1206eb8 Small part of the billboard patch from rogerborg
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3983 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:08:18 +00:00
hybrid 9c7e5e02d4 Fix documentation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3977 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:51:10 +00:00
hybrid 68f2170d40 Avoid unescaped xml tags in comments
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3976 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:42:30 +00:00
hybrid e0edee9d3d Remove stray comma from comment
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3975 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:34:15 +00:00
hybrid 79147a2d10 Indentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3971 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-25 15:31:27 +00:00
hybrid c4cd7cb167 Return const-ref for reduced overhead.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3970 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-25 15:31:06 +00:00
hybrid fa198f1cf1 Add another remove method which takes a node instead of a key. This can save a second lookup upon removal. Thanks to teto for the idea.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3969 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 21:34:32 +00:00
hybrid 0c0ee8be53 Add debug data switch for shadow scene nodes. With EDS_SKELETON and EDS_MESH_WIRE_OVERLAY one can draw the whole shadow volume (or just the wireframe of it) instead of just the shadow. Currently only implemented in the hw drivers.
Also fixed a somewhat slow way of not writing to color planes from alphablend(1,0) to proper colormask settings in d3d driver.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3964 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 00:44:45 +00:00
hybrid 72e5d28703 Enable file open dialog to restore initial path after close and add another parameter for optional start directory.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3962 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 23:56:38 +00:00
hybrid 8995160582 Add a helper typedef to make it easier to query for the underlying character type. Naming is conforming to stl
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3961 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 15:50:49 +00:00
hybrid eed14a0ee4 Add new methods for adding and removing file archives based on ifilearchive pointers. The existing methods are also enhanced by an optional return value of the newly added archive. Addition suggested and coded by Nalin.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3958 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 23:45:52 +00:00
hybrid c7ea807729 Change API of IVideoDriver drawStencilShadowVolume method to take an array of vectors instead of just the pointer and the number of vertices. We have this information anyway, so make us of it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3957 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 11:28:39 +00:00
hybrid 343085c666 Remove unused member
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3946 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-19 21:13:19 +00:00
hybrid 95d92363ab Merge from 1-7 branch, releases 3927-3942. Just documentation fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3943 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-16 10:26:05 +00:00
cutealien 86c043ea52 All gui-elements now use "SColor" instead of "const SColor&" to unify interfaces somewhat (it doesn't really matter which way it's done - the only bad solution is doing it different in every second function). I don't dare changing the one occurrence of "const SColor&" in IGUISkin as skins are so often overloaded and so changing that would break too much user-code, will do that once IGUISkin is more seriously reworked. Sorry for anyone already overloading gui-elements IGUIEditBox, IGUIListBox, IGUIStaticText - you will have to change that as well. But I think in the long run it's better having this at least a little less inconsistent.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3941 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 17:35:47 +00:00
cutealien cbdbf04487 Messed up last check-in somewhat. Now all getColor functions in statictext avoid const& (which is OK as SColor is just a long).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3940 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 16:58:15 +00:00
cutealien e03bb4929f Add getBackgroundColor, isDrawBackgroundEnabled and isDrawBorderEnabled to IGUIStaticText (thx 4 patch from Nalin).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3939 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 08:41:26 +00:00
hybrid e6a6ff0838 Remove checks and default constructed dummies due to erroneous temporary usage.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3938 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-08 12:34:10 +00:00
hybrid f0bc01581f Add missing cases for override material, found by REDDemon
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3935 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-08 11:34:15 +00:00
hybrid 582cb75095 Merge from 1.7 branch. Fixes for SSharedMeshBuffer and matrix4
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3925 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-27 22:54:27 +00:00
cutealien f9b538f9ee - Added ISceneNodeAnimatorCameraFPS::getKeyMap and a new ISceneNodeAnimatorCameraFPS::setKeyMap.
- CSceneNodeAnimatorCameraFPS uses now SKeyMap instead of SCamKeyMap (structs were identical which was confusing and there wasn't any explanation in comments, so I decided to simplify it).
- Add some workaround to MeshViewer to show how we can currently fix the FPS-cam when users to alt-tab while moving. We can improve that some day when we have focus-events, but this works for now.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3920 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-14 14:07:54 +00:00
hybrid 9f9ccaa409 Add comment for proper directory mounting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3916 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-10 10:21:02 +00:00
hybrid f6662bffdd git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3915 dfc29bdd-3216-0410-991c-e03cc46cb475 2011-09-10 10:16:23 +00:00
hybrid 556f367df9 Fix constness for proper overloading
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3912 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-09 13:50:39 +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 5ba7ae5afd Fix rotationFromTo as suggested by AgentD, using the from vector instead of the current values from the quaternion. After all, this quaternion has nothing to do with from or to so far, so the values contained there are rather arbitrary. Moreover, I'm normalizing the quaternion before returning it, as it is a rotation quaternion, which should be a unit quat. Test cases are also extended. For now only in trunk, may be backported after further testing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3905 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-30 14:13:45 +00:00