Added a basic MemoryArena.

Added one scratch, one engine and one game arena.
Converted the game alloc to arena + the display stuff.
WIP

Made using Antigravity+gemini
This commit is contained in:
2026-01-17 21:09:23 -05:00
parent 98783b7e8f
commit f95ba51c13
28 changed files with 462 additions and 59 deletions

View File

@@ -2,8 +2,21 @@
setlocal
:: --- 1. Argument Parsing Logic ---
set "ARG1=%~1"
set "ARG2=%~2"
set "ARG1="
set "ARG2="
set "AUTOCLOSE=0"
for %%x in (%*) do (
if /I "%%~x"=="autoclose" (
set "AUTOCLOSE=1"
) else (
if not defined ARG1 (
set "ARG1=%%~x"
) else if not defined ARG2 (
set "ARG2=%%~x"
)
)
)
:: Set Defaults
set "COMPILER_TYPE=clang"
@@ -44,6 +57,12 @@ if exist "%APP_DIR%\%APP_EXE%" (
pushd "%APP_DIR%"
start "" "%APP_EXE%"
popd
if "%AUTOCLOSE%"=="1" (
echo [AUTOCLOSE] Waiting 5 seconds...
timeout /t 5 /nobreak >nul
taskkill /IM "%APP_EXE%" /F >nul 2>&1
)
) else (
echo [ERROR] Executable not found at: %APP_DIR%\%APP_EXE%
echo Please build first: fbuild JulietApp-%PLATFORM%-%CONFIG%

View File

@@ -73,5 +73,4 @@ for %%F in ("%SOURCE_DIR%\*.hlsl") do (
echo.
echo Operation terminee.
pause
endlocal