Files
cell/source/sprite.h
John Alanbrook 95d3296dd9
Some checks failed
Build and Deploy / build-linux (push) Successful in 1m15s
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-windows (CLANG64) (push) Has been cancelled
wota now encodes at the C level; update dmon for macos 13; clean up many warnings
2025-03-20 17:25:48 -05:00

23 lines
334 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);
void sprite_free(JSRuntime *rt, sprite *sprite);
#endif