Edouard Dupin
0a479ca7ff
Etk : remove the dependency with std::ostream and std::cout that are not present on Android OS
33 lines
605 B
C
33 lines
605 B
C
|
|
#ifndef APP_H_INCLUDED
|
|
#define APP_H_INCLUDED
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#define WINDOW_DEFAULT_WIDTH 640
|
|
#define WINDOW_DEFAULT_HEIGHT 480
|
|
|
|
#define WINDOW_BPP 16
|
|
|
|
|
|
// The simple framework expects the application code to define these functions.
|
|
extern void appInit();
|
|
extern void appDeinit();
|
|
extern void appRender(long tick, int width, int height);
|
|
extern void appMove(double x, double y);
|
|
/* Value is non-zero when application is alive, and 0 when it is closing.
|
|
* Defined by the application framework.
|
|
*/
|
|
extern int gAppAlive;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif |