GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_core.h
Go to the documentation of this file.
1
7#ifndef __GF_CORE_H__
8#define __GF_CORE_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13/* Type */
14#include <gf_type/core.h>
15
16/* Engine */
17#include <gf_type/draw.h>
18
19/* Standard */
20
25GF_EXPORT void gf_engine_begin(void);
26
31GF_EXPORT void gf_engine_end(void);
32
40GF_EXPORT gf_engine_t* gf_engine_create(const char* title, int nogui);
41
49
56
57#endif
Type definitions related to core.
Type definitions related to drawing interface.
gf_engine_t * gf_engine_create(const char *title, int nogui)
Create engine instance.
Definition gf_core.c:49
void gf_engine_destroy(gf_engine_t *engine)
Destroy engine instance.
Definition gf_core.c:92
void gf_engine_loop(gf_engine_t *engine)
Start engine main loop.
Definition gf_core.c:84
void gf_engine_end(void)
Cleanup engine.
Definition gf_core.c:44
void gf_engine_begin(void)
Initialize engine.
Definition gf_core.c:24
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:182
Required headers before anything.
Engine instance.
Definition core.h:46