graphics
Class CTextureEntry
in TextureEntry.h
in TextureEntry.cpp
- class CTextureEntry
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;
CTextureEntry
public CTextureEntry( CTerrainPropertiesPtr props, const CStr& path );
- CTextureEntry destructor
~CTextureEntry
public ~CTextureEntry();
- LoadTexture: actually load the texture resource from file
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 );