![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXSpritePage.h>
Public Member Functions | |
cXSpriteElem (const cXSpriteElem &Sprite) | |
~cXSpriteElem (void) | |
bool | SetCopyElem (const cXSpriteElem &src) |
bool | isRenderable () const noexcept |
PIXELS_t | get_ElemWidth (void) const noexcept |
PIXELS_t | get_ElemHeight (void) const noexcept |
D3DCOLOR | get_SpriteColor (void) const noexcept |
Color. More... | |
D3DCOLOR | put_SpriteColor (D3DCOLOR color) |
void | put_ObjectColor (D3DCOLOR Hue, COLOR_ELEM_t HuePercent) |
COLOR_ELEM_t | get_Alpha () const noexcept |
void | put_Alpha (COLOR_ELEM_t bVal) noexcept |
const cVector2f & | get_Scaling (void) const noexcept |
Scaling. More... | |
void | put_Scaling (const cVector2f &vScaling) noexcept |
void | SetScalingDest (int cx, int cy) |
cVector2f | get_RotationCenter (void) const noexcept |
Rotation. More... | |
void | put_RotationCenter (cVector2f vRotationCenter) noexcept |
RADIANf_t | get_Rotation (void) const noexcept |
void | put_Rotation (RADIANf_t Rotation) noexcept |
Public Attributes | |
cXSpritePagePtr | m_pSpritePage |
source texture loaded from a file or memory + map. More... | |
cSpriteMap::ELEM_t | m_nElem |
element within the m_pSpritePage. (for sprite type operations) More... | |
Protected Member Functions | |
HRESULT | UpdateTexureSize () |
Friends | |
class | cDXSpriteDC |
Define a single element on the cXSpritePage. a part of a texture and params to be drawn to ID3DXSprite. for 2d sprite type operations.
Gray3D::cXSpriteElem::cXSpriteElem | ( | const cXSpriteElem & | Sprite | ) |
Gray3D::cXSpriteElem::~cXSpriteElem | ( | void | ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
width of the sprite
|
inlinenoexcept |
|
inlinenoexcept |
Rotation.
|
inlinenoexcept |
Scaling.
Get scale multiplier.
|
inlinenoexcept |
Color.
|
inlinenoexcept |
|
inlinenoexcept |
set the alpha but leave the color. COLOR_ALPHA_OPAQUE
void Gray3D::cXSpriteElem::put_ObjectColor | ( | D3DCOLOR | Hue, |
COLOR_ELEM_t | HuePercent | ||
) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Set scale multiplier.
bool Gray3D::cXSpriteElem::SetCopyElem | ( | const cXSpriteElem & | src | ) |
void Gray3D::cXSpriteElem::SetScalingDest | ( | int | cx, |
int | cy | ||
) |
|
protected |
|
friend |
cSpriteMap::ELEM_t Gray3D::cXSpriteElem::m_nElem |
element within the m_pSpritePage. (for sprite type operations)
cXSpritePagePtr Gray3D::cXSpriteElem::m_pSpritePage |
source texture loaded from a file or memory + map.