diff options
| author | ruki <[email protected]> | 2025-12-16 23:25:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-16 23:25:49 +0800 |
| commit | c9ede56339f7faf96bb6ed105fd60dfcaf01655f (patch) | |
| tree | 5abc0e8171137527e9208293e9510622bd558061 /tests/projects/android/native_app/src/main.cpp | |
| parent | 8e63376d62415825aa2836df19ebb7c895aa7a2e (diff) | |
format code and fix keystore
Diffstat (limited to 'tests/projects/android/native_app/src/main.cpp')
| -rw-r--r-- | tests/projects/android/native_app/src/main.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/tests/projects/android/native_app/src/main.cpp b/tests/projects/android/native_app/src/main.cpp index 4c8253ead..42f5b9a37 100644 --- a/tests/projects/android/native_app/src/main.cpp +++ b/tests/projects/android/native_app/src/main.cpp @@ -1,21 +1,16 @@ #include <raylib.h> -int main() { - InitWindow(0, 0, "Hello, xmake for raylib android!"); +int main(int argc, char** argv) { + InitWindow(0, 0, "Hello, xmake for raylib android!"); + SetTargetFPS(60); - SetTargetFPS(60); + while (!WindowShouldClose()) { + BeginDrawing(); + ClearBackground(BLACK); + DrawText("Hello, xmake for raylib android!", 250, 250, 25, BLUE); + EndDrawing(); + } - 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 + CloseWindow(); + return 0; +} |
