GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
graphic.h
Go to the documentation of this file.
1
7
#ifndef __GF_TYPE_GRAPHIC_H__
8
#define __GF_TYPE_GRAPHIC_H__
9
10
#include <
gf_pre.h
>
11
#include <
gf_macro.h
>
12
13
#ifdef GF_EXPOSE_GRAPHIC
14
typedef
struct
gf_graphic_color_t
gf_graphic_color_t
;
15
16
/* External library */
17
18
/* Engine */
19
20
/* Standard */
21
39
GF_DECLARE_TYPE
(graphic_color, {
40
double
r
;
41
double
g
;
42
double
b
;
43
double
a
;
44
});
45
#else
46
#error "should not happen!"
47
#endif
48
49
#endif
gf_macro.h
Macro.
GF_DECLARE_TYPE
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition
gf_macro.h:188
gf_pre.h
Required headers before anything.
gf_graphic_color_t
Color.
Definition
graphic.h:44
gf_graphic_color_t::g
double g
Green.
Definition
graphic.h:44
gf_graphic_color_t::b
double b
Blue.
Definition
graphic.h:44
gf_graphic_color_t::a
double a
Alpha.
Definition
graphic.h:44
gf_graphic_color_t::r
double r
Red.
Definition
graphic.h:44
include
gf_type
graphic.h
Generated by
1.9.8