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#include <gf_type/input.h>
20
21/* Standard */
22
30GF_EXPORT gf_draw_t* gf_draw_create(gf_engine_t* engine, const char* title);
31
38
46
53
61
66GF_EXPORT void gf_draw_begin(void);
67
72GF_EXPORT void gf_draw_end(void);
73
80
81#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_set_input(gf_draw_t *draw, gf_input_t *input)
Set input interface.
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:190
Required headers before anything.
Type definitions related to input interface.
Drawing interface.
Definition draw.h:108
Engine instance.
Definition core.h:46
Input interface.
Definition input.h:64