summaryrefslogtreecommitdiff
path: root/tests/projects/android/native_app/src/main.cpp
blob: b7dda5d34d5e636a3965f44bb6b9c57c15c3fa0f (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_android"
#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;
}