GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_draw_platform.h
Go to the documentation of this file.
1
8
#ifndef __GF_DRAW_PLATFORM_H__
9
#define __GF_DRAW_PLATFORM_H__
10
11
#include <
gf_pre.h
>
12
#include <
gf_macro.h
>
13
14
/* Type */
15
#include <
gf_type/draw_platform.h
>
16
17
/* Engine */
18
#include <
gf_type/draw.h
>
19
#include <
gf_type/core.h
>
20
21
/* Standard */
22
30
GF_EXPORT
gf_draw_platform_t
*
gf_draw_platform_create
(
gf_engine_t
* engine,
gf_draw_t
* draw);
31
37
GF_EXPORT
void
gf_draw_platform_destroy
(
gf_draw_platform_t
* platform);
38
45
GF_EXPORT
int
gf_draw_platform_step
(
gf_draw_t
* draw);
46
54
GF_EXPORT
int
gf_draw_platform_has_extension
(
gf_draw_t
* draw,
const
char
* query);
55
60
GF_EXPORT
void
gf_draw_platform_begin
(
void
);
61
66
GF_EXPORT
void
gf_draw_platform_end
(
void
);
67
68
#endif
core.h
Type definitions related to core.
draw.h
Type definitions related to drawing interface.
draw_platform.h
Type definitions related to platform-dependent part of drawing driver.
gf_draw_platform_destroy
void gf_draw_platform_destroy(gf_draw_platform_t *platform)
Destroy platform-dependent part of drawing driver.
Definition
gf_draw.c:179
gf_draw_platform_has_extension
int gf_draw_platform_has_extension(gf_draw_t *draw, const char *query)
Check if renderer has extension.
Definition
gf_draw.c:99
gf_draw_platform_begin
void gf_draw_platform_begin(void)
Initialize platform-dependent part of drawing driver.
Definition
gf_draw.c:23
gf_draw_platform_end
void gf_draw_platform_end(void)
Cleanup platform-dependent part of drawing driver.
Definition
gf_draw.c:24
gf_draw_platform_create
gf_draw_platform_t * gf_draw_platform_create(gf_engine_t *engine, gf_draw_t *draw)
Create platform-dependent part of drawing driver.
Definition
gf_draw.c:123
gf_draw_platform_step
int gf_draw_platform_step(gf_draw_t *draw)
Do platform-dependent step.
Definition
gf_draw.c:101
gf_macro.h
Macro.
GF_EXPORT
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition
gf_macro.h:190
gf_pre.h
Required headers before anything.
gf_draw_platform_t
Platform-dependent part of drawing driver.
Definition
draw_platform.h:67
gf_draw_t
Drawing interface.
Definition
draw.h:108
gf_engine_t
Engine instance.
Definition
core.h:46
include
gf_draw_platform.h
Generated by
1.9.8