|
lod.h00001 /* 00002 Copyright (C) 2001 by Jorrit Tyberghein and Richard D. Shank 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __IENGINE_LOD_H__ 00020 #define __IENGINE_LOD_H__ 00021 00022 #include "csutil/scf.h" 00023 00024 #define CS_LOD_TRIANGLE_REDUCTION 1 00025 #define CS_LOD_LIGHT_QUALITY 2 00026 #define CS_LOD_LIGHT_QUANTITY 4 00027 #define CS_LOD_FRAME_ANIMATION 8 00028 #define CS_LOD_SKELETAL_ANIMATION 16 00029 #define CS_LOD_TEXTURE_DETAIL 32 00030 #define CS_LOD_TEXTURE_SIZE 64 00031 #define CS_LOD_DISTANCE_REDUCTION 128 00032 #define CS_LOD_ALL (~0) 00033 00034 SCF_VERSION (iLODControl, 0, 0, 1); 00035 00041 struct iLODControl : public iBase 00042 { 00048 virtual uint32 GetLODFeatures () const = 0; 00049 00067 virtual void SetLODFeatures (uint32 mask, uint32 value) = 0; 00068 00076 virtual void SetLOD (float lod) = 0; 00077 00081 virtual float GetLOD () const = 0; 00082 00089 virtual int GetLODPolygonCount (float lod) const = 0; 00090 00095 virtual uint32 GetAvailableLODFeatures () const = 0; 00096 00102 virtual uint32 GetAvailableDistanceFeatures () const = 0; 00103 00109 virtual uint32 GetDistanceReduction () const = 0; 00110 00115 virtual void SetDistanceReduction (uint32 mask, uint32 value) = 0; 00116 00121 virtual void SetLODPriority (uint16 group) = 0; 00122 00126 virtual uint16 GetLODPriority () const = 0; 00127 00128 virtual void SetMinLODThreshold (float level, bool turnOff) = 0; 00129 }; 00130 00131 #endif // __IENGINE_LOD_H__ 00132 Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |