Files
cell/source/sprite.h
John Alanbrook c566f90d16
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
remove script
2025-03-19 17:52:44 -05:00

23 lines
330 B
C

#ifndef SPRITE_H
#define SPRITE_H
#include "HandmadeMath.h"
#include "render.h"
#include "quickjs.h"
struct sprite{
rect affine;
JSValue image;
SDL_GPUTexture *tex;
rect uv;
int layer;
HMM_Vec4 color;
};
typedef struct sprite sprite;
sprite *make_sprite();
void sprite_free(JSRuntime *rt, sprite *sprite);
#endif