GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_graphic.c
1#define GF_EXPOSE_DRAW
2#define GF_EXPOSE_TEXTURE
3
4#include <gf_pre.h>
5
6/* External library */
7#include <gf_directx.h>
8
9/* Interface */
10#include <gf_graphic.h>
11
12/* Engine */
13#include <gf_draw.h>
14#include <gf_texture.h>
15#include <gf_draw_driver.h>
16#include <gf_math.h>
17
18/* Standard */
19#include <stdarg.h>
20#include <stdio.h>
21
22void gf_graphic_begin_2d(gf_draw_t* draw) { /* TODO: Implement this */ }
23
24void gf_graphic_end_2d(gf_draw_t* draw) { /* TODO: Implement this */ }
25
26void gf_graphic_clear(gf_draw_t* draw) { /* TODO: Implement this */ }
27
28void gf_graphic_draw_texture_polygon(gf_draw_t* draw, gf_texture_t* texture, gf_graphic_color_t color, int dim, int npair, ...) { /* TODO: Implement this */ }
29
30void gf_graphic_fill_polygon(gf_draw_t* draw, gf_graphic_color_t color, int dim, int npair, ...) { /* TODO: Implement this */ }
31
32void gf_graphic_perspective(gf_draw_t* draw, double fovy, double znear, double zfar) { /* TODO: Implement this */ }
33
34GF_EXPORT void gf_graphic_set_camera(gf_draw_t* draw) { /* TODO: Implement this */ }
DirectX headers.
Drawing interface.
Drawing driver.
Graphic interface.
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.
Definition gf_graphic.c:28
void gf_graphic_clear(gf_draw_t *draw)
Clear the screen.
Definition gf_graphic.c:26
void gf_graphic_fill_polygon(gf_draw_t *draw, gf_graphic_color_t color, int dim, int npair,...)
Draw polygon.
Definition gf_graphic.c:30
void gf_graphic_perspective(gf_draw_t *draw, double fovy, double znear, double zfar)
Set perspective.
Definition gf_graphic.c:32
void gf_graphic_end_2d(gf_draw_t *draw)
End 2D mode.
Definition gf_graphic.c:24
void gf_graphic_begin_2d(gf_draw_t *draw)
Start 2D mode.
Definition gf_graphic.c:22
void gf_graphic_set_camera(gf_draw_t *draw)
Set camera.
Definition gf_graphic.c:34
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:190
Required headers before anything.
Texture.
Drawing interface.
Definition draw.h:108
Texture.
Definition texture.h:49