]> git.lizzy.rs Git - irrlicht.git/blob - include/EMaterialFlags.h
Drop ETS_TEXTURE_1
[irrlicht.git] / include / EMaterialFlags.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __E_MATERIAL_FLAGS_H_INCLUDED__\r
6 #define __E_MATERIAL_FLAGS_H_INCLUDED__\r
7 \r
8 namespace irr\r
9 {\r
10 namespace video\r
11 {\r
12 \r
13         //! Material flags\r
14         enum E_MATERIAL_FLAG\r
15         {\r
16                 //! Draw as wireframe or filled triangles? Default: false\r
17                 EMF_WIREFRAME = 0x1,\r
18 \r
19                 //! Draw as point cloud or filled triangles? Default: false\r
20                 EMF_POINTCLOUD = 0x2,\r
21 \r
22                 //! Flat or Gouraud shading? Default: true\r
23                 EMF_GOURAUD_SHADING = 0x4,\r
24 \r
25                 //! Will this material be lighted? Default: true\r
26                 EMF_LIGHTING = 0x8,\r
27 \r
28                 //! Is the ZBuffer enabled? Default: true\r
29                 EMF_ZBUFFER = 0x10,\r
30 \r
31                 //! May be written to the zbuffer or is it readonly. Default: true\r
32                 /** This flag is ignored, if the material type is a transparent type. */\r
33                 EMF_ZWRITE_ENABLE = 0x20,\r
34 \r
35                 //! Is backface culling enabled? Default: true\r
36                 EMF_BACK_FACE_CULLING = 0x40,\r
37 \r
38                 //! Is frontface culling enabled? Default: false\r
39                 /** Overrides EMF_BACK_FACE_CULLING if both are enabled. */\r
40                 EMF_FRONT_FACE_CULLING = 0x80,\r
41 \r
42                 //! Is bilinear filtering enabled? Default: true\r
43                 EMF_BILINEAR_FILTER = 0x100,\r
44 \r
45                 //! Is trilinear filtering enabled? Default: false\r
46                 /** If the trilinear filter flag is enabled,\r
47                 the bilinear filtering flag is ignored. */\r
48                 EMF_TRILINEAR_FILTER = 0x200,\r
49 \r
50                 //! Is anisotropic filtering? Default: false\r
51                 /** In Irrlicht you can use anisotropic texture filtering in\r
52                 conjunction with bilinear or trilinear texture filtering\r
53                 to improve rendering results. Primitives will look less\r
54                 blurry with this flag switched on. */\r
55                 EMF_ANISOTROPIC_FILTER = 0x400,\r
56 \r
57                 //! Is fog enabled? Default: false\r
58                 EMF_FOG_ENABLE = 0x800,\r
59 \r
60                 //! Normalizes normals. Default: false\r
61                 /** You can enable this if you need to scale a dynamic lighted\r
62                 model. Usually, its normals will get scaled too then and it\r
63                 will get darker. If you enable the EMF_NORMALIZE_NORMALS flag,\r
64                 the normals will be normalized again, and the model will look\r
65                 as bright as it should. */\r
66                 EMF_NORMALIZE_NORMALS = 0x1000,\r
67 \r
68                 //! Access to all layers texture wrap settings. Overwrites separate layer settings.\r
69                 /** Note that if you want to change TextureWrapU, TextureWrapV, TextureWrapW \r
70                 independently, then you can't work with this flag, but will have to set the variables\r
71                 directly. */\r
72                 EMF_TEXTURE_WRAP = 0x2000,\r
73 \r
74                 //! AntiAliasing mode\r
75                 EMF_ANTI_ALIASING = 0x4000,\r
76 \r
77                 //! ColorMask bits, for enabling the color planes\r
78                 EMF_COLOR_MASK = 0x8000,\r
79 \r
80                 //! ColorMaterial enum for vertex color interpretation\r
81                 EMF_COLOR_MATERIAL = 0x10000,\r
82 \r
83                 //! Flag for enabling/disabling mipmap usage\r
84                 EMF_USE_MIP_MAPS = 0x20000,\r
85 \r
86                 //! Flag for blend operation\r
87                 EMF_BLEND_OPERATION = 0x40000,\r
88 \r
89                 //! Flag for polygon offset\r
90                 EMF_POLYGON_OFFSET = 0x80000,\r
91 \r
92         //! Flag for blend factor\r
93                 EMF_BLEND_FACTOR = 0x160000\r
94         };\r
95 \r
96 } // end namespace video\r
97 } // end namespace irr\r
98 \r
99 \r
100 #endif // __E_MATERIAL_FLAGS_H_INCLUDED__\r
101 \r