summaryrefslogtreecommitdiff
path: root/tests/projects/android/native_app/raylib_basic/src/main.cpp
blob: b160499b75e5b435d1c6c3dd1c872b8506d0d124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}