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
14typedef struct gf_draw_t gf_draw_t;
15
16/* External library */
17
18/* Engine */
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
90GF_DECLARE_TYPE(draw, {
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];
108});
109#else
110typedef void gf_draw_t;
111#endif
112
113#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:180
Required headers before anything.
Type definitions related to GUI.
Type definitions related to input interface.
Type definitions related to math.
double gf_math_vector_t[4]
Vector.
Definition math.h:25
Drawing driver.
Definition draw_driver.h:50
Platform-dependent part of drawing driver.
Drawing interface.
Definition draw.h:108
gf_font_t * font
Current font.
Definition draw.h:108
gf_math_vector_t light
Light location.
Definition draw.h:108
int y
Y coord of window.
Definition draw.h:108
gf_input_t * input
Input interface.
Definition draw.h:108
char title[128]
Window title.
Definition draw.h:108
gf_math_vector_t lookat
Where to look at.
Definition draw.h:108
int draw_3d
1 if engine should start rendering 3D stuffs, otherwise 0
Definition draw.h:108
gf_draw_driver_t * driver
Drawing driver.
Definition draw.h:108
gf_gui_t * gui
GUI.
Definition draw.h:108
int running
1 if running, otherwise 0
Definition draw.h:108
gf_engine_t * engine
Engine instance.
Definition draw.h:108
int close
1 if it was requested to be closed, otherwise 0
Definition draw.h:108
gf_draw_platform_t * platform
Platform-dependent part of drawing driver.
Definition draw.h:108
gf_math_vector_t camera
Camera location.
Definition draw.h:108
int x
X coord of window.
Definition draw.h:108
int width
Width of window.
Definition draw.h:108
int height
Height of window.
Definition draw.h:108
Engine instance.
Definition core.h:46
Font.
Definition font.h:95
GUI.
Definition gui.h:144
Input interface.
Definition input.h:64
Type definitions related to texture.