Commit Graph

3421 Commits (master)

Author SHA1 Message Date
cutealien 6721f5b9bc Remove gui-element types from gui-editor which won't work in there.
Some elements just wouldn't be created, the modal dialogs did even crash the editor.
Context-menues also crashed it, but should be fixed some day.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5561 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-02 23:16:31 +00:00
cutealien a4c3a251f1 Revert the part of last check-in where I tried to remove focus when EGET_ELEMENT_REMOVED was called on a focused element.
Found a crash for that. Might give it another try some day, but giving up for now.
EGET_ELEMENT_REMOVED can stay - still should be useful (users can find out when elements got removed).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5560 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-01 21:13:14 +00:00
cutealien e2ca877234 Add gui event EGET_ELEMENT_REMOVED. Remove active focus now from elements which got removed from the gui graph.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5559 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-01 20:57:10 +00:00
cutealien bb74f9034a Fix: IGUIContextMenu now raises sub-menu when they would otherwise be displayed below bottom-border of root gui element.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5558 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-01 15:21:48 +00:00
cutealien c30590eeaf Prevent double initialization/destruction of SDL subsystems when using more than one Irrlicht device.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5552 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-10-25 12:40:07 +00:00
cutealien a2e51ecf80 Reduce log-messages for "loaded texture" and "loaded mesh" from ELL_INFORMATION to ELL_DEBUG.
In larger projects those tend to spam the default log too much.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5547 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-10-21 19:28:05 +00:00
cutealien 92799fded9 Add IGUIButton::setOverrideColor to allow overriding text-color (same function as statictexts and editboxes have).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5546 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-10-21 14:56:19 +00:00
cutealien 4d59133e49 Add functions IGUIButton::getClickShiftState and IGUIButton::getClickControlState to get shift/ctrl key-state when a button was clicked. Thanks @StarSonata for patch (long time ago...).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5545 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-10-19 21:00:50 +00:00
cutealien 06efc9a196 Add function ISceneManager::clearAllRegisteredNodesForRendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5544 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-10-02 15:00:19 +00:00
cutealien 16fd29f43f Unify CSceneManager::getMesh functions (put identical code in getUncachedMesh).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5542 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-30 15:21:51 +00:00
cutealien c6129f81e9 Revert ftell checks from r5532. Add documentation.
I suppose not checking gives a chance for ftell to go wrong in which case we can get an error (size -1). 
Arguably which solution is better - I reverted it simply because not changing old behavior is probably better than changing it.
Also added documentation about getSize to IReadFile, IWriteFile and IFileReadCallBack that those functions can return -1L on error
(thanks @dixx for mentioning that in http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=52086).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5538 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-27 15:09:34 +00:00
cutealien ac70924cec Fix crash on quitting MaterialViewer.
Problem was some gui-elements got deleted once more after device was closed already.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5537 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-25 16:42:57 +00:00
cutealien 781c8f2fbb Move log errors from getColorFormatParameters to the functions using it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5536 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-25 15:17:44 +00:00
cutealien 213cb5a93f Add another check to getProcessorSpeedMHz to prevent crashes on Unix when it's called with 0 parameter.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5535 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-25 15:04:51 +00:00
cutealien c937fcf488 Fix getProcessorSpeedMHz on Linux. Thanks @devsh for mentioning problems in that area.
Note that the MHz can vary each second and is only returned for first processor.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5534 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-25 15:01:47 +00:00
cutealien c2be178b5d Add string array with color format names.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5533 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-24 20:54:08 +00:00
cutealien f22b5db06d Check fseek return values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5532 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-24 19:35:47 +00:00
cutealien 24ebe17b75 Merge branch releases/1.8 revisions r5396 through r5529 into trunk:
- CFileSystem::getAbsolutePath no longer wrongly converts an empty filename to "/" on unix platforms.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5530 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-24 13:56:22 +00:00
cutealien 4ee827b16a Move SOverrideMaterial to it's own header.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5528 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-23 16:41:15 +00:00
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