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
14typedef 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
43GF_DECLARE_TYPE(texture, {
45 int width;
46 int height;
49});
50#else
51typedef void gf_texture_t;
52#endif
53
54#endif
Type definitions related to drawing driver.
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition gf_macro.h:172
Required headers before anything.
Driver-dependent texture.
Definition draw_driver.h:58
Texture.
Definition texture.h:49
int internal_width
Internal width of texture.
Definition texture.h:49
int internal_height
Internal height of texture.
Definition texture.h:49
gf_draw_driver_texture_t * draw_driver_texture
Driver-dependent texture.
Definition texture.h:49
int height
Height of texture.
Definition texture.h:49
int width
Width of texture.
Definition texture.h:49