00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://ogre.sourceforge.net/ 00006 00007 Copyright © 2000-2002 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This program is free software; you can redistribute it and/or modify it under 00011 the terms of the GNU Lesser General Public License as published by the Free Software 00012 Foundation; either version 2 of the License, or (at your option) any later 00013 version. 00014 00015 This program is distributed in the hope that it will be useful, but WITHOUT 00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License along with 00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00022 http://www.gnu.org/copyleft/lesser.txt. 00023 ----------------------------------------------------------------------------- 00024 */ 00025 #ifndef __Common_H__ 00026 #define __Common_H__ 00027 // Common stuff 00028 00029 namespace Ogre { 00030 00031 enum ResourceType 00032 { 00034 RESTYPE_ALL, 00036 RESTYPE_TEXTURES, 00038 RESTYPE_MODELS, 00039 }; 00040 00043 enum CompareFunction 00044 { 00045 CMPF_ALWAYS_FAIL, 00046 CMPF_ALWAYS_PASS, 00047 CMPF_LESS, 00048 CMPF_LESS_EQUAL, 00049 CMPF_EQUAL, 00050 CMPF_NOT_EQUAL, 00051 CMPF_GREATER_EQUAL, 00052 CMPF_GREATER 00053 }; 00054 00057 enum TextureFilterOptions 00058 { 00059 TFO_NONE, 00060 TFO_BILINEAR, 00061 TFO_TRILINEAR 00062 }; 00063 00065 enum ShadeOptions 00066 { 00067 SO_FLAT, 00068 SO_GOURAUD, 00069 SO_PHONG 00070 }; 00071 00073 enum FogMode 00074 { 00076 FOG_NONE, 00078 FOG_EXP, 00080 FOG_EXP2, 00082 FOG_LINEAR 00083 }; 00084 00087 enum CullingMode 00088 { 00090 CULL_NONE = 1, 00092 CULL_CLOCKWISE = 2, 00094 CULL_ANTICLOCKWISE = 3 00095 }; 00096 00102 enum ManualCullingMode 00103 { 00105 MANUAL_CULL_NONE = 1, 00107 MANUAL_CULL_BACK = 2, 00109 MANUAL_CULL_FRONT = 3 00110 }; 00111 00113 enum WaveformType 00114 { 00116 WFT_SINE, 00118 WFT_TRIANGLE, 00120 WFT_SQUARE, 00122 WFT_SAWTOOTH, 00124 WFT_INVERSE_SAWTOOTH 00125 }; 00126 00128 enum SceneDetailLevel 00129 { 00131 SDL_POINTS = 1, 00133 SDL_WIREFRAME = 2, 00135 SDL_SOLID = 3 00136 }; 00137 00139 enum PixelFormat 00140 { 00142 PF_UNKNOWN, 00144 PF_L8, 00146 PF_A8, 00148 PF_A4L4, 00150 PF_L4A4, 00152 PF_R5G6B5, 00154 PF_B5G6R5, 00156 PF_A4R4G4B4, 00158 PF_B4G4R4A4, 00160 PF_R8G8B8, 00162 PF_B8R8G8, 00164 PF_A8R8G8B8, 00166 PF_B8G8R8A8, 00168 PF_A2R10G10B10, 00170 PF_B10G10R10A2 00171 }; 00172 00173 #ifdef OGRE_NONCLIENT_BUILD 00174 PixelFormat ilFormat2OgreFormat( int ImageFormat, int BytesPerPixel ); 00175 std::pair< int, int > OgreFormat2ilFormat( PixelFormat format ); 00176 #endif 00177 } 00178 00179 #endif
Copyright © 2002 by The OGRE Team