Update: build script and add comment in example1.bat
This commit is contained in:
parent
f0b2ca9f81
commit
60b0c7140c
|
|
@ -7,12 +7,12 @@ mkdir build
|
||||||
if "%1"=="--setup" (
|
if "%1"=="--setup" (
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
pushd ".\external\raylib\"
|
pushd ".\external\raylib\"
|
||||||
cmake -S . -B build -DBUILD_EXAMPLES=Off
|
cmake -S . -B build -DBUILD_EXAMPLES=Off -DCMAKE_BUILD_TYPE=Debug
|
||||||
cmake --build build
|
cmake --build build
|
||||||
popd
|
popd
|
||||||
)
|
)
|
||||||
|
|
||||||
pushd ".\build"
|
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
|
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\Debug" /NODEFAULTLIB:libcmt /NODEFAULTLIB:msvcrtd /NODEFAULTLIB:libcmtd
|
||||||
if "%1"=="--run" if %errorlevel%==0 example1.exe
|
if "%1"=="--run" if %errorlevel%==0 example1.exe
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@ void RenderSystem(BECS_ECS *ecs, float dt, Position *pos, ParticleData *data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: This didn't actually improve it as much as I wanted. Gotta look for a better way to render.
|
||||||
void DrawCircleBatched(Vector2 *positions, float *radii, Color *colors, uint32_t count, uint32_t segments) {
|
void DrawCircleBatched(Vector2 *positions, float *radii, Color *colors, uint32_t count, uint32_t segments) {
|
||||||
rlBegin(RL_TRIANGLES);
|
rlBegin(RL_TRIANGLES);
|
||||||
for(uint32_t i=0 ;i<count; i++){
|
for(uint32_t i=0 ;i<count; i++){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue