My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CharTextureComponent Struct Reference

Public Member Functions

const bool operator< (const CharTextureComponent &c) const
 
DWORD GetColor () const
 get color. More...
 
void SetColor (DWORD color)
 set color
 
bool GetPixels (byte *pBuffer, int *nWidth, int *nHeight)
 copy the texture to memory in RAW RGBA(32bits) format. More...
 
bool CheckLoad ()
 whether the texture component is loaded
 

Public Attributes

std::string name
 
ref_ptr< TextureEntitym_texture
 
int region
 
int layer
 
DWORD m_dwColor
 

Member Function Documentation

§ GetColor()

DWORD CharTextureComponent::GetColor ( ) const

get color.

§ GetPixels()

bool CharTextureComponent::GetPixels ( byte *  pBuffer,
int *  nWidth,
int *  nHeight 
)

copy the texture to memory in RAW RGBA(32bits) format.

Parameters
pBufferbyte[width*height*4]
nWidth[out] width of the texture in pixels
nHeight[out] height of the texture in pixels
Returns
: return true if succeed, false otherwise

The documentation for this struct was generated from the following files: