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
23 lines
330 B
C
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
|