Just as minor hint to users when trying to link with SDL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5862 dfc29bdd-3216-0410-991c-e03cc46cb475
No more checking for all the VS specific annotation stuff in code analysis (we don't use this anyway).
Also less const checks (arguably make code nicer, but not really helping finding suspcious code places, just lots of noise).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5857 dfc29bdd-3216-0410-991c-e03cc46cb475
Mainly making a few variables const and declaring variables at each place where they are used instead of once at top.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5856 dfc29bdd-3216-0410-991c-e03cc46cb475
Hopefully this makes it more obvious that we're not dealing with a virtual function here (like all the other getType() functions in Irrlicht).
Should maybe be renamed (classType or classTypeId?).
Also vertexbuffers can now use it without having to create an object first.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5855 dfc29bdd-3216-0410-991c-e03cc46cb475
Specific rules we should use for Irrlicht can be figured out later (probably too many enabled right now)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5849 dfc29bdd-3216-0410-991c-e03cc46cb475
Thx @greenya for noticing this is no longer needed as it was only ever used for the CG shader language which we kicked out already.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5846 dfc29bdd-3216-0410-991c-e03cc46cb475
Add log warnings when users try to set depth/stencil textures which have no depth color format.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5845 dfc29bdd-3216-0410-991c-e03cc46cb475
Just completing SOverrideMaterial somewhat (some values still can't be set as they have no flags...).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5844 dfc29bdd-3216-0410-991c-e03cc46cb475
Delay switching back to previous active texture until mipmap generation is done.
Avoids 4 GL calls in most cases (not really noticable for speed, but makes reading api-traces of GL calls a bit easier).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5842 dfc29bdd-3216-0410-991c-e03cc46cb475
Before it updated only on move events. That could lead to troubles when the camera was actived by click as it then started the rotation with the position of the last move event it had.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5835 dfc29bdd-3216-0410-991c-e03cc46cb475
Just making it easier to see when DepthStencil can be set (we never have a depth texture format when we have no texture).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5833 dfc29bdd-3216-0410-991c-e03cc46cb475
SW_SHOWMINIMIZED isn't a bitflag as was probably assumed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5827 dfc29bdd-3216-0410-991c-e03cc46cb475
This mostly happens because we merge vertices by position in the meshloader. But such triangles tend to cause troubles and won't render, so kick them out.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5826 dfc29bdd-3216-0410-991c-e03cc46cb475
GenerateTextureMipmap had been forgotten in initialization when they got added recently.
Re-ordering initialization to avoid compiler warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5823 dfc29bdd-3216-0410-991c-e03cc46cb475
Thx @ criss and devsh for this patch (got applied with minor adaptions).
New functions are about functions using new direct state access functions from GL 4.5
And array textures.
Not yet used internally in the engine (but possible to access it with some hacks from apps, we probably should make the extension handler public at some point).
Also now using glActiveTexture as default instead of glActiveTextureARB.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5818 dfc29bdd-3216-0410-991c-e03cc46cb475
Deprecate PolygonOffsetFactor and PolygonOffsetDirection in SMaterial.
Replace it by PolygonOffsetDepthBias and PolygonOffsetSlopeScale.
Old values still work for now (as well as they did), but will be removed after Irrlicht 1.9.
The old implementation was based a lot on the way Direct3D8 had worked.
- We only had values -1 and 1 for the slope bias before, but sometimes other values are necessary.
- An int value for PolygonOffsetFactor couldn't worked for Direct3D9 which (unlike D3D8) uses a value range of -1 to 1.
Thx @ Criss and devsh for implementing some code which showed that different slope scaling is sometimes needed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5817 dfc29bdd-3216-0410-991c-e03cc46cb475
(was still unix-style as I just copied this header from khronos).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5816 dfc29bdd-3216-0410-991c-e03cc46cb475
Note: Khronos made glext.h now depend on a new file KHR/khrplatform.h
The idea seems to be that some common types can be shared with other gl headers (for gles versions).
But I run into some problem with that as it was included with <> instead of "" so Visual Studio wouldn't find
it without adding include paths to all projects for new KHR folder. Didn't want that (can't test that for example on iOS),
so I modified official khronos header by changing the include to using "".
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5815 dfc29bdd-3216-0410-991c-e03cc46cb475
While COpenGLCoreCacheHandler wasn't meant to be accessed externally, it is possible with some hacks (a few casts and including internal headers) and sometimes necessary.
And that's one of the state-flags people have a need to know from outside the engine.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5814 dfc29bdd-3216-0410-991c-e03cc46cb475
Before they could get pretty large as each node used the maximum memory it started with.
Also some changes to avoid unnecessary memory re-alloction when creating it.
Thanks @Squarefox for reporting the problem and proposing a patch.
See discussion at: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52484
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5813 dfc29bdd-3216-0410-991c-e03cc46cb475
Thx@ Squarefox for reporting (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52484)
Basically the loop was split into 2 loops so children do their allocations after the parent node
has finished his. Otherwise we got fragmentation by chaotic allocation order where parents/childs
switched all the time.
Also indention of loop changed (sorry, should have done that before).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5812 dfc29bdd-3216-0410-991c-e03cc46cb475
In r5805 they got broken when adding compile-flags for them.
Copy-paste error, define was missing a '_' at the end in some places, sorry.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5810 dfc29bdd-3216-0410-991c-e03cc46cb475
We already had the variable, just no access function.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5809 dfc29bdd-3216-0410-991c-e03cc46cb475
(probably was added accidental, as it was always enabled that way which kills it's original purpose).
Thx@ LunaRebirth for report (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52471)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5807 dfc29bdd-3216-0410-991c-e03cc46cb475
Following flags got added:
_IRR_COMPILE_WITH_OCTREE_SCENENODE_
_IRR_COMPILE_WITH_TERRAIN_SCENENODE_
_IRR_COMPILE_WITH_SHADOW_VOLUME_SCENENODE_
_IRR_COMPILE_WITH_BILLBOARD_SCENENODE_
_IRR_COMPILE_WITH_WATER_SURFACE_SCENENODE_
_IRR_COMPILE_WITH_SKYDOME_SCENENODE_
_IRR_COMPILE_WITH_CUBE_SCENENODE_
_IRR_COMPILE_WITH_SPHERE_SCENENODE_
Also the corresponding _NO_IRR_COMPILE_WITH... flags certainly.
More such flags might be added in future, but will test first if it really makes a difference for WebGL apps which were the main reason to add this.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5805 dfc29bdd-3216-0410-991c-e03cc46cb475