Files
Upsilon/ion/src/simulator/shared/platform.h
M4x1m3 4117fac375 [ion/simulator] Add command-line arguments support
Added arguments for screen-only mode, fullscreen and a usage menu, while
still keeping the original functionality of the EPSILON_SDL_SCREEN_ONLY
preprocessor var.
2019-11-02 16:19:17 +01:00

33 lines
761 B
C

#ifndef ION_SIMULATOR_PLATFORM_H
#define ION_SIMULATOR_PLATFORM_H
#include <SDL.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Those functions should be implemented per-platform.
* They are defined as C function for easier interop. */
SDL_Texture * IonSimulatorLoadImage(SDL_Renderer * renderer, const char * identifier);
char * IonSimulatorGetLanguageCode();
void IonSimulatorTelemetryInit();
void IonSimulatorTelemetryEvent(const char * eventName);
void IonSimulatorTelemetryDeinit();
void IonSimulatorKeyboardKeyDown(int keyNumber);
void IonSimulatorKeyboardKeyUp(int keyNumber);
void IonSimulatorEventsPushEvent(int eventNumber);
void IonSimulatorCallbackDidRefresh();
void IonSimulatorCallbackDidScanKeyboard();
#ifdef __cplusplus
}
#endif
#endif