GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
texture.h
Go to the documentation of this file.
1
7
#ifndef __GF_TYPE_TEXTURE_H__
8
#define __GF_TYPE_TEXTURE_H__
9
10
#include <
gf_pre.h
>
11
#include <
gf_macro.h
>
12
13
#ifdef GF_EXPOSE_TEXTURE
14
typedef
struct
gf_texture_t
gf_texture_t
;
15
16
/* External library */
17
18
/* Engine */
19
#include <
gf_type/draw_driver.h
>
20
21
/* Standard */
22
43
GF_DECLARE_TYPE
(texture, {
44
gf_draw_driver_texture_t
*
draw_driver_texture
;
45
int
width
;
46
int
height
;
47
int
internal_width
;
48
int
internal_height
;
49
});
50
#else
51
typedef
void
gf_texture_t
;
52
#endif
53
54
#endif
draw_driver.h
Type definitions related to drawing driver.
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.
gf_draw_driver_texture_t
Driver-dependent texture.
Definition
draw_driver.h:58
gf_texture_t
Texture.
Definition
texture.h:49
gf_texture_t::internal_width
int internal_width
Internal width of texture.
Definition
texture.h:49
gf_texture_t::internal_height
int internal_height
Internal height of texture.
Definition
texture.h:49
gf_texture_t::draw_driver_texture
gf_draw_driver_texture_t * draw_driver_texture
Driver-dependent texture.
Definition
texture.h:49
gf_texture_t::height
int height
Height of texture.
Definition
texture.h:49
gf_texture_t::width
int width
Width of texture.
Definition
texture.h:49
include
gf_type
texture.h
Generated by
1.9.8