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
typedef
struct
gf_draw_t
gf_draw_t
;
15
16
/* External library */
17
18
/* Engine */
19
#include <
gf_type/draw_platform.h
>
20
#include <
gf_type/draw_driver.h
>
21
#include <
gf_type/texture.h
>
22
#include <
gf_type/core.h
>
23
#include <
gf_type/math.h
>
24
#include <
gf_type/gui.h
>
25
#include <
gf_type/font.h
>
26
#include <
gf_type/input.h
>
27
28
/* Standard */
29
90
GF_DECLARE_TYPE
(draw, {
91
gf_engine_t
*
engine
;
92
gf_input_t
*
input
;
93
gf_draw_platform_t
*
platform
;
94
gf_draw_driver_t
*
driver
;
95
gf_gui_t
*
gui
;
96
int
close
;
97
int
x
;
98
int
y
;
99
int
width
;
100
int
height
;
101
int
running
;
102
int
draw_3d
;
103
char
title
[128];
104
gf_font_t
*
font
;
105
gf_math_vector_t
light
;
106
gf_math_vector_t
lookat
;
107
gf_math_vector_t
camera
;
108
});
109
#else
110
typedef
void
gf_draw_t
;
111
#endif
112
113
#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:180
gf_pre.h
Required headers before anything.
gui.h
Type definitions related to GUI.
input.h
Type definitions related to input interface.
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:50
gf_draw_platform_t
Platform-dependent part of drawing driver.
Definition
draw_platform.h:67
gf_draw_t
Drawing interface.
Definition
draw.h:108
gf_draw_t::font
gf_font_t * font
Current font.
Definition
draw.h:108
gf_draw_t::light
gf_math_vector_t light
Light location.
Definition
draw.h:108
gf_draw_t::y
int y
Y coord of window.
Definition
draw.h:108
gf_draw_t::input
gf_input_t * input
Input interface.
Definition
draw.h:108
gf_draw_t::title
char title[128]
Window title.
Definition
draw.h:108
gf_draw_t::lookat
gf_math_vector_t lookat
Where to look at.
Definition
draw.h:108
gf_draw_t::draw_3d
int draw_3d
1 if engine should start rendering 3D stuffs, otherwise 0
Definition
draw.h:108
gf_draw_t::driver
gf_draw_driver_t * driver
Drawing driver.
Definition
draw.h:108
gf_draw_t::gui
gf_gui_t * gui
GUI.
Definition
draw.h:108
gf_draw_t::running
int running
1 if running, otherwise 0
Definition
draw.h:108
gf_draw_t::engine
gf_engine_t * engine
Engine instance.
Definition
draw.h:108
gf_draw_t::close
int close
1 if it was requested to be closed, otherwise 0
Definition
draw.h:108
gf_draw_t::platform
gf_draw_platform_t * platform
Platform-dependent part of drawing driver.
Definition
draw.h:108
gf_draw_t::camera
gf_math_vector_t camera
Camera location.
Definition
draw.h:108
gf_draw_t::x
int x
X coord of window.
Definition
draw.h:108
gf_draw_t::width
int width
Width of window.
Definition
draw.h:108
gf_draw_t::height
int height
Height of window.
Definition
draw.h:108
gf_engine_t
Engine instance.
Definition
core.h:46
gf_font_t
Font.
Definition
font.h:95
gf_gui_t
GUI.
Definition
gui.h:144
gf_input_t
Input interface.
Definition
input.h:64
texture.h
Type definitions related to texture.
include
gf_type
draw.h
Generated by
1.9.8