raylib folder
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
michelson
|
/raylib_ignore
|
||||||
/raylib
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ run:
|
|||||||
./michelson
|
./michelson
|
||||||
|
|
||||||
web: main.c
|
web: main.c
|
||||||
mkdir -p web && emcc -o web/index.html main.c -Os -Wall -std=c99 -DPLATFORM_WEB -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 -I. --shell-file minshell.html --preload-file glsl/michelson_web.frag libraylib.web.a
|
mkdir -p web && emcc -o web/index.html main.c -Os -Wall -std=c99 -DPLATFORM_WEB -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 -I. --shell-file minshell.html --preload-file glsl/michelson_web.frag raylib/libraylib.web.a
|
||||||
|
|
||||||
webrun:
|
webrun:
|
||||||
cd web && python -m http.server 8000 && cd ..
|
cd web && python -m http.server 8000 && cd ..
|
||||||
|
|||||||
4
main.c
4
main.c
@ -1,7 +1,7 @@
|
|||||||
#include "raylib.h"
|
#include "raylib/raylib.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include "raygui.h"
|
#include "raylib/raygui.h"
|
||||||
#if defined(PLATFORM_WEB)
|
#if defined(PLATFORM_WEB)
|
||||||
#include <emscripten/emscripten.h>
|
#include <emscripten/emscripten.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user