Update: build.bat and example.c
This commit is contained in:
parent
a9372664de
commit
f0b2ca9f81
|
|
@ -4,13 +4,15 @@ REM Build Script for Example 1
|
|||
|
||||
mkdir build
|
||||
|
||||
if "%1"=="--setup" (
|
||||
git submodule update --init
|
||||
|
||||
pushd ".\external\raylib\"
|
||||
cmake -S . -B build -DBUILD_EXAMPLES=Off
|
||||
cmake --build build
|
||||
popd
|
||||
)
|
||||
|
||||
pushd ".\build"
|
||||
cl /Zi raylib.lib user32.lib opengl32.lib gdi32.lib winmm.lib msvcrt.lib shell32.lib "..\example1.c" -Ic:"\external\raylib\build\raylib\include" /link /libpath:c:"..\external\raylib\build\raylib\Release" /NODEFAULTLIB:libcmt /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcmtd
|
||||
if "%1"=="--run" if %errorlevel%==0 example1.exe
|
||||
popd
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ int main(void) {
|
|||
size_t componentSizes[4] = {sizeof(Position), sizeof(Velocity), sizeof(Acceleration), sizeof(ParticleData)};
|
||||
size_t memSize = BECS_GetMinMemoryArenaSize(componentSizes, 4);
|
||||
#ifdef _WIN32
|
||||
printf("%lu\n", memSize);
|
||||
printf("%llu\n", memSize);
|
||||
#elif __unix__
|
||||
printf("%lu\n", memSize);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue