diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-07-03 00:49:03 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:20:20 +0200 |
| commit | 6b9f686913efc3725b2690033cd4f398e07076ba (patch) | |
| tree | e9aa91a6b9f617d78123ebe7ad272fc42a60d306 /src/gfx/inc | |
| parent | c9e6ae44a9aeb89b3f48f3443d6baa80103f7445 (diff) | |
| download | jancity-6b9f686913efc3725b2690033cd4f398e07076ba.tar.gz | |
Add project source code
Diffstat (limited to 'src/gfx/inc')
| -rw-r--r-- | src/gfx/inc/gfx.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gfx/inc/gfx.h b/src/gfx/inc/gfx.h new file mode 100644 index 0000000..0c30911 --- /dev/null +++ b/src/gfx/inc/gfx.h @@ -0,0 +1,37 @@ +#ifndef GFX_H +#define GFX_H + +#include <gfx/port.h> +#include <stdbool.h> +#include <stdio.h> + +#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 */ |
