![]() |
GoldFish Engine
Quite simple and lightweight game engine
|
Drawing driver. More...
#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/draw_driver.h>
#include <gf_type/draw.h>
#include <gf_type/texture.h>
#include <gf_type/graphic.h>
#include <gf_type/core.h>
#include <gf_type/input.h>
Go to the source code of this file.
Functions | |
gf_draw_driver_t * | gf_draw_driver_create (gf_engine_t *engine, gf_draw_t *draw) |
Initialize drawing driver. | |
void | gf_draw_driver_destroy (gf_draw_driver_t *driver) |
Destroy drawing driver. | |
int | gf_draw_driver_has_extension (gf_draw_t *draw, const char *query) |
Check if renderer has extension. | |
void | gf_draw_driver_reshape (gf_draw_t *draw) |
Do stuffs required on resizing window. | |
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. | |
void | gf_draw_driver_destroy_texture (gf_draw_driver_texture_t *texture) |
Destroy driver-dependent texture. | |
void | gf_draw_driver_begin_texture_2d (gf_draw_t *draw, gf_texture_t *texture) |
Begin 2D texture mode. | |
void | gf_draw_driver_end_texture_2d (gf_draw_t *draw) |
End 2D texture mode. | |
void | gf_draw_driver_set_color (gf_draw_t *draw, gf_graphic_color_t color) |
Set color. | |
void | gf_draw_driver_before (gf_draw_t *draw) |
Called before gf_draw_frame. | |
void | gf_draw_driver_after (gf_draw_t *draw) |
Called after gf_draw_frame. | |
Drawing driver.
Definition in file gf_draw_driver.h.
|
extern |
Called after gf_draw_frame.
draw | Drawing interface |
Definition at line 71 of file gf_driver.c.
|
extern |
Called before gf_draw_frame.
draw | Drawing interface |
Definition at line 61 of file gf_driver.c.
|
extern |
Begin 2D texture mode.
draw | Drawing interface |
texture | Texture |
Definition at line 49 of file gf_driver.c.
|
extern |
Initialize drawing driver.
engine | Engine instance |
draw | Drawing interface |
Definition at line 35 of file gf_driver.c.
|
extern |
|
extern |
Destroy driver-dependent texture.
texture | Driver-dependent texture |
Definition at line 30 of file gf_driver.c.
|
extern |
|
extern |
Check if renderer has extension.
draw | Drawing interface |
query | Extension to be checked |
1
if extension is present, otherwise if it isn't Definition at line 45 of file gf_driver.c.
|
extern |
Register driver-dependent texture.
draw | Drawing interface |
width | Width of texture |
height | Height of texture |
iwidth | Internal width to be returned |
iheight | Internal height to be returned |
data | Texture data |
Definition at line 25 of file gf_driver.c.
|
extern |
Do stuffs required on resizing window.
draw | Drawing interface |
Definition at line 47 of file gf_driver.c.
|
extern |