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 */
17
#include <
gf_type/draw_platform.h
>
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
84
GF_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
103
typedef
void
gf_draw_t
;
104
#endif
105
106
#endif
core.h
Type definitions related to core.
draw_driver.h
Type definitions related to drawing driver.
draw_platform.h
Type definitions related to platform-dependent part of drawing driver.
font.h
Type definitions related to font.
gf_macro.h
Macro.
GF_DECLARE_TYPE
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition
gf_macro.h:172
gf_pre.h
Required headers before anything.
gui.h
Type definitions related to GUI.
math.h
Type definitions related to math.
gf_math_vector_t
double gf_math_vector_t[4]
Vector.
Definition
math.h:25
gf_draw_driver_t
Drawing driver.
Definition
draw_driver.h:48
gf_draw_platform_t
Platform-dependent part of drawing driver.
Definition
draw_platform.h:65
gf_draw_t
Drawing interface.
Definition
draw.h:101
gf_engine_t
Engine instance.
Definition
core.h:44
gf_font_t
Font.
Definition
font.h:91
gf_gui_t
GUI.
Definition
gui.h:122
texture.h
Type definitions related to texture.
include
gf_type
draw.h
Generated by
1.9.8