prosperon/source/engine/sprite.h

21 lines
337 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef SPRITE_H
#define SPRITE_H
2023-01-02 07:55:26 -06:00
#include "texture.h"
2023-05-24 20:45:50 -05:00
#include "HandmadeMath.h"
#include "render.h"
2023-11-30 10:47:59 -06:00
#include "transform.h"
2023-12-11 08:36:45 -06:00
#include "gameobject.h"
2021-11-30 21:29:18 -06:00
2024-05-02 13:52:28 -05:00
typedef struct sprite {
struct rgba color;
struct rgba emissive;
2024-05-02 13:52:28 -05:00
HMM_Vec4 rect;
2024-04-23 15:58:08 -05:00
HMM_Vec2 spriteoffset;
2024-05-02 13:52:28 -05:00
} sprite;
2024-04-21 10:05:18 -05:00
sprite *sprite_make();
void sprite_free(sprite *sprite);
2022-12-24 13:18:06 -06:00
2021-11-30 21:29:18 -06:00
#endif