GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_draw_driver.h
Go to the documentation of this file.
1
8
#ifndef __GF_DRAW_DRIVER_H__
9
#define __GF_DRAW_DRIVER_H__
10
11
#include <
gf_pre.h
>
12
#include <
gf_macro.h
>
13
14
/* Type */
15
#include <
gf_type/draw_driver.h
>
16
17
/* Engine */
18
#include <
gf_type/draw.h
>
19
#include <
gf_type/texture.h
>
20
#include <
gf_type/graphic.h
>
21
#include <
gf_type/core.h
>
22
23
/* Standard */
24
32
GF_EXPORT
gf_draw_driver_t
*
gf_draw_driver_create
(
gf_engine_t
* engine,
gf_draw_t
* draw);
33
39
GF_EXPORT
void
gf_draw_driver_destroy
(
gf_draw_driver_t
* driver);
40
48
GF_EXPORT
int
gf_draw_driver_has_extension
(
gf_draw_t
* draw,
const
char
* query);
49
55
GF_EXPORT
void
gf_draw_driver_reshape
(
gf_draw_t
* draw);
56
68
GF_EXPORT
gf_draw_driver_texture_t
*
gf_draw_driver_register_texture
(
gf_draw_t
* draw,
int
width,
int
height,
int
* iwidth,
int
* iheight,
unsigned
char
* data);
69
75
GF_EXPORT
void
gf_draw_driver_destroy_texture
(
gf_draw_driver_texture_t
* texture);
76
83
GF_EXPORT
void
gf_draw_driver_begin_texture_2d
(
gf_draw_t
* draw,
gf_texture_t
* texture);
84
90
GF_EXPORT
void
gf_draw_driver_end_texture_2d
(
gf_draw_t
* draw);
91
98
GF_EXPORT
void
gf_draw_driver_set_color
(
gf_draw_t
* draw,
gf_graphic_color_t
color);
99
105
GF_EXPORT
void
gf_draw_driver_before
(
gf_draw_t
* draw);
106
112
GF_EXPORT
void
gf_draw_driver_after
(
gf_draw_t
* draw);
113
114
#endif
core.h
Type definitions related to core.
draw.h
Type definitions related to drawing interface.
draw_driver.h
Type definitions related to drawing driver.
gf_draw_driver_register_texture
gf_draw_driver_texture_t * gf_draw_driver_register_texture(gf_draw_t *draw, int width, int height, int *iwidth, int *iheight, unsigned char *data)
Register driver-dependent texture.
Definition
gf_driver.c:25
gf_draw_driver_set_color
void gf_draw_driver_set_color(gf_draw_t *draw, gf_graphic_color_t color)
Set color.
Definition
gf_driver.c:53
gf_draw_driver_end_texture_2d
void gf_draw_driver_end_texture_2d(gf_draw_t *draw)
End 2D texture mode.
Definition
gf_driver.c:51
gf_draw_driver_before
void gf_draw_driver_before(gf_draw_t *draw)
Called before gf_draw_frame.
Definition
gf_driver.c:61
gf_draw_driver_after
void gf_draw_driver_after(gf_draw_t *draw)
Called after gf_draw_frame.
Definition
gf_driver.c:71
gf_draw_driver_has_extension
int gf_draw_driver_has_extension(gf_draw_t *draw, const char *query)
Check if renderer has extension.
Definition
gf_driver.c:45
gf_draw_driver_destroy_texture
void gf_draw_driver_destroy_texture(gf_draw_driver_texture_t *texture)
Destroy driver-dependent texture.
Definition
gf_driver.c:30
gf_draw_driver_begin_texture_2d
void gf_draw_driver_begin_texture_2d(gf_draw_t *draw, gf_texture_t *texture)
Begin 2D texture mode.
Definition
gf_driver.c:49
gf_draw_driver_create
gf_draw_driver_t * gf_draw_driver_create(gf_engine_t *engine, gf_draw_t *draw)
Initialize drawing driver.
Definition
gf_driver.c:35
gf_draw_driver_reshape
void gf_draw_driver_reshape(gf_draw_t *draw)
Do stuffs required on resizing window.
Definition
gf_driver.c:47
gf_draw_driver_destroy
void gf_draw_driver_destroy(gf_draw_driver_t *driver)
Destroy drawing driver.
Definition
gf_driver.c:55
gf_macro.h
Macro.
GF_EXPORT
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition
gf_macro.h:182
gf_pre.h
Required headers before anything.
graphic.h
Type definitions related to graphic interface.
gf_draw_driver_t
Drawing driver.
Definition
draw_driver.h:48
gf_draw_driver_texture_t
Driver-dependent texture.
Definition
draw_driver.h:56
gf_draw_t
Drawing interface.
Definition
draw.h:101
gf_engine_t
Engine instance.
Definition
core.h:44
gf_graphic_color_t
Color.
Definition
graphic.h:42
gf_texture_t
Texture.
Definition
texture.h:47
texture.h
Type definitions related to texture.
include
gf_draw_driver.h
Generated by
1.9.8