#ifndef GFX_H #define GFX_H #include #include #include #ifdef __cplusplus extern "C" { #endif int gfx_init(void); void gfx_draw(void); void gfx_sync(void); void sprite_sort(struct sprite *s); int sprite_clone(const struct sprite *src, struct sprite *dst); void quad_sort(struct quad *q); void rect_sort(struct rect *r); void stp_4line_sort(struct stp_4line *l); int sprite_from_fp(struct sprite *s, FILE *f); struct sprite *sprite_get(void); struct quad *quad_get(void); struct rect *rect_get(bool semitrans); struct stp_4line *stp_4line_get(void); int quad_from_sprite(const struct sprite *s, struct quad *q); bool gfx_inside_drawenv(short x, short y, short w, short h); void gfx_deinit(void); void sprite_free(struct sprite *src); extern int screen_w, screen_h; #ifdef __cplusplus } #endif #endif /* GFX_H */