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
Thanks @gerdb for patch proposal (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=45999)
Note: Original patch got mostly lost (except the parts posted in the forum). So not sure how close my implementation is to that one. I also simply ignore some of the problems mentioned in that thread. So yeah - meshmanipulator and meshwriters can and will mess up when other primitive types are set for now. It's documented and feature is still useful - other parts can be adapted over time (or ignored, also no big problem).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5425 dfc29bdd-3216-0410-991c-e03cc46cb475
(was mainly to get rid of warnings in line2d::fastLinesIntersection with llvm about unused variables)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5420 dfc29bdd-3216-0410-991c-e03cc46cb475
Thanks at AReichl for info about simplifying testUtils.cpp (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=46207&start=15)
line2d had some custom random-generator which caused problems, but it wasn't used anyway, so got removed now.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5402 dfc29bdd-3216-0410-991c-e03cc46cb475
Note - still not compiling - will take a moment - have to fix other one in Irrlicht 1.8 first.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5391 dfc29bdd-3216-0410-991c-e03cc46cb475
(DirectX part still open, will apply that another day).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5389 dfc29bdd-3216-0410-991c-e03cc46cb475
- Fix bug in cursor positions when compiled with newer Windows SDK's (v110 in VS2012) and running on Systems >= Windows Vista in windowed mode.
- IOSOperator::getSysteMemory() no longer returns incorrect values with >2GB.
- Spelling fixes and documenation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5388 dfc29bdd-3216-0410-991c-e03cc46cb475