|
My Project
|
a texture from a rectangular region of bitmap, and one additional texture color More...
#include <GUIResource.h>
Public Member Functions | |
| string | ToScript (int index, int option=0) |
| void | SetElement (TextureEntity *pTexture, const RECT *prcTexture=NULL, Color defaultTextureColor=0xffffffff) |
| TextureEntity * | GetTexture () |
| void | Cleanup () |
| void | GetRect (RECT *pOut) |
| get bounding rect of this element on the composite texture More... | |
Public Attributes | |
| RECT | rcTexture |
| LinearColor | TextureColor |
| string | name |
Protected Attributes | |
| asset_ptr< TextureEntity > | pTexture |
a texture from a rectangular region of bitmap, and one additional texture color
| void GUITextureElement::GetRect | ( | RECT * | pOut | ) |
get bounding rect of this element on the composite texture
2009.8.16, LiXizhi: for unavailable texture, we used texture width (-1, -1) and offset by this negative width whenever a smaller inner region is specified(making the rcTexture.right and bottom more negative). so in case, the texture width is suddenly available, we can offset (image_width+1, image_height+1) to obtain the inner region properly
1.8.12