summaryrefslogtreecommitdiff
path: root/tests/projects/android/native_app/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/android/native_app/src/main.cpp')
-rw-r--r--tests/projects/android/native_app/src/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/projects/android/native_app/src/main.cpp b/tests/projects/android/native_app/src/main.cpp
new file mode 100644
index 000000000..4c8253ead
--- /dev/null
+++ b/tests/projects/android/native_app/src/main.cpp
@@ -0,0 +1,21 @@
+#include <raylib.h>
+
+int main() {
+ InitWindow(0, 0, "Hello, xmake for raylib android!");
+
+ SetTargetFPS(60);
+
+ while (!WindowShouldClose()) { // Main game loop
+ BeginDrawing();
+
+ ClearBackground(BLACK);
+
+ DrawText("Hello, xmake for raylib android!", 250, 250, 25, BLUE);
+
+ EndDrawing();
+ }
+
+ CloseWindow();
+
+ return 0;
+} \ No newline at end of file