My Project
Public Member Functions | List of all members
ParaEngine::FaceComponent Class Reference

a CartoonFace slot component data in compact format. More...

#include <CustomCharFace.h>

Inheritance diagram for ParaEngine::FaceComponent:
ParaEngine::FaceTextureComponent

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ FaceComponent()

FaceComponent::FaceComponent ( )

initialize to full color, 0 type, 0 scale, 0 rotation, 0 position.

Member Function Documentation

§ GetPosition()

void FaceComponent::GetPosition ( int *  x,
int *  y 
) const

position in pixel

Parameters
x(-128,128]
y(-128,128]

§ reset()

void FaceComponent::reset ( )

initialize to full color, 0 type, 0 scale, 0 rotation, 0 position.

§ SetPosition()

void FaceComponent::SetPosition ( int *  x,
int *  y 
)

position in pixel

Parameters
x(-128,128]
y(-128,128]

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