diff options
| author | Ray <[email protected]> | 2018-04-02 10:48:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-02 10:48:02 +0200 |
| commit | e72b96ada12e899bad3ca50fdf9c2e079aa4c3a9 (patch) | |
| tree | c1f20ade9cce0112bafcf0cdc3e4fea2cda3a887 /games/asteroids.c | |
| parent | bd2c81d481d76024d7a9e2bf45e81dc7b9c5a12c (diff) | |
| parent | 2c219fb81458b855c9383cd38885993192d856cd (diff) | |
| download | raylib-e72b96ada12e899bad3ca50fdf9c2e079aa4c3a9.tar.gz raylib-e72b96ada12e899bad3ca50fdf9c2e079aa4c3a9.zip | |
Merge pull request #508 from a3f/master
Allow use of main instead of android_main
Diffstat (limited to 'games/asteroids.c')
| -rw-r--r-- | games/asteroids.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/games/asteroids.c b/games/asteroids.c index dc8a9e07..80096de6 100644 --- a/games/asteroids.c +++ b/games/asteroids.c @@ -15,10 +15,6 @@ #include <math.h> -#if defined(PLATFORM_ANDROID) - #include "android_native_app_glue.h" -#endif - #if defined(PLATFORM_WEB) #include <emscripten/emscripten.h> #endif @@ -101,19 +97,11 @@ static void UpdateDrawFrame(void); // Update and Draw (one frame) //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ -#if defined(PLATFORM_ANDROID) -void android_main(struct android_app *app) -#else int main(void) -#endif { - // Initialization + // Initialization (Note windowTitle is unused on Android) //--------------------------------------------------------- -#if defined(PLATFORM_ANDROID) - InitWindow(screenWidth, screenHeight, app); -#else InitWindow(screenWidth, screenHeight, "sample game: asteroids"); -#endif InitGame(); @@ -140,9 +128,8 @@ int main(void) CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- -#if !defined(PLATFORM_ANDROID) + return 0; -#endif } //------------------------------------------------------------------------------------ @@ -578,4 +565,4 @@ void UpdateDrawFrame(void) { UpdateGame(); DrawGame(); -}
\ No newline at end of file +} |
