My Project
|
a CartoonFace slot component data in compact format. More...
#include <CustomCharFace.h>
Public Member Functions | |
FaceComponent () | |
initialize to full color, 0 type, 0 scale, 0 rotation, 0 position. More... | |
void | reset () |
initialize to full color, 0 type, 0 scale, 0 rotation, 0 position. More... | |
int | GetStyle () const |
Get style. | |
void | SetStyle (int style) |
set style | |
DWORD | GetColor () const |
get color | |
void | SetColor (DWORD color) |
set color | |
float | GetScaling () const |
scaling [-1,1] | |
void | SetScaling (float scaling) |
scaling [-1,1] | |
float | GetRotation () const |
Rotation (-3.14,3.14]. | |
void | SetRotation (float fRotation) |
Rotation (-3.14,3.14]. | |
void | SetPosition (int *x, int *y) |
position in pixel More... | |
void | GetPosition (int *x, int *y) const |
position in pixel More... | |
a CartoonFace slot component data in compact format.
it contains 16bits style id, 16bits color, 8bits scaling, 8bits rotation, 8bits for x translation, 8bits for y translation.
FaceComponent::FaceComponent | ( | ) |
initialize to full color, 0 type, 0 scale, 0 rotation, 0 position.
void FaceComponent::GetPosition | ( | int * | x, |
int * | y | ||
) | const |
position in pixel
x | (-128,128] |
y | (-128,128] |
void FaceComponent::reset | ( | ) |
initialize to full color, 0 type, 0 scale, 0 rotation, 0 position.
void FaceComponent::SetPosition | ( | int * | x, |
int * | y | ||
) |
position in pixel
x | (-128,128] |
y | (-128,128] |