Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

graphics
Class CTextureEntry

   in TextureEntry.h
   in TextureEntry.cpp

class CTextureEntry


Inner Classes, Typedefs, and Enums
typedef CTextureEntry::GroupVector
          
 
Field Summary
private u32 m_BaseColor
          
private bool m_BaseColorValid
          
private void* m_Bitmap
          
private CTextureEntry::GroupVector m_Groups
          
private Handle m_Handle
          
private static std::map< Handle, CTextureEntry* > m_LoadedTextures
          CTextureEntry constructor
private CTerrainPropertiesPtr m_pProperties
          
private CStr m_Tag
          
private CStr m_TexturePath
          
 
Constructor Summary
CTextureEntry( CTerrainPropertiesPtr props, const CStr& path )
          CTextureEntry destructor
~CTextureEntry()
          LoadTexture: actually load the texture resource from file
 
Method Summary
private void BuildBaseColor()
          
 u32 GetBaseColor()
          
 void* GetBitmap() const
          
 static CTextureEntry* GetByHandle( Handle handle )
          
 const CTextureEntry::GroupVector& GetGroups() const
          
 Handle GetHandle()
          
 CTerrainPropertiesPtr GetProperties() const
          
 CStr GetTag() const
          
 CStr GetTexturePath() const
          
 int GetType() const
          
 bool IsLoaded()
          
private void LoadTexture()
          BuildBaseColor: calculate the root colour of the texture, used for coloring minimap, and store in m_BaseColor member
 void SetBitmap( void* bmp )
          
 

Field Detail

m_BaseColor

private u32 m_BaseColor;

m_BaseColorValid

private bool m_BaseColorValid;

m_Bitmap

private void* m_Bitmap;

m_Groups

private CTextureEntry::GroupVector m_Groups;

m_Handle

private Handle m_Handle;

m_LoadedTextures

private static std::map< Handle, CTextureEntry* > m_LoadedTextures;
CTextureEntry constructor

m_pProperties

private CTerrainPropertiesPtr m_pProperties;

m_Tag

private CStr m_Tag;

m_TexturePath

private CStr m_TexturePath;


Constructor Detail

CTextureEntry

public CTextureEntry( CTerrainPropertiesPtr props, const CStr& path );
CTextureEntry destructor

~CTextureEntry

public ~CTextureEntry();
LoadTexture: actually load the texture resource from file


Method Detail

BuildBaseColor

private void BuildBaseColor();

GetBaseColor

public u32 GetBaseColor();

GetBitmap

public void* GetBitmap() const;

GetByHandle

public static CTextureEntry* GetByHandle( Handle handle );

GetGroups

public const CTextureEntry::GroupVector& GetGroups() const;

GetHandle

public Handle GetHandle();

GetProperties

public CTerrainPropertiesPtr GetProperties() const;

GetTag

public CStr GetTag() const;

GetTexturePath

public CStr GetTexturePath() const;

GetType

public int GetType() const;

IsLoaded

public bool IsLoaded();

LoadTexture

private void LoadTexture();
BuildBaseColor: calculate the root colour of the texture, used for coloring minimap, and store in m_BaseColor member

SetBitmap

public void SetBitmap( void* bmp );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD