summaryrefslogtreecommitdiffhomepage
path: root/examples/web/textures/textures_rectangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/textures/textures_rectangle.c')
-rw-r--r--examples/web/textures/textures_rectangle.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/examples/web/textures/textures_rectangle.c b/examples/web/textures/textures_rectangle.c
index 3efe9a0..c3b7eab 100644
--- a/examples/web/textures/textures_rectangle.c
+++ b/examples/web/textures/textures_rectangle.c
@@ -15,10 +15,6 @@
#include <emscripten/emscripten.h>
#endif
-#if defined(PLATFORM_ANDROID)
- #include "android_native_app_glue.h"
-#endif
-
#define MAX_FRAME_SPEED 15
#define MIN_FRAME_SPEED 1
@@ -47,19 +43,11 @@ void UpdateDrawFrame(void); // Update and Draw one frame
//----------------------------------------------------------------------------------
// Main Enry Point
//----------------------------------------------------------------------------------
-#if defined(PLATFORM_ANDROID)
-void android_main(struct android_app *app)
-#else
int main(void)
-#endif
{
// Initialization
//--------------------------------------------------------------------------------------
-#if defined(PLATFORM_ANDROID)
- InitWindow(screenWidth, screenHeight, app);
-#else
InitWindow(screenWidth, screenHeight, "raylib [texture] example - texture rectangle");
-#endif
scarfy = LoadTexture("resources/scarfy.png"); // Texture loading
position = (Vector2){ 350.0f, 280.0f };
@@ -86,9 +74,8 @@ int main(void)
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
-#if !defined(PLATFORM_ANDROID)
+
return 0;
-#endif
}
//----------------------------------------------------------------------------------