Various clean up
This commit is contained in:
parent
d271ccd2ef
commit
3375b4b93c
@ -258,39 +258,9 @@ the engine will no longer read .png images. */
|
|||||||
tool <http://developer.nvidia.com/object/nvperfhud_home.html>. */
|
tool <http://developer.nvidia.com/object/nvperfhud_home.html>. */
|
||||||
#undef _IRR_USE_NVIDIA_PERFHUD_
|
#undef _IRR_USE_NVIDIA_PERFHUD_
|
||||||
|
|
||||||
//! Define one of the three setting for Burning's Video Software Rasterizer
|
|
||||||
/** So if we were marketing guys we could say Irrlicht has 4 Software-Rasterizers.
|
|
||||||
In a Nutshell:
|
|
||||||
All Burnings Rasterizers use 32 Bit Backbuffer, 32Bit Texture & 32 Bit Z or WBuffer,
|
|
||||||
16 Bit/32 Bit can be adjusted on a global flag.
|
|
||||||
|
|
||||||
BURNINGVIDEO_RENDERER_BEAUTIFUL
|
|
||||||
32 Bit + Vertexcolor + Lighting + Per Pixel Perspective Correct + SubPixel/SubTexel Correct +
|
|
||||||
Bilinear Texturefiltering + WBuffer
|
|
||||||
|
|
||||||
BURNINGVIDEO_RENDERER_FAST
|
|
||||||
32 Bit + Per Pixel Perspective Correct + SubPixel/SubTexel Correct + WBuffer +
|
|
||||||
Bilinear Dithering TextureFiltering + WBuffer
|
|
||||||
|
|
||||||
BURNINGVIDEO_RENDERER_ULTRA_FAST
|
|
||||||
16Bit + SubPixel/SubTexel Correct + ZBuffer
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define BURNINGVIDEO_RENDERER_BEAUTIFUL
|
|
||||||
//#define BURNINGVIDEO_RENDERER_FAST
|
|
||||||
//#define BURNINGVIDEO_RENDERER_ULTRA_FAST
|
|
||||||
//#define BURNINGVIDEO_RENDERER_CE
|
|
||||||
|
|
||||||
//! Uncomment the following line if you want to ignore the deprecated warnings
|
//! Uncomment the following line if you want to ignore the deprecated warnings
|
||||||
//#define IGNORE_DEPRECATED_WARNING
|
//#define IGNORE_DEPRECATED_WARNING
|
||||||
|
|
||||||
//! Define _IRR_COMPILE_WITH_IRR_SCENE_LOADER_ if you want to be able to load
|
|
||||||
/** .irr scenes using ISceneManager::loadScene */
|
|
||||||
#define _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
|
|
||||||
#ifdef NO_IRR_COMPILE_WITH_IRR_SCENE_LOADER_
|
|
||||||
#undef _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//! Define _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_ if you want to use bone based
|
//! Define _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_ if you want to use bone based
|
||||||
/** animated meshes. If you compile without this, you will be unable to load
|
/** animated meshes. If you compile without this, you will be unable to load
|
||||||
B3D, MS3D or X meshes */
|
B3D, MS3D or X meshes */
|
||||||
|
@ -24,54 +24,10 @@
|
|||||||
#include "CSkinnedMesh.h"
|
#include "CSkinnedMesh.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_MESH_LOADER_
|
|
||||||
#include "CIrrMeshFileLoader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_HALFLIFE_LOADER_
|
|
||||||
#include "CAnimatedMeshHalfLife.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_MS3D_LOADER_
|
|
||||||
#include "CMS3DMeshFileLoader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_3DS_LOADER_
|
|
||||||
#include "C3DSMeshFileLoader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_X_LOADER_
|
|
||||||
#include "CXMeshFileLoader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_OGRE_LOADER_
|
|
||||||
#include "COgreMeshFileLoader.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_B3D_LOADER_
|
#ifdef _IRR_COMPILE_WITH_B3D_LOADER_
|
||||||
#include "CB3DMeshFileLoader.h"
|
#include "CB3DMeshFileLoader.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
|
|
||||||
#include "CSceneLoaderIrr.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_COLLADA_WRITER_
|
|
||||||
#include "CColladaMeshWriter.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_WRITER_
|
|
||||||
#include "CIrrMeshWriter.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_STL_WRITER_
|
|
||||||
#include "CSTLMeshWriter.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_PLY_WRITER_
|
|
||||||
#include "CPLYMeshWriter.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "CCubeSceneNode.h"
|
#include "CCubeSceneNode.h"
|
||||||
#include "CSphereSceneNode.h"
|
#include "CSphereSceneNode.h"
|
||||||
#include "CAnimatedMeshSceneNode.h"
|
#include "CAnimatedMeshSceneNode.h"
|
||||||
@ -169,37 +125,10 @@ CSceneManager::CSceneManager(video::IVideoDriver* driver, io::IFileSystem* fs,
|
|||||||
|
|
||||||
// add file format loaders. add the least commonly used ones first,
|
// add file format loaders. add the least commonly used ones first,
|
||||||
// as these are checked last
|
// as these are checked last
|
||||||
|
|
||||||
// TODO: now that we have multiple scene managers, these should be
|
|
||||||
// shallow copies from the previous manager if there is one.
|
|
||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_OGRE_LOADER_
|
|
||||||
MeshLoaderList.push_back(new COgreMeshFileLoader(FileSystem, Driver));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_HALFLIFE_LOADER_
|
|
||||||
MeshLoaderList.push_back(new CHalflifeMDLMeshFileLoader( this ));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_MESH_LOADER_
|
|
||||||
MeshLoaderList.push_back(new CIrrMeshFileLoader(this, FileSystem));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_3DS_LOADER_
|
|
||||||
MeshLoaderList.push_back(new C3DSMeshFileLoader(this, FileSystem));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_X_LOADER_
|
|
||||||
MeshLoaderList.push_back(new CXMeshFileLoader(this, FileSystem));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_MS3D_LOADER_
|
|
||||||
MeshLoaderList.push_back(new CMS3DMeshFileLoader(Driver));
|
|
||||||
#endif
|
|
||||||
#ifdef _IRR_COMPILE_WITH_B3D_LOADER_
|
#ifdef _IRR_COMPILE_WITH_B3D_LOADER_
|
||||||
MeshLoaderList.push_back(new CB3DMeshFileLoader(this));
|
MeshLoaderList.push_back(new CB3DMeshFileLoader(this));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// scene loaders
|
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
|
|
||||||
SceneLoaderList.push_back(new CSceneLoaderIrr(this, FileSystem));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// factories
|
// factories
|
||||||
ISceneNodeFactory* factory = new CDefaultSceneNodeFactory(this);
|
ISceneNodeFactory* factory = new CDefaultSceneNodeFactory(this);
|
||||||
@ -2383,31 +2312,10 @@ IMeshWriter* CSceneManager::createMeshWriter(EMESH_WRITER_TYPE type)
|
|||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case EMWT_IRR_MESH:
|
case EMWT_IRR_MESH:
|
||||||
#ifdef _IRR_COMPILE_WITH_IRR_WRITER_
|
|
||||||
return new CIrrMeshWriter(Driver, FileSystem);
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
case EMWT_COLLADA:
|
case EMWT_COLLADA:
|
||||||
#ifdef _IRR_COMPILE_WITH_COLLADA_WRITER_
|
|
||||||
return new CColladaMeshWriter(this, Driver, FileSystem);
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
case EMWT_STL:
|
case EMWT_STL:
|
||||||
#ifdef _IRR_COMPILE_WITH_STL_WRITER_
|
|
||||||
return new CSTLMeshWriter(this);
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
case EMWT_OBJ:
|
case EMWT_OBJ:
|
||||||
|
|
||||||
case EMWT_PLY:
|
|
||||||
#ifdef _IRR_COMPILE_WITH_PLY_WRITER_
|
|
||||||
return new CPLYMeshWriter();
|
|
||||||
#else
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user