Contains platform-specific overrides and implementations for engine functionality.
More...
#include <mtypes.h>
#include "memory/fakem.h"
#include "resinc.h"
#include "input/nulli.h"
#include "graphics/nullg.h"
Go to the source code of this file.
|
#define | loop_globals() |
| Declare the globals that hold the main loop pointer and args.
|
|
#define | include_memory(default_h) |
|
#define | RESOURCE_EXT_GRAPHICS "bmp" |
|
#define | NEWLINE_STR "\n" |
| Newline string on the current platform.
|
|
#define | PLATFORM_DIR_SEP '/' |
|
#define | after_unilayer_main() |
| Replaces main() and calls the appropriate platform-specific entrypoint.
|
|
#define | unilayer_loop_iter() |
| Call the main loop for one iteration.
|
|
#define | unilayer_loop_set(iter, data) |
| Setup the main loop function and data arguments.
|
|
#define | platform_init(icon) |
| Platform-specific setup function (e.g. create window).
|
|
#define | platform_shutdown() |
| Platform-specific cleanup function.
|
|
#define | CODE_SECTION |
| Define which code resource a function should be placed in.
|
|
|
typedef int(* | loop_iter) (void *) |
| Implementation-specific main loop iteration function.
|
|
Contains platform-specific overrides and implementations for engine functionality.
◆ after_unilayer_main
#define after_unilayer_main |
( |
| ) |
|
Value:int main( int argc, char* argv[] ) { return unilayer_main( argc, argv ); }
Replaces main() and calls the appropriate platform-specific entrypoint.
◆ include_memory
#define include_memory |
( |
| default_h | ) |
|
◆ loop_globals
Value:extern uint8_t g_running;
extern loop_iter g_loop_iter;
extern void* g_loop_data;
Declare the globals that hold the main loop pointer and args.
◆ unilayer_loop_iter
#define unilayer_loop_iter |
( |
| ) |
|
Value:g_running = g_loop_iter( g_loop_data )
Call the main loop for one iteration.
◆ unilayer_loop_set
#define unilayer_loop_set |
( |
| iter, |
|
|
| data ) |
Value:g_loop_iter = (
loop_iter)iter; g_loop_data = (
void*)data;
Setup the main loop function and data arguments.
- Parameters
-
iter | Function pointer to the main loop iteration function. |
data | MEMORY_HANDLE for implementation-specific data/state struct. |