GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_draw.h
Go to the documentation of this file.
1
8#ifndef __GF_DRAW_H__
9#define __GF_DRAW_H__
10
11#include <gf_pre.h>
12#include <gf_macro.h>
13
14/* Type */
15#include <gf_type/draw.h>
16
17/* Engine */
18#include <gf_type/core.h>
19
20/* Standard */
21
29GF_EXPORT gf_draw_t* gf_draw_create(gf_engine_t* engine, const char* title);
30
37
44
52
57GF_EXPORT void gf_draw_begin(void);
58
63GF_EXPORT void gf_draw_end(void);
64
71
72#endif
Type definitions related to core.
Type definitions related to drawing interface.
void gf_draw_end(void)
Cleanup drawing stuffs.
void gf_draw_begin(void)
Initialize drawing stuffs.
int gf_draw_step(gf_draw_t *draw)
Do drawing single step.
void gf_draw_frame(gf_draw_t *draw)
Draw frame (common part)
void gf_draw_destroy(gf_draw_t *draw)
Destroy drawing interface.
void gf_draw_reshape(gf_draw_t *draw)
Do stuffs required on resizing window.
gf_draw_t * gf_draw_create(gf_engine_t *engine, const char *title)
Create drawing interface.
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:182
Required headers before anything.
Drawing interface.
Definition draw.h:101
Engine instance.
Definition core.h:44