Commit Graph

3352 Commits (db89bbc2cec7d3d2926367acf73158dea961a43e)

Author SHA1 Message Date
cutealien 2c50d344fe Add function IVideoDriver::queryTextureFormat to allow checking if a driver supports textures with a specific color format.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5523 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-21 13:53:01 +00:00
cutealien 65d70ad066 Add matrix4 constructor taking all 16 values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5518 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-16 12:05:15 +00:00
cutealien 9d2b8796b0 Add log warnings when users try to call addTexture with an empty name.
Add documentation that using an empty name with addTexture is not allowed.
Note: The reason for keeping this behavior is that we would otherwise return a pointer which 
would have to be dropped - which is only allowed for functions starting with the word create.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5517 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-15 22:02:37 +00:00
cutealien 94675af249 Fix compiling on Linux with _IRR_COMPILE_WITH_X11_ disabled.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5514 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-07 17:27:42 +00:00
cutealien cc167550f7 Add testGLError calls to COpenGLCoreTexture constructors
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5501 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-16 14:08:11 +00:00
cutealien 8569c714e1 Add OGL core headers to c::b project file
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5500 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-16 14:03:10 +00:00
cutealien c0e17f7329 Minor updates &f fixes to examples and their documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5499 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-11 12:59:14 +00:00
cutealien 0c8a5f8700 Update comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5497 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-04 16:13:16 +00:00
cutealien d476cbe3e9 Fix driverChoiceConsole when allDrivers is set to false.
Simply didn't work before. Is now the default - so examples should only show
available drivers.
Also update documentation in example 02 slightly.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5496 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-04 15:56:09 +00:00
cutealien 970ec0fa74 Fix spelling in comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5495 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-03 21:21:38 +00:00
cutealien 7d16b3e6e0 Update example 01 documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5494 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-03 21:20:51 +00:00
cutealien 5a74edd043 Prevent copying IRenderTarget objects
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5490 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-30 14:33:29 +00:00
cutealien 56b2701f04 Next try at fixing bug #433 (https://sourceforge.net/p/irrlicht/bugs/433/)
The fix in r5480 couldn't work because the previous c99 check did fail with c++ compilers.
Now including limits.h as that seems to use __WORDSIZE internally. And also we include it already at other places
so it shouldn't add new problems (unlike stdint.h and/or <stdint> which is one of the biggest messes c/c++ ever produced
if you try to use it in compiler/platform independent code which compiles under c and c++).
But... still not sure if the bug is fixed like that now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5489 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-20 22:44:04 +00:00
cutealien 261317c515 One change too much in last check-in... settings dialog still should use burnings renderer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5488 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 21:24:45 +00:00
cutealien 58bd7d4ff6 Rewrite demo to have all settings initialized in one place.
The stuff in main was just irritating before as the values there got completely ignored.
Also somewhat different defaults now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5487 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 21:23:16 +00:00
cutealien e31f08e87a CSceneNodeAnimatorCameraFPS are back to old defaults (messing with defaults bad and confusing).
Instead I'll changed examples to show off new rotation features there.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5486 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 20:56:16 +00:00
cutealien 14d22dc58c Use one callback instance per added shader material in shader example.
It's no longer a good idea to use a single callback instance since we switched to using ShaderConstantID's.
Those id's are really indices to arrays - and each added material has it's own array. We basically
used indices to arrays of another object (which happened to be identical in this case). 
And this starts to go horribly wrong once the code of one shader is slightly modified...


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5485 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 16:29:18 +00:00
cutealien 51961da07d ISceneManager::getMesh can now creates meshes with alternative cache-names.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5483 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-11 10:04:00 +00:00
cutealien 3af4847b8a Second try disabling warning. This time without causing warnings on gcc now.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5482 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-10 17:24:27 +00:00
cutealien f384d50215 Prevent warning in COpenGLCoreCacheHandler constructor.
Switch COpenGLCoreCacheHandler pointer to reference in STextureCache.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5481 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-10 17:19:22 +00:00
cutealien ba24819b82 Trying to fix problem with function signatures changes depending on include order of irrlicht.h and stdint.h
This was reported in bug #433 by neoascetic (https://sourceforge.net/p/irrlicht/bugs/433/)
Still have to test compiling this on more platforms. If it works we might backport it to 1.8


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5480 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-10 11:46:38 +00:00
cutealien 5c930a0f45 Document troubles with draw2DLine on OpenGL/Direct3D.
No workaround yet (except drawing line twice once start to end, then end to start, that would work... not yet sure if that's a good solution).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5476 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-07 19:37:22 +00:00
cutealien 99e870e2f6 Add line-numbers when printing opengl errors.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5474 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-07 14:58:46 +00:00
cutealien 99d93a8b16 Comment change.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5472 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-04 21:48:03 +00:00
cutealien 48f0b799b0 Lets the BSP loader find textures inserted with relative paths. Thx@ curaga for patch (#208).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5471 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-04 21:36:13 +00:00
cutealien f93e6dfd74 Fix comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5470 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-04 18:54:45 +00:00
cutealien a88429459e Fix bug with separator line in tabcontrol not going through when the button-bar was at bottom and width > 1000.
Add some documentation to code.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5469 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-04 18:31:23 +00:00
cutealien 5bfba69e9d Simplify ALLOC_STRATEGY_DOUBLE in arrays somewhat.
Increasing the constant to add elements always instead of having an extra-check for small numbers.
Behavior is similar to old one (adding 4 elements more for most numbers).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5468 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-02 15:11:55 +00:00
cutealien 11c7de9000 Log loading-time of meshes in Meshviewer example.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5467 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-01 23:15:38 +00:00
cutealien 2280471cf5 Maybe minor speed-up in obj loader.
Experimenting with irrAllocatorFast (we have to use it at least once somewhere...).
Also reserved some memory at vector creation to avoid so many re-allocation.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5466 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-01 23:08:06 +00:00
cutealien 49b59e39b1 Documentation changes (mainly to document allocation strategies)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5465 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-01 22:43:47 +00:00
cutealien 9cbbdeafb3 Avoid some unnecessary memory allocations in obj file loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5464 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-01 18:16:29 +00:00
cutealien 24336634a8 Add some documentation to clarify what ISceneManager::getSceneNodesFromType does do.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5461 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-05-18 13:04:57 +00:00
nadro 5ecd55e7e4 - Fixed issue with color mask in OpenGL driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5460 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-05-15 20:12:48 +00:00
cutealien 9576421267 Simplify COpenGLDriver::draw2DImage code.
No functional changes, just using existing clipping functions instead of coding them again at that place.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5459 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-05-14 20:10:29 +00:00
cutealien b1481d830e equals is back to returning a bool.
I guess returning the template paramaeter was some accident.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5458 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-05-05 13:36:05 +00:00
cutealien 5038c239df Removed wrong _IRR_OVERRIDE_ in cpp file. Thx @AReichl for report.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5453 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-24 13:43:01 +00:00
cutealien 966712c571 Add alternavive BoundingBox calculation for BillboardSceneNode which can take in a camera node. Thx @Seven and @JacKDuRdEn for bugreports.
There are still some problems (and even bugs) with all this, but fixing those will take more time. I documented some of the problems in code.
Also switched to using a MeshBuffer in the billboard (mainly because it's nicer for the emscripten port).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5452 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-22 17:29:16 +00:00
cutealien 8990dbcf28 Get rid of some clang compiler warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5451 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-22 10:19:56 +00:00
cutealien ae61c51c65 Add missing _IRR_OVERRIDE_ for CAnimatedMeshSceneNode::getMD3TagTransformation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5450 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-21 14:37:17 +00:00
cutealien fabd6cda44 - FPS camera now supports keyboard rotation.
- Base FPS-camera movement on last position of mouse instead of always center (works better on platforms where cursor-placement is not allowed).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5448 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-21 14:29:07 +00:00
cutealien bc6313ff60 Add new IOctreeSceneNode header file to c::b project files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5439 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-19 17:19:49 +00:00
cutealien b57bcd6d81 Fix spelling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5438 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-19 17:18:10 +00:00
cutealien be5b9d675e Octrees with other vertex types than EVT_2TCOORDS can now also use VBO's.
(untested, but should work).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5436 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-19 17:10:59 +00:00
cutealien 2029090b8a Reduce redundant debuggin code in octreescenenode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5435 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-19 16:37:30 +00:00
cutealien 6355bc18b7 Add IOctreeSceneNode interface to control parameters like VBO usage and polygon clipping checks for octree scene nodes.
This was already possible, but needed users to set some defines and recompile Irrlicht.
As before it's only implemented for the EVT_2TCOORDS vertex format (others will follow soon).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5434 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-19 16:28:24 +00:00
cutealien 5b6a6adf1f Undo the deprecate for old beginScene and setRenderTarget functions.
There's too much code out there using it and it doesn't really cost us anything to just keep those functions around 
as they are implemented as thin wrappers around the new implementations. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5431 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-18 12:21:24 +00:00
cutealien c3dabec2a9 CGUIMeshviewer can now also use meshbuffers with non-triangle primitives.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5430 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-18 12:15:40 +00:00
cutealien dee8ee63a7 Solve some warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5429 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-17 13:44:07 +00:00
cutealien dbd17774d0 Fix patch for meshbuffers with different primitives.
Half the calculations for number of primitives had been wrong.
Also fix a compile-warning.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5427 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-16 21:34:58 +00:00