24 lines
405 B
C
24 lines
405 B
C
//
|
|
// Created by Vicente Ferrari Smith on 14.02.26.
|
|
//
|
|
|
|
#ifndef V_SPRITE_H
|
|
#define V_SPRITE_H
|
|
|
|
#include <glm/glm.hpp>
|
|
#include "texture_sheet.h"
|
|
|
|
struct sprite_t {
|
|
glm::vec2 origin;
|
|
glm::vec2 scale;
|
|
float rotation;
|
|
glm::vec4 colour;
|
|
float alpha;
|
|
bool window_space;
|
|
bool maintain_ar;
|
|
|
|
texture_sheet_id texture_sheet;
|
|
texture_cell_id texture_cell;
|
|
};
|
|
|
|
#endif //V_SPRITE_H
|