Commit Graph

2766 Commits (5b156c1dca6663fcb7983b660beb927e1bc2defc)

Author SHA1 Message Date
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 119586675d indention.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4750 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-01 15:10:09 +00:00
cutealien fce2b8fdaf Merge branch releases/1.8 revisions 4722 to 4748 into trunk:
- CGUIEditBox and the GUI-Editor now convert pasted text correctly using mbstowcs.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4749 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-01 11:26:54 +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 4bf4c5ef17 Cleanup - membervariables start with uppercase letters.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4745 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-28 19:55:29 +00:00
cutealien 6bbb9b1beb Fix typo.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4744 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-28 17:45:45 +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 13b42f6581 Enable TranslateMessage again for external Windows. Something Strong99 requested in an old forum post (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=44918&p=257786)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4742 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-28 16:05:52 +00:00
cutealien 6025e9026c Fix bug that ListBox would not allow to 'tab' to the next element (thx @ FlavourBoat for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4741 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 18:51:19 +00:00
cutealien f16bd3c790 Another ignore file fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4740 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 17:36:04 +00:00
cutealien a9a62b4f86 Fix: Buttons can now change the image several times and the pressed image will always be updated. Fixing Bug #197 by some anonymous coder.
Note that the way this works might change again soon (I just wanted to fix old version before rewriting it).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4739 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 17:34:00 +00:00
cutealien 35deb8bf9a Fix some ignore files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4738 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 17:30:43 +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 2c9d9abd57 - Add an overwrite mode to editbox. This is patch #275 provided by Adam (aka kingadami)
https://sourceforge.net/p/irrlicht/patches/275/


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4736 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-26 00:14:17 +00:00
cutealien 920b125bc2 Add serialization for the CGUIImage::DrawBounds stuff from last check-in.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4735 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 23:38:12 +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 2c7c73c5ec Irrlichtify variable names (membervariables start upper-case).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4733 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 17:18:15 +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 98f6ce2a00 Write (subjectively) nicer xml's by using slightly different linebreak rules.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4731 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-25 16:04:57 +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 8e6db671da Reduce a bunch of log messages in B3DLoader from ELL_INFORMATION to ELL_DEBUG (thx@ entity for telling).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4729 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-21 17:32:28 +00:00
cutealien 008f14bcdf - Collada dae-loader now set's the vertex colors (thx @sf17k for report and test-models)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4727 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-15 21:08:54 +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 0adb750092 Fix SDL device compilation. VideoDriver is now always dropped after Scenemanager and FileSystem after those two to prevent memory-leaks in some situations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4724 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-14 15:13:41 +00:00
cutealien 3401273272 Fix c::b project obj folder names. Some static builds had used the shared folders (thx @ gerdb for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4723 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-13 23:18:00 +00:00
cutealien bd0b92996e Merge branch releases/1.8 revisions 4685 to 4721 into trunk:
- C::B project files work again on newer Linux-distributions which have cleaned up their dev-lib dependencies.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4722 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-13 23:07:59 +00:00
cutealien 20b347c938 Fix a reorder warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4720 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-13 22:24:59 +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 c7bc66a2c6 Mention another fonttool to create Irrlicht fonts (by Armen).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4717 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-11 18:04:06 +00:00
cutealien 940d2e4238 Fix a bug in new meshtextureloader - don't set old TEXTURE_PATHS always but only if people still use those parameters or we overwrite the new way to set paths.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4710 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 17:33:35 +00:00
cutealien a969bed775 Add some changes I forgot to the changes.txt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4709 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 16:08:51 +00:00
cutealien b4958ab80f Remove the Dev-C++ project file. We're telling people in the forum since years now that we don't support it whenever some unlucky soul tries still using it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4708 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-03 14:21:50 +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 eadd14e3cd - CGUICheckBox no longer gives up focus on EMIE_LMOUSE_LEFT_UP (thx @Demre for reporting http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=49598)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4696 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-19 10:43:03 +00:00
hybrid 7e28379c42 Add new test file to project files
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4695 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-18 23:19:46 +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