]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/SceneParameters.h
Return nullptr pointer for empty core::array
[irrlicht.git] / include / SceneParameters.h
index 4e246902cc42e5dde8e2dd7633c979a5bd97c6c8..e6a6827c56c1cb8f3ffaacfc843abfd94111f17f 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef __I_SCENE_PARAMETERS_H_INCLUDED__\r
 #define __I_SCENE_PARAMETERS_H_INCLUDED__\r
 \r
+#include "irrTypes.h"\r
+\r
 /*! \file SceneParameters.h\r
        \brief Header file containing all scene parameters for modifying mesh loading etc.\r
 \r
@@ -29,96 +31,6 @@ namespace scene
        **/\r
        const c8* const ALLOW_ZWRITE_ON_TRANSPARENT = "Allow_ZWrite_On_Transparent";\r
 \r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** Was used for changing the texture path of the built-in csm loader like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::CSM_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const CSM_TEXTURE_PATH = "CSM_TexturePath";\r
-\r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** Was used for changing the texture path of the built-in lmts loader like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::LMTS_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const LMTS_TEXTURE_PATH = "LMTS_TexturePath";\r
-\r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** Was used for changing the texture path of the built-in MY3D loader like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::MY3D_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const MY3D_TEXTURE_PATH = "MY3D_TexturePath";\r
-\r
-       //! Name of the parameter specifying the COLLADA mesh loading mode\r
-       /**\r
-       Specifies if the COLLADA loader should create instances of the models, lights and\r
-       cameras when loading COLLADA meshes. By default, this is set to false. If this is\r
-       set to true, the ISceneManager::getMesh() method will only return a pointer to a\r
-       dummy mesh and create instances of all meshes and lights and cameras in the collada\r
-       file by itself. Example:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::COLLADA_CREATE_SCENE_INSTANCES, true);\r
-       \endcode\r
-       */\r
-       const c8* const COLLADA_CREATE_SCENE_INSTANCES = "COLLADA_CreateSceneInstances";\r
-\r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** This path is prefixed to the file names defined in the Deled file when loading\r
-       textures. This allows to alter the paths for a specific project setting.\r
-       Use it like this:\r
-       \code\r
-       SceneManager->getStringParameters()->setAttribute(scene::DMF_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const DMF_TEXTURE_PATH = "DMF_TexturePath";\r
-\r
-       //! Name of the parameter for preserving DMF textures dir structure with built-in DMF loader.\r
-       /** If this parameter is set to true, the texture directory defined in the Deled file\r
-       is ignored, and only the texture name is used to find the proper file. Otherwise, the\r
-       texture path is also used, which allows to use a nicer media layout.\r
-       Use it like this:\r
-       \code\r
-       //this way you won't use this setting (default)\r
-       SceneManager->getParameters()->setAttribute(scene::DMF_IGNORE_MATERIALS_DIRS, false);\r
-       \endcode\r
-       \code\r
-       //this way you'll use this setting\r
-       SceneManager->getParameters()->setAttribute(scene::DMF_IGNORE_MATERIALS_DIRS, true);\r
-       \endcode\r
-       **/\r
-       const c8* const DMF_IGNORE_MATERIALS_DIRS = "DMF_IgnoreMaterialsDir";\r
-\r
-       //! Name of the parameter for setting reference value of alpha in transparent materials.\r
-       /** Use it like this:\r
-       \code\r
-       //this way you'll set alpha ref to 0.1\r
-       SceneManager->getParameters()->setAttribute(scene::DMF_ALPHA_CHANNEL_REF, 0.1);\r
-       \endcode\r
-       **/\r
-       const c8* const DMF_ALPHA_CHANNEL_REF = "DMF_AlphaRef";\r
-\r
-       //! Name of the parameter for choose to flip or not tga files.\r
-       /** Use it like this:\r
-       \code\r
-       //this way you'll choose to flip alpha textures\r
-       SceneManager->getParameters()->setAttribute(scene::DMF_FLIP_ALPHA_TEXTURES, true);\r
-       \endcode\r
-       **/\r
-       const c8* const DMF_FLIP_ALPHA_TEXTURES = "DMF_FlipAlpha";\r
-\r
-\r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** Was used for changing the texture path of the built-in obj loader like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::OBJ_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const OBJ_TEXTURE_PATH = "OBJ_TexturePath";\r
-\r
        //! Flag to avoid loading group structures in .obj files\r
        /** Use it like this:\r
        \code\r
@@ -136,45 +48,6 @@ namespace scene
        **/\r
        const c8* const OBJ_LOADER_IGNORE_MATERIAL_FILES = "OBJ_IgnoreMaterialFiles";\r
 \r
-\r
-       //! Flag to ignore the b3d file's mipmapping flag\r
-       /** Instead Irrlicht's texture creation flag is used. Use it like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::B3D_LOADER_IGNORE_MIPMAP_FLAG, true);\r
-       \endcode\r
-       **/\r
-       const c8* const B3D_LOADER_IGNORE_MIPMAP_FLAG = "B3D_IgnoreMipmapFlag";\r
-\r
-       //! Deprecated, use IMeshLoader::getMeshTextureLoader()->setTexturePath instead.\r
-       /** Was used for changing the texture path of the built-in b3d loader like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::B3D_TEXTURE_PATH, "path/to/your/textures");\r
-       \endcode\r
-       **/\r
-       const c8* const B3D_TEXTURE_PATH = "B3D_TexturePath";\r
-\r
-       //! Flag set as parameter when the scene manager is used as editor\r
-       /** In this way special animators like deletion animators can be stopped from\r
-       deleting scene nodes for example */\r
-       const c8* const IRR_SCENE_MANAGER_IS_EDITOR = "IRR_Editor";\r
-\r
-       //! Name of the parameter for setting the length of debug normals.\r
-       /** Use it like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttribute(scene::DEBUG_NORMAL_LENGTH, 1.5f);\r
-       \endcode\r
-       **/\r
-       const c8* const DEBUG_NORMAL_LENGTH = "DEBUG_Normal_Length";\r
-\r
-       //! Name of the parameter for setting the color of debug normals.\r
-       /** Use it like this:\r
-       \code\r
-       SceneManager->getParameters()->setAttributeAsColor(scene::DEBUG_NORMAL_COLOR, video::SColor(255, 255, 255, 255));\r
-       \endcode\r
-       **/\r
-       const c8* const DEBUG_NORMAL_COLOR = "DEBUG_Normal_Color";\r
-\r
-\r
 } // end namespace scene\r
 } // end namespace irr\r
 \r