mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 23:08:49 -05:00
Include settings from platform
This commit is contained in:
parent
e3685b58a5
commit
077668f337
12
main.c
12
main.c
@ -1,6 +1,5 @@
|
||||
#include <stdint.h>
|
||||
#include "constants.h"
|
||||
#include "settings.h"
|
||||
#include "levels.h"
|
||||
#include "assets.h"
|
||||
|
||||
@ -14,9 +13,14 @@
|
||||
|
||||
/* ============================= PORTING =================================== */
|
||||
|
||||
/* When porting, define the following in your specific platform_*.h. Also you
|
||||
have to call SFG_mainLoopBody() in the platform's main loop and SFG_init()
|
||||
in the platform initialization. Also set specific settings in settings.h */
|
||||
/* When porting, do the following:
|
||||
- implement the following functions in your platform_*.h.
|
||||
- Call SFG_init() from your platform initialization code.
|
||||
- Call SFG_mainLoopBody() from within your platform's main loop.
|
||||
- include "settings.h" in your platform_*.h and optionally hard-override
|
||||
(redefine) some settings in platform_*.h, according to the platform's
|
||||
needs.
|
||||
*/
|
||||
|
||||
/** Return 1 (0) if given key is pressed (not pressed). */
|
||||
int8_t SFG_keyPressed(uint8_t key);
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef _SFG_PLATFORM_H
|
||||
#define _SFG_PLATFORM_H
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <time.h>
|
||||
|
Loading…
Reference in New Issue
Block a user