Commit Graph

1087 Commits (39c039302372d9cab39c4553f18b6b61f4a1969c)

Author SHA1 Message Date
cutealien 39c0393023 core::string::split now handles ignoreEmptyTokens=false correct (as documented)
Thanks @manni63 for bugreport: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=51551&p=299375#p299375


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5341 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-27 19:46:09 +00:00
cutealien e064db1355 Bugfix: Previously when some material had a texture matrix and another didn't those materials were still considered identical. Which had prevented correct switching between materials with and without texture matrices.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5340 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-26 12:35:35 +00:00
cutealien 1a98841268 IWriteFile::write now returning size_t.
Interface is now like fwrite (from standard c-lib). 
Also sizeToWrite parameter changed from u32 to size_t.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5334 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-08 20:31:15 +00:00
cutealien 1756e4700d IReadFile::read now returning size_t (like fread in c-lib) instead of s32. Also sizeToRead parameter changed from u32 to size_t.
(corresponding change to IWriteFile::write is planned for next days)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5333 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-07 22:01:04 +00:00
cutealien d3ac819504 Fix several bugs in multibyteToWString. This also fixes pasting.
Add clear function to strings.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5332 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-24 21:18:42 +00:00
cutealien 808240cf98 SceneCollisionManager now using const camera pointers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5328 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 15:56:49 +00:00
cutealien bff50c751d Spelling fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5327 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 12:50:06 +00:00
cutealien 2c64159436 Merge branch releases/1.8 revisions 5286:5301 into trunk:
- Deprecate CMatrix4::transformBox
 - Fix CSceneCollisionManager::getPickedNodeBB which could sometimes miss collisions.
 - Get lights and renderTargetTexture tests working again on Windows 10


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5302 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-27 19:35:22 +00:00
cutealien d7a700e44f Several getter functions in IAttributes made const (thx @Erik Schultheis for the patch)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5293 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-27 01:07:44 +00:00
nadro c6f5e6d972 - Replaced ITexture::lock 'mipmapLevel' param by 'layer' param.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5279 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-13 19:37:13 +00:00
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