7#ifndef __GF_GRAPHIC_H__
8#define __GF_GRAPHIC_H__
26#define GF_GRAPHIC_2D 2
32#define GF_GRAPHIC_3D 3
39#define GF_SET_COLOR(color, red, green, blue, alpha) \
Type definitions related to drawing interface.
void gf_graphic_draw_texture_2d(gf_draw_t *draw, double x, double y, double w, double h, gf_texture_t *texture, gf_graphic_color_t color)
Draw rectangle with texture.
void gf_graphic_draw_texture_polygon(gf_draw_t *draw, gf_texture_t *texture, gf_graphic_color_t color, int dim, int npair,...)
Draw polygon with texture.
void gf_graphic_fill_rect(gf_draw_t *draw, double x, double y, double w, double h, gf_graphic_color_t color)
Draw filled rectangle.
void gf_graphic_clear(gf_draw_t *draw)
Clear the screen.
void gf_graphic_fill_polygon(gf_draw_t *draw, gf_graphic_color_t color, int dim, int npair,...)
Draw polygon.
void gf_graphic_perspective(gf_draw_t *draw, double fovy, double znear, double zfar)
Set perspective.
void gf_graphic_text(gf_draw_t *draw, double x, double y, double size, const char *text, gf_graphic_color_t color)
Draw text.
double gf_graphic_text_width(gf_draw_t *draw, double size, const char *text)
Calculate text width.
void gf_graphic_end_2d(gf_draw_t *draw)
End 2D mode.
void gf_graphic_begin_2d(gf_draw_t *draw)
Start 2D mode.
void gf_graphic_set_camera(gf_draw_t *draw)
Set camera.
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Required headers before anything.
Type definitions related to graphic interface.
Type definitions related to texture.