diff options
| author | ruki <[email protected]> | 2025-12-16 23:39:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-16 23:39:52 +0800 |
| commit | 3e7d8b94f1a1349ccbae107b5a2aeac9fb77e6e2 (patch) | |
| tree | 11ac0a272ccfc04633a836a8cce4a6d3b9cab46f /tests/projects/android/native_app/raylib_basic/src | |
| parent | 5537af295c452f1bbc1875c27b285a35a167f44e (diff) | |
improve raylib tests
Diffstat (limited to 'tests/projects/android/native_app/raylib_basic/src')
| -rw-r--r-- | tests/projects/android/native_app/raylib_basic/src/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/projects/android/native_app/raylib_basic/src/main.cpp b/tests/projects/android/native_app/raylib_basic/src/main.cpp new file mode 100644 index 000000000..b160499b7 --- /dev/null +++ b/tests/projects/android/native_app/raylib_basic/src/main.cpp @@ -0,0 +1,21 @@ +#include <raylib.h> +#include <android/log.h> + +#define LOG_TAG "raydemo_basic" +#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) + +int main(int argc, char** argv) { + InitWindow(0, 0, "Hello, xmake for raylib android!"); + SetTargetFPS(60); + LOGI("raylib application is running!"); + + while (!WindowShouldClose()) { + BeginDrawing(); + ClearBackground(BLACK); + DrawText("Hello, xmake for raylib android!", 250, 250, 25, BLUE); + EndDrawing(); + } + + CloseWindow(); + return 0; +} |
