GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
draw.h
Go to the documentation of this file.
1
7#ifndef __GF_TYPE_DRAW_H__
8#define __GF_TYPE_DRAW_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13#ifdef GF_EXPOSE_DRAW
14/* External library */
15
16/* Engine */
18#include <gf_type/draw_driver.h>
19#include <gf_type/texture.h>
20#include <gf_type/core.h>
21#include <gf_type/math.h>
22#include <gf_type/gui.h>
23#include <gf_type/font.h>
24
25/* Standard */
26
84GF_DECLARE_TYPE(draw, {
85 gf_engine_t* engine;
86 gf_draw_platform_t* platform;
87 gf_draw_driver_t* driver;
88 gf_gui_t* gui;
89 int close;
90 int x;
91 int y;
92 int width;
93 int height;
94 int running;
95 int draw_3d;
96 char title[128];
97 gf_font_t* font;
98 gf_math_vector_t light;
99 gf_math_vector_t lookat;
100 gf_math_vector_t camera;
101});
102#else
103typedef void gf_draw_t;
104#endif
105
106#endif
Type definitions related to core.
Type definitions related to drawing driver.
Type definitions related to platform-dependent part of drawing driver.
Type definitions related to font.
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition gf_macro.h:172
Required headers before anything.
Type definitions related to GUI.
Type definitions related to math.
double gf_math_vector_t[4]
Vector.
Definition math.h:25
Drawing driver.
Definition draw_driver.h:48
Platform-dependent part of drawing driver.
Drawing interface.
Definition draw.h:101
Engine instance.
Definition core.h:44
Font.
Definition font.h:91
GUI.
Definition gui.h:122
Type definitions related to texture.