Drop Table Engine 1.0
Loading...
Searching...
No Matches
ComponentTexture Class Reference
Inheritance diagram for ComponentTexture:

Public Member Functions

 this (size_t owner, string camera, Sprite *tex_reference)
 Hold a copy of the texture that is referenced.
 
void Input ()
 
void Update ()
 
void Render ()
 
void SetAnimation (string name)
 

Static Public Member Functions

static ComponentTexture LoadFromJSON (size_t id, JSONValue json)
 

Public Attributes

size_t mOwner
 
string mCamera
 
SDL_Texture * mTextureRef
 
ComponentPosition mPosition
 
Frame *[] mFrames
 
long *[][string] mFrameNumbers
 
string name
 
string mCurrentAnimationName
 
long mCurrentFramePlaying
 
long mLastFrameInSequence
 
int mCurrentFrameLife
 

Constructor & Destructor Documentation

◆ this()

ComponentTexture::this ( size_t owner,
string camera,
Sprite * tex_reference )
inline

Hold a copy of the texture that is referenced.

Member Function Documentation

◆ Input()

void ComponentTexture::Input ( )
inline

Play an animation based on the name of the animation sequence specified in the data file.

◆ LoadFromJSON()

static ComponentTexture ComponentTexture::LoadFromJSON ( size_t id,
JSONValue json )
inlinestatic

◆ Render()

void ComponentTexture::Render ( )
inline

◆ SetAnimation()

void ComponentTexture::SetAnimation ( string name)
inline

◆ Update()

void ComponentTexture::Update ( )
inline

Member Data Documentation

◆ mCamera

string ComponentTexture::mCamera

◆ mCurrentAnimationName

string ComponentTexture::mCurrentAnimationName

◆ mCurrentFrameLife

int ComponentTexture::mCurrentFrameLife

◆ mCurrentFramePlaying

long ComponentTexture::mCurrentFramePlaying

◆ mFrameNumbers

long* [][string] ComponentTexture::mFrameNumbers

◆ mFrames

Frame* [] ComponentTexture::mFrames

◆ mLastFrameInSequence

long ComponentTexture::mLastFrameInSequence

◆ mOwner

size_t ComponentTexture::mOwner

◆ mPosition

ComponentPosition ComponentTexture::mPosition

◆ mTextureRef

SDL_Texture* ComponentTexture::mTextureRef

◆ name

string ComponentTexture::name

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