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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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