2 #include "TerrainCommon.h" 75 std::vector < Texture * >m_Textures;
Which DXT Compression to Use? Obviously, there are some trade-offs between the different formats whic...
Definition: TextureEntity.h:29
int UnbindAllTextures()
unbind and delete all device texture objects.
Definition: TextureSet.cpp:97
Definition: SceneObject.h:15
void RemoveTexture(int nIndex, Terrain *pTerrain, bool bNormalizeOthers=true)
remove the given texture
Definition: TextureSet.cpp:213
different physics engine has different winding order.
Definition: EventBinding.h:32
TextureSet()
Constructs a new TextureSet.
Definition: TextureSet.cpp:21
A TextureSet is a pool of Texture objects that are used by a Terrain to do detail texture rendering...
Definition: TextureSet.h:29
int AddTexture(Texture *pTexture)
Adds a Texture to the TextureSet.
Definition: TextureSet.cpp:35
int GetNumTextures()
Indicates how many Texture objects are in the TextureSet.
Definition: TextureSet.cpp:92
int FindTexture(ParaEngine::TextureEntity *pTexture)
find the index of the given texture entity in the set, if not found returned -1
Definition: TextureSet.cpp:42
void GarbageCollect(Terrain *pTerrain)
remove unused textures
Definition: TextureSet.cpp:154
bool ReplaceTexture(int nIndex, ParaEngine::TextureEntity *TextureAsset)
replace the texture at the given index.
Definition: TextureSet.cpp:60
it presents a real or virtual file in ParaEngine.
Definition: ParaFile.h:31
Texture * GetTexture(int index)
Gets a Texture by its shared index.
Definition: TextureSet.cpp:55
This class represents a single, contiguous chunk of terrain and is the primary public interface to De...
Definition: Terrain.h:386