Yume Project 3.0
Touhou-inspired Danmaku game made in C only
Chargement...
Recherche...
Aucune correspondance
Référence de la structure Sprite

Composante Sprite dans l'ECS Cette composante sert à associer une texture à une Entité. Contient les informations d'affichage de la texture ainsi que de son animation. Plus de détails...

#include <sprite.h>

Attributs publics

int textureID
Rectangle srcRect
Vector2 center
Vector2 scale
Color color
int renderPriority
bool display
bool isAnimated
int animFrameCount
int animSpeed
int animTimer
int currentFrame
int frameWidth
float rotation
Vector2 animStart

Description détaillée

Composante Sprite dans l'ECS Cette composante sert à associer une texture à une Entité. Contient les informations d'affichage de la texture ainsi que de son animation.

Documentation des données membres

◆ animFrameCount

int Sprite::animFrameCount

◆ animSpeed

int Sprite::animSpeed

◆ animStart

Vector2 Sprite::animStart

◆ animTimer

int Sprite::animTimer

◆ center

Vector2 Sprite::center

◆ color

Color Sprite::color

◆ currentFrame

int Sprite::currentFrame

◆ display

bool Sprite::display

◆ frameWidth

int Sprite::frameWidth

◆ isAnimated

bool Sprite::isAnimated

◆ renderPriority

int Sprite::renderPriority

◆ rotation

float Sprite::rotation

◆ scale

Vector2 Sprite::scale

◆ srcRect

Rectangle Sprite::srcRect

◆ textureID

int Sprite::textureID

La documentation de cette structure a été générée à partir du fichier suivant :