even more bad news from c test
This commit is contained in:
parent
fe8c727392
commit
f345c6f88d
2 changed files with 9 additions and 2 deletions
5
main.c
5
main.c
|
@ -1,15 +1,18 @@
|
||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
InitWindow(100, 100, "hello from C");
|
InitWindow(100, 100, "hello from C");
|
||||||
|
printf("%s\n", GetApplicationDirectory());
|
||||||
|
|
||||||
Texture2D texture = LoadTexture("skins/xp-flowers.bmp");
|
Texture2D texture = LoadTexture("skins/xp-flowers.bmp");
|
||||||
|
Texture2D fail = LoadTexture("fail");
|
||||||
SetTargetFPS(120);
|
SetTargetFPS(120);
|
||||||
|
|
||||||
while (!WindowShouldClose()) {
|
while (!WindowShouldClose()) {
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
DrawTexture(texture, 50, 50, WHITE);
|
DrawTexture(texture, 0, 0, WHITE);
|
||||||
EndDrawing();
|
EndDrawing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
main.scm
6
main.scm
|
@ -198,7 +198,11 @@
|
||||||
(map (lambda (p) (string-append p "/" filename))
|
(map (lambda (p) (string-append p "/" filename))
|
||||||
*skin-paths*)))
|
*skin-paths*)))
|
||||||
(unless path
|
(unless path
|
||||||
(error 'load-skin (string-append "failed to load `" filename "`. tried paths " (with-output-to-string (lambda () (write *skin-paths*))))))
|
(error
|
||||||
|
'load-skin
|
||||||
|
(string-append
|
||||||
|
"failed to load `" filename "`. tried paths "
|
||||||
|
(with-output-to-string (lambda () (write *skin-paths*))))))
|
||||||
(load-texture path))
|
(load-texture path))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue