20 lines
463 B
C
20 lines
463 B
C
#ifndef QJS_SDL_SURFACE_H
|
|
#define QJS_SDL_SURFACE_H
|
|
|
|
#include <quickjs.h>
|
|
#include <SDL3/SDL_surface.h>
|
|
|
|
JSValue js_sdl_surface_use(JSContext *js);
|
|
|
|
// Functions generated by QJSCLASS macro
|
|
JSValue SDL_Surface2js(JSContext *js, SDL_Surface *s);
|
|
SDL_Surface *js2SDL_Surface(JSContext *js, JSValue val);
|
|
|
|
// Free function for SDL_Surface
|
|
void SDL_Surface_free(JSRuntime *rt, SDL_Surface *s);
|
|
|
|
// Class ID for SDL_Surface
|
|
extern JSClassID js_SDL_Surface_id;
|
|
|
|
#endif
|