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#include <gf_type/input.h>
23
24/* Standard */
25
34
41
49GF_EXPORT int gf_draw_driver_has_extension(gf_draw_t* draw, const char* query);
50
57
69GF_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);
70
77
85
92
100
107
114
115#endif
Type definitions related to core.
Type definitions related to drawing interface.
Type definitions related to drawing driver.
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
void gf_draw_driver_set_color(gf_draw_t *draw, gf_graphic_color_t color)
Set color.
Definition gf_driver.c:53
void gf_draw_driver_end_texture_2d(gf_draw_t *draw)
End 2D texture mode.
Definition gf_driver.c:51
void gf_draw_driver_before(gf_draw_t *draw)
Called before gf_draw_frame.
Definition gf_driver.c:61
void gf_draw_driver_after(gf_draw_t *draw)
Called after gf_draw_frame.
Definition gf_driver.c:71
int gf_draw_driver_has_extension(gf_draw_t *draw, const char *query)
Check if renderer has extension.
Definition gf_driver.c:45
void gf_draw_driver_destroy_texture(gf_draw_driver_texture_t *texture)
Destroy driver-dependent texture.
Definition gf_driver.c:30
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_t * gf_draw_driver_create(gf_engine_t *engine, gf_draw_t *draw)
Initialize drawing driver.
Definition gf_driver.c:35
void gf_draw_driver_reshape(gf_draw_t *draw)
Do stuffs required on resizing window.
Definition gf_driver.c:47
void gf_draw_driver_destroy(gf_draw_driver_t *driver)
Destroy drawing driver.
Definition gf_driver.c:55
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:190
Required headers before anything.
Type definitions related to graphic interface.
Type definitions related to input interface.
Drawing driver.
Definition draw_driver.h:50
Driver-dependent texture.
Definition draw_driver.h:58
Drawing interface.
Definition draw.h:108
Engine instance.
Definition core.h:46
Texture.
Definition texture.h:49
Type definitions related to texture.