Commit Graph

3421 Commits (master)

Author SHA1 Message Date
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
cutealien de1bbfdc50 - Add support for different geometric primitivs to meshbuffers.
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
2017-04-14 19:48:24 +00:00
cutealien 6759399c6f Add a few missing _IRR_OVERRIDE_'s to functions in sdl-device.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5423 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-13 16:14:41 +00:00
cutealien c7e0b42554 Optimizing line2d::intersectWith and line2d::fastLinesIntersection.
(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
2017-04-13 12:34:56 +00:00
cutealien 361a4640af Fix crash when using SDL device caused by uninitialized variable in opengl driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5419 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-13 11:53:30 +00:00
cutealien 36eaf94227 Fix crash when compiling with SDL device but selecting another one.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5418 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-13 11:47:10 +00:00
cutealien 278dc39029 UserEvent now usize size_t for UserData fields to avoid cutting number on some platforms.
Fix some warnings.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5417 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-12 16:22:35 +00:00
cutealien 4f56eecd61 Simplify code in testUtils and get line2d.cpp tp compile in MinGW.
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
2017-04-06 20:50:05 +00:00
fixeworks fd6a5a12c7 Added test file for line2d.cpp.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5400 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-04 10:50:03 +00:00
fixeworks e6936a81fe Removed duplicated method I added by mistake in vector2d.h Refactored code to use older and better method.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5399 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-03 11:59:06 +00:00
fixeworks 4982db91f4 Removed accidental preprocessors definitions
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5398 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-03 10:47:34 +00:00
fixeworks cd3c0beb9d Fixed all compilation errors that Visual studio skipped. Now all added functions are unit-tested.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5397 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-02 19:01:33 +00:00
cutealien 41722cee0d Improve speed of draw3DBox on D3D9.
Thanks @zerochen for patch (https://sourceforge.net/p/irrlicht/patches/256)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5396 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-02 15:53:50 +00:00
cutealien a328f9af2d Merge Merge branch releases/1.8 revisions r5389:r5394 into trunk.
- compile fixes


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5395 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-02 15:09:17 +00:00
cutealien 34639b9d70 Fix some compile errors and warnings on MinGW.
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
2017-04-02 14:40:33 +00:00
fixeworks 56f0372862 Added new intersection methods, improved comparison to be reusable (without hardcoding rounding constants), added unit tests for some functionality
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5390 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-02 12:41:13 +00:00
cutealien f28e0ba53c Update speed of draw3DBox (OpenGL). Thanks @zerochen for patch (https://sourceforge.net/p/irrlicht/patches/256)
(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
2017-04-01 23:07:20 +00:00
cutealien 49cc0f54ad Merge branch releases/1.8 revisions r5369:r5387 into trunk.
- 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
2017-04-01 16:26:31 +00:00
cutealien bd9ff4940b Revert r5384 partly. Didn't compile.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5386 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-30 22:04:22 +00:00
cutealien ee1baae711 Revert r5383 (compile errors).
Can be added again as soon as fixed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5385 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-30 10:31:10 +00:00
fixeworks d783e760ee Added more intersection tests for Line2D. Fixed typos for Reference operator "&".
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5384 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-29 13:47:19 +00:00
fixeworks f46acc45b8 Added methods to test orientation and if a point is on a segment
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5383 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-29 11:53:50 +00:00
fixeworks 874176a643 Fixed warning on CWriteFile
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5382 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-29 11:43:14 +00:00
fixeworks 29d9eab99c Fixed semicolon typo. Sorry
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5381 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-29 09:39:14 +00:00
fixeworks 03aba69d19 Added methods to check if 2 lines are incident segments (intersects in exactly 1 point) or intersect in general (also colinear)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5380 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-28 08:10:11 +00:00
fixeworks b3509fe8e9 Fixed a compiler warning in matrix4
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5379 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-28 08:05:14 +00:00
fixeworks 4649f03f13 Added normalization to quaternion.h where needed. Added a faster method that relies on quaternion being already normalized. Removed a useless conditional branch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5378 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-28 08:02:41 +00:00
cutealien 7c7ddbb06a Support more keys on OSX "[]\". Thanks @neoascetic for patch (#313).
Link: https://sourceforge.net/p/irrlicht/patches/313/


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5375 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-22 22:56:03 +00:00
cutealien 0fdfc73cb1 Get rid of compile-warning in aes code.
Thx @Eduline - human development for the report (patch #307).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5374 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-22 22:36:08 +00:00
cutealien 2882711b7f Add ITextSceneNode::setFont.
IBillboardTextSceneNode has now it's own type (was using same type as ITextSceneNode before). See Bug #197.
But serialization of both text-nodes still not working (needs font-serialization).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5373 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 17:00:36 +00:00
cutealien 83be80032b Add access functions to IBillboardTextSceneNode (getText, getFont).
Fix IBillboardTextSceneNode::setTextColor which did only set an unused variable. It now maps to setColor instead.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5372 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 16:35:22 +00:00
cutealien 51115e14a1 Add access functions to ITextSceneNode (getText, getTextColor, getFont).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5371 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 12:58:01 +00:00