21 lines
402 B
C
21 lines
402 B
C
|
#include "raylib.h"
|
||
|
|
||
|
int main() {
|
||
|
InitWindow(100, 100, "hello from C");
|
||
|
|
||
|
Texture2D texture = LoadTexture("skins/xp-flowers.bmp");
|
||
|
SetTargetFPS(120);
|
||
|
|
||
|
while (!WindowShouldClose()) {
|
||
|
BeginDrawing();
|
||
|
ClearBackground(RAYWHITE);
|
||
|
DrawTexture(texture, 50, 50, WHITE);
|
||
|
EndDrawing();
|
||
|
}
|
||
|
|
||
|
UnloadTexture(texture);
|
||
|
CloseWindow();
|
||
|
|
||
|
return 0;
|
||
|
}
|