2.15.1
Data Fields
TLN_SpriteState Struct Reference

Data Fields

int x
 
int y
 
int w
 
int h
 
uint32_t flags
 
TLN_Palette palette
 
TLN_Spriteset spriteset
 
int index
 
bool enabled
 
bool collision
 

Detailed Description

Sprite state

Field Documentation

◆ x

int TLN_SpriteState::x

Screen position x

◆ y

int TLN_SpriteState::y

Screen position y

◆ w

int TLN_SpriteState::w

Actual width in screen (after scaling)

◆ h

int TLN_SpriteState::h

Actual height in screen (after scaling)

◆ flags

uint32_t TLN_SpriteState::flags

flags

◆ palette

TLN_Palette TLN_SpriteState::palette

assigned palette

◆ spriteset

TLN_Spriteset TLN_SpriteState::spriteset

assigned spriteset

◆ index

int TLN_SpriteState::index

graphic index inside spriteset

◆ enabled

bool TLN_SpriteState::enabled

enabled or not

◆ collision

bool TLN_SpriteState::collision

per-pixel collision detection enabled or not