prosperon/source/engine/sprite.c

19 lines
370 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#include "sprite.h"
#include "gameobject.h"
2022-11-19 17:13:57 -06:00
#include "log.h"
2023-05-12 13:22:05 -05:00
#include "render.h"
#include "stb_ds.h"
#include "texture.h"
2023-11-09 16:44:33 -06:00
#include "HandmadeMath.h"
2021-11-30 21:29:18 -06:00
sprite *sprite_make()
{
sprite *sp = calloc(sizeof(*sp), 1);
sp->color = color_white;
sp->emissive = color_clear;
2024-05-02 13:52:28 -05:00
sp->rect = (HMM_Vec4){0,0,1,1};
return sp;
}
2024-05-02 13:52:28 -05:00
void sprite_free(sprite *sprite) { free(sprite); }