2023-12-21 14:30:43 -05:00
|
|
|
#include "raylib.h"
|
2023-12-21 14:40:51 -05:00
|
|
|
#include <stdio.h>
|
2023-12-21 14:30:43 -05:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
InitWindow(100, 100, "hello from C");
|
2023-12-21 14:40:51 -05:00
|
|
|
printf("%s\n", GetApplicationDirectory());
|
2023-12-21 14:30:43 -05:00
|
|
|
|
|
|
|
Texture2D texture = LoadTexture("skins/xp-flowers.bmp");
|
2023-12-21 14:40:51 -05:00
|
|
|
Texture2D fail = LoadTexture("fail");
|
2023-12-21 14:30:43 -05:00
|
|
|
SetTargetFPS(120);
|
|
|
|
|
|
|
|
while (!WindowShouldClose()) {
|
|
|
|
BeginDrawing();
|
|
|
|
ClearBackground(RAYWHITE);
|
2023-12-21 14:40:51 -05:00
|
|
|
DrawTexture(texture, 0, 0, WHITE);
|
2023-12-21 14:30:43 -05:00
|
|
|
EndDrawing();
|
|
|
|
}
|
|
|
|
|
|
|
|
UnloadTexture(texture);
|
|
|
|
CloseWindow();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|