Commit Graph

1227 Commits (master)

Author SHA1 Message Date
nadro 82b5708ff9 - Fixed crash when app call IImage::setMipMapsData method and Irrlicht is compiled as DLL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5275 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-10 22:13:04 +00:00
nadro 2bc9c09347 - Minor improvements for IImage/CImage classes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5274 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-10 19:34:16 +00:00
cutealien 34ffc48cd5 Prevent copying CDynamicMeshBuffer (it doesn't support that, so hiding copy constructor).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5269 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-03 14:39:32 +00:00
cutealien e517481f5f Fix compiling with gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5263 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-18 22:59:13 +00:00
nadro d72c407efa - Fixed issue with DXT file formats in D3D9.
- Added cube maps support to PVR file loader.
- Added support for load cube maps directly via IVideoDriver::getTexture call.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5259 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-14 16:59:04 +00:00
nadro deacb5b919 - Prepared interface for loading multiple images from file.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5258 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-14 00:46:43 +00:00
nadro 453d24cf2e - Added TextureWrapW field to SMaterialLayer.
- Improved IRenderTarget::setTexture warnings.
- Minor improvements for textures in D3D9 and OpenGL drivers.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5241 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-10 20:37:54 +00:00
nadro c0e1680f2e - Changed method name from:
bool IVideoDriver::setRenderTarget(IRenderTarget* target, ...);
 to:
 bool IVideoDriver::setRenderTargetEx(IRenderTarget* target, ...);
- Replaced some deprecated methods in tests.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5223 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-17 14:42:09 +00:00
nadro 966e05b51b - Added getters to IRenderTarget interface.
- Improved D24S8 color format handling in OpenGL.
- Fixed issue with wrong size for OpenGL RT when FBO isn't available. Thx CuteAlien for report that.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5222 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-17 14:17:57 +00:00
cutealien b539e46b5f File-dialog now converts the returned filename from multibyte to widechar when it has to.
Also added a function to access the original name as well as the converted name for directories.
Can't fix the interface completely unfortunately without breaking it :-/
Not yet fixed is the conversion to lower-characters - that will be one of the next tasks (had to clean up other stuff before I could approach that).
Also _IRR_WCHAR_FILESYSTEM currently not compiling, but been like that a few versions already.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5215 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-14 15:59:35 +00:00
cutealien 15fce47e24 Needed a little more work to disable a warning once in a way such that it doesn't produce other warnings on other compilers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5214 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-14 15:02:00 +00:00
cutealien 6fd8d82d4c Add multibyteToWString wrapper functions around mbstowcs which work with Irrlicht string class.
I had to add a few forward declarations in core::string because I didn't want to add another source-file for this now. If anyone decides to create a irrString.cpp those can be removed again by making multibyteToWString extern instead of static (in VS it would already be possible to avoid them, but gcc does more exact checks for friend linkage specifiers).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5212 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-13 15:34:17 +00:00
nadro 2b919736c7 - Minor improvements to OpenGL definitions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5206 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-07 18:53:26 +00:00
cutealien 96e891f09c Flip around default parameters in beginScene and setRenderTarget in a way that causes less deprecated warnings, but still does the same in general. That avoids some troubles with function resolution when only first 2 parameters got set (otherwise needed explicit casts to u16).
Use new image->getData in example to avoid warnings.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5205 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-07 12:53:31 +00:00
nadro 8863d11e65 - Fixed compilation issues on OSX.
- Added new XCode projects for engine and all examples (ARC enabled, proper bundles etc.).
- Added external context manager with support for NSOGL.(this feature was available in ogl-es branch before).
- Removed *.nib dependencies from OSX project (menu is created programmatically).
- Added missing _IRR_OVERRIDE_ for some methods.
- Renamed MacOSX to OSX directories.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5202 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-05 12:07:45 +00:00
nadro 48bf4009c7 - Added external context managers with support for WGL and GLX.(this feature was available in ogl-es branch before)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5199 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-29 20:12:51 +00:00
nadro 2b553bee89 - Added new color formats (this feature was available in ogl-es branch before):
* ECF_PVRTC_RGB2
 * ECF_PVRTC_ARGB2
 * ECF_PVRTC_RGB4
 * ECF_PVRTC_ARGB4
 * ECF_PVRTC2_ARGB2
 * ECF_PVRTC2_ARGB4
 * ECF_ETC1
 * ECF_ETC2_RGB
 * ECF_ETC2_ARGB
- Added PVR image loader with support for DXT*, PVRTC* and ETC* color formats.(this feature was available in ogl-es branch before)
- Fixed issue with mipmaps in DDS loader.
- Fixed minor issue with texture cubemap in OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5192 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-28 00:03:29 +00:00
nadro f631c9cb96 - Added cubemap texture support for OpenGL driver.(this feature was available in ogl-es branch before)
- Minor improvements in texture creation process.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5190 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-26 23:03:24 +00:00
nadro 947a1c9256 - Prepared COGLCoreTexture to support Cubemaps.
- Fixed issue related to sphere mapping on the whole scene (visible eg. in Tech Demo). Thanks AReichl for report this issue.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5185 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-15 15:19:23 +00:00
nadro a9bb0ccd36 - Added ETCF_ALLOW_MEMORY_COPY flag (this flag inform driver, if texture should keep copy of image data).(this feature was available in ogl-es branch before).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5183 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-14 16:19:49 +00:00
nadro 1553bef11f - Added initial version of shared OpenGL texture. In upcoming commits existing issues will be fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5172 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-08 16:49:13 +00:00
cutealien 645c595f64 Fix compiling on Linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5170 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-08 13:13:21 +00:00
nadro 609eba77bf - Improved mipmaps handling (this modification was required for better support of cube maps and texture arrays in near future).
- Set IImage::lock and IImage::unlock methods as deprecated (those method names was wrong, IImage::unlock did nothing...). Please use IImage::getData method instead of older alternatives.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5168 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-01 14:24:15 +00:00
nadro d565cd6a39 - Improved ITexture::hasAlpha method.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5167 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-26 21:13:25 +00:00
nadro bbe83e3f92 - Changed default values for parameters and settings like a StencilBuffer (from OFF to ON), ColorBuffer Bits (from 16 to 32) and ZBuffer Bits (from 16 to 24).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5159 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-17 16:17:03 +00:00
nadro 3fe418bc41 - Removed texture IDs parameter from IVideoDriver::setRenderTarget method. Performance gain was too low to keep this parameter available.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5152 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-16 08:47:55 +00:00
nadro 07a7d9ee2e - Added clear buffer flags.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5151 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-15 18:20:06 +00:00
nadro 02b49eea1b - Added exampleHelper and updated all examples. This is a base patch for upcoming patches related to iOS and OSX.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5143 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-24 22:44:32 +00:00
cutealien cacfc0a8b0 Make certain the override macro can also be used in gcc5 when c++11 is set.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5142 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-20 19:11:03 +00:00
cutealien b3ba72ab74 Merge branch releases/1.8 revisions 5129:5140 into trunk:
- Set the platform SDK for VS2010 and VS 2012 throughout to Windows7.1SDK
- Fix the fix for compiling on GCC5


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5141 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-20 11:19:26 +00:00
cutealien 1741e3e4d1 Add override macro to ISceneNodeAnimator::OnEvent. Thx @IrrlichtForiOS for report.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5137 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-14 11:28:06 +00:00
cutealien acd601edbc Merge branch releases/1.8 revisions 5104:5120 into trunk:
- Fix compiling on GCC5 on MinGW


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5121 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-08-26 21:04:11 +00:00
cutealien 125e73ef55 Fix skinned meshes not playing their last frame.
Also clarified animation documentation to describe current behavior more exactly.
CSkinnedMesh had returned the last key instead of the number of keys.
Thx to whoever mentioned to me once that our example dwarf is not playing his full animation in the meshviewer.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5118 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-08-13 21:29:09 +00:00
cutealien 16684d9f19 Add comment about RGB formats which are often flipped in memory.
Thx@ Squarefox for reporting.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5115 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-08-11 09:54:13 +00:00
cutealien 6ac1f8d5db Add IWriteFile::flush interface (thx @ JLouisB for the patch).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5114 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-08-08 11:42:37 +00:00
cutealien b0988a33a6 Add ISceneNodeAnimatorCameraMaya::setTargetMinDistance and getTargetMinDistance which allow to keep a distance to the zoom target.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5106 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-06-04 08:52:33 +00:00
cutealien 9ee9422a1b Add override font to IGUITreeView (thx @Escen for reminder)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5100 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-05-04 19:46:32 +00:00
cutealien e6c197fa87 Add b3d mesh-writer.
- Interface getMeshType moved from IAnimatedMesh up to IMesh.
- Static b3d mesh-writer written by Hendu, support for animated meshes added by JLouisB, testing and bugfixes by CuteAlien.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5095 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-23 18:11:52 +00:00
cutealien c6eec21cec Cameras return again an empty boundingbox (at 0,0,0) instead of returning the frustum boundingbox. Thx @robmar for reporting this.
You can still access the frustum boundingbox through the frustum itself.
Also CSceneCollisionManager collision functions ignore now empty collision boxes.
This means cameras no longer show up in the node-collision of the SceneCollisionManager.
Tests have been adapted correspondingly.
Note that this behavior was once before changed in Irrlicht (rev. 345). But it was one of many changes and there was no documentation or log-message about why anyone would like
the cameras to show up in node-collisions based on their frustum boundingbox. Without any hints about the why I decided to change it back as it's just confusing.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5094 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-19 19:55:07 +00:00
cutealien df7fd7873e Remove D3D8 tests.
Move ECOLOR_FORMAT enums added in r4984 to the end (adding in them in the middle can mess with serialization).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5092 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-15 21:04:01 +00:00
cutealien 6110f43d33 Fix documentation for SMaterial.AntiAliasing
The defaults had been changed in Irrlicht 1.6 (svn r2925) as line-smoothing did sometimes lead to software emulation under OpenGL.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5089 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-11 14:26:50 +00:00
cutealien ab0ca53b3c SMaterial::isTransparent now nearly back to how it looked like once.
Otherwise materials like EMT_TRANSPARENT_ALPHA_CHANNEL no longer worked.
Not sure if this is now causing other problems, but it no longer seems to break the known cases (tests about that pass again). If there are new problems we need new tests to show 'em.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5086 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-09 22:29:50 +00:00
cutealien 3ea43f605e Correct debug-name for CMeshBuffer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5083 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-08 22:11:01 +00:00
cutealien 05ae7cf0ea Fix bug in ISceneNode::deserializeAttributes which did set scale to 0 when no attribute was given.
Was using the wrong variable (RelativeRotation instead of RelativeScale) as default value.
This was also not working in older Irrlicht versions, but can't be fixed there as those had no default parameters for getAttribute yet.
This allows for example to load .irr files created with new CopperCube while setting a parent-node (some attributes will still be ignored as .irr files always expect the scene itself as parent, that would need some special SceneNode type to work around).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5081 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-08 22:00:41 +00:00
cutealien 818f856327 Spelling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5079 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-07 20:54:46 +00:00
cutealien d2169fc4a5 Add a new flag for controlling zbuffer writing to SMaterial.
In 4774 we tried fixing zwriting for shader materials as those are ignored in SMaterial::isTransparent.
This affected too many existing projects and made it hard to still write to zbuffer in some situations where it was necessary. So trying now another approach which brings back old functionality mostly, but allows users to have more fine-control with a new flag. Using an enum instead of bool for the new flag as it's foreseeable that more options might be necessary for this in the future.
Note: Several tests are currently failing, but they did that before, so that has to be debugged on it's own.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5076 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-06 15:20:06 +00:00
nadro b23954ebef - Fixed issue with simplified IVideoDriver::setRenderTarget method.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5074 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-01 17:33:52 +00:00
cutealien a0e403fcdc Add setRenderTarget interface taking an ITexture back in as wrapper.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5073 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-01 11:01:19 +00:00
nadro ed12a085f3 - Removed old IVideoDriver::setRenderTarget method.
- Fixed OpenGL RTT.
- Fixed compilation issues in some unit tests.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5072 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-31 19:07:17 +00:00
cutealien 9fd80a50ee Add warning that quaternion::operator* has anoter operator order than CMatrix4::operator*
Fixing it would be nice, but is probably worse. It would break users-apps in a very hidden way and 
it's too easy to work around this problem to make such an evil API-change instead.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5071 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-30 21:52:09 +00:00
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