added raylib.h for hopefully more portability

This commit is contained in:
Return0ne 2022-04-14 15:20:18 -04:00
parent 483bcd5fbd
commit 7bc747bc7b
5 changed files with 1558 additions and 5 deletions

View File

@ -1,2 +1,2 @@
#!/bin/sh
emcc -o html5/index.html src/Main.c -Os -Wall /usr/local/lib/libraylib.a -I. -I/usr/local/include/raylib.h -L. -L/usr/local/lib/libraylib.a -s USE_GLFW=3 -DPLATFORM_WEB --preload-file assets/sfx/boing.wav --preload-file assets/bgm/01-Slipin-Sunday.ogg --preload-file assets/gfx/player.png --shell-file html5/shell.html
emcc -o html5/index.html src/Main.c -Os -Wall /usr/local/lib/libraylib.a -I. -I/usr/local/include/raylib.h -L. -L/usr/local/lib/libraylib.a -s USE_GLFW=3 -DPLATFORM_WEB --preload-file assets/sfx/boing.wav --preload-file assets/gfx/player.png --shell-file html5/shell.html

File diff suppressed because one or more lines are too long

16
include/LICENSE Normal file
View File

@ -0,0 +1,16 @@
Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)
This software is provided "as-is", without any express or implied warranty. In no event
will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you
wrote the original software. If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented
as being the original software.
3. This notice may not be removed or altered from any source distribution.

1536
include/raylib.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,11 @@
#include "../include/raylib.h"
#if defined(PLATFORM_WEB)
#include "/usr/local/include/raylib.h"
#include <emscripten/emscripten.h>
#else
#include "raylib.h"
#endif
// screen variables
static const int screenWidth = 800;
static const int screenHeight = 450;