Update: build script and add comment in example1.bat

This commit is contained in:
Rodolfo Barcelli Jo 2026-01-23 15:41:35 +08:00
parent f0b2ca9f81
commit 60b0c7140c
2 changed files with 3 additions and 2 deletions

View file

@ -7,12 +7,12 @@ mkdir build
if "%1"=="--setup" (
git submodule update --init
pushd ".\external\raylib\"
cmake -S . -B build -DBUILD_EXAMPLES=Off
cmake -S . -B build -DBUILD_EXAMPLES=Off -DCMAKE_BUILD_TYPE=Debug
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
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
popd

View file

@ -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) {
rlBegin(RL_TRIANGLES);
for(uint32_t i=0 ;i<count; i++){