|
| cSpriteMap () noexcept |
|
virtual | ~cSpriteMap () |
|
ELEM_t | get_ElemQty () const noexcept |
|
void | ClearMap () |
|
virtual HRESULT | put_TextureName (cStringF sFileName) |
|
const cRectI & | GetElemRectX (ELEM_t nElem) const noexcept |
|
cRectI | GetElemRect (ELEM_t nElem) const |
|
bool | SetElemRect (ELEM_t nElem, cRectI rect) |
|
cWinSize | GetElemSize (ELEM_t nElem) const noexcept |
|
PIXELS_t | GetElemWidth (ELEM_t nElem) const noexcept |
|
PIXELS_t | GetElemHeight (ELEM_t nElem) const noexcept |
|
bool | SetGrid (int nx, int ny, PIXELS_t cx, PIXELS_t cy) |
|
virtual HRESULT | LoadMapProp (cStringA sKey, const cVariant &vArgs, const char **ppEnumTags, size_t nEnumTagSize=sizeof(char *)) |
|
HRESULT | ReadMapScript (const FILECHAR_t *pszMapScript, const char **ppEnumTags=nullptr, size_t nSizeEnumElem=sizeof(char *)) |
|
HRESULT | ReadMapHTML (const FILECHAR_t *pszMapFile, const char **ppEnumTags=nullptr, size_t nSizeEnumElem=sizeof(char *)) |
|
| UNITTEST_FRIEND (cSpriteMap) |
|
A Sub divided image/surface. Define the mapping of (maybe overlapping) rectangles inside a surface for sprite elements/frames. Similar to cFont16F, and cSurfaceFrames AKA Sprite sheet. NOT used as a texture for 3d objects. http://en.wikipedia.org/wiki/Sprite_%28computer_graphics%29 Subdivide as:
- a fixed size grid of frames / elements. (fixed sized elements/frames)
- an array of rectangles in the texture. (maybe variable sized)
- Note
- We can NOT TEXTURELOAD_FILTER this texture because we are mapping to specific coordinates!!!
-
ASSUME texture is a Power of 2 texture to avoid DX stretching problems.