Commit Graph

2338 Commits (39c039302372d9cab39c4553f18b6b61f4a1969c)

Author SHA1 Message Date
cutealien da3c88d0e1 Fix some compile warnings which were caused by recent interface changes in file reader/writer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5339 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-20 15:47:00 +00:00
cutealien 1d95a1605c Include locale.h insteads of clocale.
Backport form ogl-es branch. Turns out Android NDK doesn't have clocale.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5337 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-10 13:20:03 +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 d4204168c6 Ensure saveScene always uses dot's (and not commas) for floating point numbers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5331 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-22 10:20:31 +00:00
cutealien 7ffdbb728a Fix accidental changing of locale in file-open dialog. Thanks @Mel for bug-report and test-case.
We have to temporarily change LC_CTPYE, but did change LC_ALL. That could in some situations (maybe when LC_CTYPE and LC_NUMERIC where not identical?) lead to LC_NUMERIC (and probably others) being changed afterwards.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5330 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-22 10:15:16 +00:00
cutealien bbfb73b97d Move keycodes on OSX out of the _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ part as otherwise it won't compile when _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ is not set.
Thanks @Wol101 for reporting.
Note... compiling not tested due to lack of test-system...


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5329 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-14 14:31:44 +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 c8e0683827 Merge branch releases/1.8 revisions r5315:r5325 into trunk.
- documentation changes
- jpg loader can now load more jpg formats.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5326 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-19 20:30:59 +00:00
nadro a101d17d06 - Fixed mipmaps rendering in Burning's driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5318 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 13:38:33 +00:00
cutealien 413316708c Merge branch releases/1.8 revisions r5311:r5314 into trunk
- Update libpng to 1.6.23 (from 1.6.21)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5315 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 09:36:42 +00:00
cutealien 666feee11e Merge branch releases/1.8 revisions r5302:r5310 into trunk:
- Tests on Unix now have a short pause between switching drivers to avoid certain X11 errors.
 - Fix CEnumAttribute::getInt() which could crash  (thx @ luthyr for reporting)
 - No longer try to run tests for drivers not supported on a platform


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5311 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-08 20:41:42 +00:00
cutealien 1c6a9c68cb Minor type improvement (thx @ luthyr for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5306 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-06-19 18:28:23 +00:00
cutealien fb49a86eb6 Several fixes for SceneNodeAnimatorCollisionResponse, based on http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=33098&p=290746
Thanks to all people who reported and to JLouisB and kinkreet for the patches:
- Gravity is now fps independent
- Values of gravity now like documented (wasn't 1 unit = 1m before, had been 1m = current frames per second, so maybe 100 units = 1m). 
  Note that jump-values for fps-camera must also change when adapting gravity!
  Several examples got adapted for new ranges
- Pausing timer now pauses animator. Also doesn't reset values anymore with pauses.
- Clones no longer have 1000 times the gravity of original animator.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5305 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-06-04 19:54:19 +00:00
cutealien 960be376dd CTriangleSelector now supports 32-bit meshbuffers. Thanks @Wol101 for reporting and patch-proposal.
I used another patch which complicates the code somewhat, but old solution was too slow for my taste.
This should now speedup CTriangleSelector for animated meshes which call updateFromMesh regularly.
Also a fix: CTriangleSelector no longer resets it's boundingbox to 0,0,0 (that caused too large meshbuffers when a meshbuffer was not around 0), so basically also just a speedup.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5304 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-30 20:21:23 +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 39f9b8fa49 Fix: Collada reader/writer now uses wrap_p for third texture wrap value instead of invalid wrap_r (thx @Yoran for bugreport).
Seems that Irrlicht uses u,v,w, OpenGL uses s,t,r and Collada uses s,t,p
Files written by older Irrlicht can still be read (aka reader still supports wrap_r)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5297 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-17 10:23:27 +00:00
nadro 3c57e01700 - Fixed issue with support 8+ textures in D3D9.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5295 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-04-02 10:51:33 +00:00
cutealien c279615ab8 Get rid of some warnings in timer initialization.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5294 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-30 20:30:59 +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
cutealien 955307e574 Merge branch releases/1.8 revisions 5277:5284 into trunk:
- Add -U__STRICT_ANSI__ option to c::b project files to allow compiling with -std=c++11 and add an error when trying to compile with Irrlicht with __STRICT_ANSI__


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5285 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-17 21:18:16 +00:00
nadro 2b18a9ae19 - Fixed positioning of 2D elements in OpenGL. Test drawRectOutline passed. Thanks CuteAlien for report this issue.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5282 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-15 20:02:57 +00:00
nadro 909e7ca9c3 - Added support for cubemap lock in OpenGL.
- Enabled cubemaps feature in D3D9.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5281 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-15 00:05:21 +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
cutealien 818d593012 Update libpng to 1.6.21 (from 1.6.10)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5276 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-12 16:28:37 +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 e7b23792f8 Prevent crashes in fps and maya camera animators when the device has no CursorControl
(still can't control those cameras without cursor certainly).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5272 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-07 20:53:30 +00:00
cutealien e4f59b2d49 Fix: CTriangleSelector no longer ignores meshbuffer transformations from skinned meshes.
Thanks @AlexAzazel for report and test-model.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5270 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-06 19:00:04 +00:00
cutealien a91c279ab9 Fix display of debug normals for skinned meshes with meshbuffer transformations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5268 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-01 23:04:08 +00:00
nadro 2ed02b0b60 - Fix for the previous commit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5266 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-23 18:53:07 +00:00
nadro f1ee66d89a - Fixed memory leak in CD3D9Texture. Thanks CuteAlien for report that and provide a patch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5265 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-23 18:47:04 +00:00
nadro 8e8bb14a03 - Fixed render targets handling in ITexture::lock for OpenGL driver (floating point, depth and stencil formats not supported).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5262 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-18 22:19:17 +00:00
nadro 3283251abb - Added to PVR loader support for following uncompressed formats:
* ECF_A1R5G5B5
 * ECF_R5G6B5
 * ECF_R8G8B8
 * ECF_A8R8G8B8

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5261 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-14 20:59:43 +00:00
nadro 56ebb84c57 - Fixed issue with mipmaps in OpenGL.
- Fixed issue with cube maps filtering in OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5260 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-14 17:23:38 +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 48e75f34c8 - Fixed issue with CurrentRenderTargetSize vs. CurrentRendertargetSize. Thanks cheqnk for report.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5255 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-13 11:07:38 +00:00
cutealien adc89d1c0c Merge branch releases/1.8 revisions 5195:5252 into trunk
- Get rid of some "misleading-indentation" warnings in gcc6
- Fix some compile warnings in aes which got handled as errors by some c++11 compilers.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5253 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-02-04 22:59:52 +00:00
nadro bd9fe040ab - Changed COGLCore files/classes prefix to COpenGLCore.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5247 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-17 13:27:54 +00:00
cutealien db9dfd00dc - Resetting Randomizer with 0 or no longer breaks it (will be set to 1). Same for other numbers for which it wasn't defined.
- Randomizer now returns range 0..randMax as documented and no longer 1..randMax as it did before. randMax got reduced by 1.
- Using now same random numbers as std::minstd_rand0. Not sure if the others were wrong, but documentation mentioned they are for mixed linear congruential generator from L'Ecuyer and as far as I can see we don't use that (that one mixes 2 calculations). We seem to use just a linear congruential generator. (I'm no expert on all this, just what it looks like from net articles).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5243 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-12 20:15:33 +00:00
cutealien cf1a56cb11 Add some debug-output when ogre-mesh fails loading because of wrong serializer number.
Probably something which will happen now a lot, would be nice if someone would update the ogre loader.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5242 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-11 23:51:26 +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 472a30e4c4 - Fixed crash in CD3D9RenderTarget::generateSurfaces(). Thx CuteAlien for report.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5240 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-10 13:07:52 +00:00
nadro 81a4c3d980 - Added cubemaps support for D3D9.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5239 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-09 23:16:41 +00:00
nadro 5325a921fd - Minor improvements for both COGLCoreTexture::lock and CD3D9Texture::lock methods.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5238 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-09 22:00:47 +00:00
nadro e12ef3a41a - Changes for D3D9 texture code (at now it looks like OpenGL texture code). Those changes was required for upcoming cubemaps support.
- Minor improvements in COGLCoreTexture.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5237 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-01-09 21:54:37 +00:00
cutealien 1aba16d85b Do no longer re-calculate md2 frames when they don't change (thx @npc for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5227 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-28 11:37:41 +00:00
cutealien 76fe372736 COpenGLDriver doesn't seem to need COpenGLCacheHandler or COpenGLTexture as friends. So removed those.
If one of them is needed again please write 'friend class COpenGLCacheHandler' instead of 'friend COpenGLCacheHandler' as 
older gcc compilers (4.4.7) won't accept it otherwise.
Thanks @umen for reporting.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5226 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-21 19:03:25 +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