GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_draw_platform.h File Reference

Platform-dependent part of drawing driver. More...

#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/draw_platform.h>
#include <gf_type/draw.h>
#include <gf_type/core.h>

Go to the source code of this file.

Functions

gf_draw_platform_tgf_draw_platform_create (gf_engine_t *engine, gf_draw_t *draw)
 Create platform-dependent part of drawing driver.
 
void gf_draw_platform_destroy (gf_draw_platform_t *platform)
 Destroy platform-dependent part of drawing driver.
 
int gf_draw_platform_step (gf_draw_t *draw)
 Do platform-dependent step.
 
int gf_draw_platform_has_extension (gf_draw_t *draw, const char *query)
 Check if renderer has extension.
 
void gf_draw_platform_begin (void)
 Initialize platform-dependent part of drawing driver.
 
void gf_draw_platform_end (void)
 Cleanup platform-dependent part of drawing driver.
 

Detailed Description

Platform-dependent part of drawing driver.

Warning
You should not use functions written here, since engine does it for you

Definition in file gf_draw_platform.h.

Function Documentation

◆ gf_draw_platform_begin()

void gf_draw_platform_begin ( void  )
extern

Initialize platform-dependent part of drawing driver.

Definition at line 23 of file gf_draw.c.

◆ gf_draw_platform_create()

gf_draw_platform_t * gf_draw_platform_create ( gf_engine_t engine,
gf_draw_t draw 
)
extern

Create platform-dependent part of drawing driver.

Parameters
engineEngine instance
drawDrawing interface
Returns
Platform-dependent part of drawing driver

Definition at line 123 of file gf_draw.c.

◆ gf_draw_platform_destroy()

void gf_draw_platform_destroy ( gf_draw_platform_t platform)
extern

Destroy platform-dependent part of drawing driver.

Parameters
platformPlatform-dependent part of drawing driver

Definition at line 179 of file gf_draw.c.

◆ gf_draw_platform_end()

void gf_draw_platform_end ( void  )
extern

Cleanup platform-dependent part of drawing driver.

Definition at line 24 of file gf_draw.c.

◆ gf_draw_platform_has_extension()

int gf_draw_platform_has_extension ( gf_draw_t draw,
const char *  query 
)
extern

Check if renderer has extension.

Parameters
drawDrawing interface
queryExtension to be checked
Returns
1 if extension is present, otherwise if it isn't

Definition at line 99 of file gf_draw.c.

◆ gf_draw_platform_step()

int gf_draw_platform_step ( gf_draw_t draw)
extern

Do platform-dependent step.

Parameters
drawDrawing interface
Returns
0 if successful, otherwise if failed

Definition at line 101 of file gf_draw.c.