Skip to content

Commit 0ff90ae

Browse files
chore: add collision example
1 parent ebedcd3 commit 0ff90ae

File tree

8 files changed

+682
-1
lines changed

8 files changed

+682
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
if not exist ../out/example_basic_2.dll exit 1
6464
if not exist ../out/example_basic_3.dll exit 1
6565
if not exist ../out/example_basic_4.dll exit 1
66+
if not exist ../out/example_basic_6.dll exit 1
6667
if not exist ../out/example_gfx_0.dll exit 1
6768
if not exist ../out/example_gfx_1.dll exit 1
6869
if not exist ../out/example_gfx_2.dll exit 1
@@ -136,6 +137,7 @@ jobs:
136137
if not exist ../out/example_basic_2.dll exit 1
137138
if not exist ../out/example_basic_3.dll exit 1
138139
if not exist ../out/example_basic_4.dll exit 1
140+
if not exist ../out/example_basic_6.dll exit 1
139141
if not exist ../out/example_gfx_0.dll exit 1
140142
if not exist ../out/example_gfx_1.dll exit 1
141143
if not exist ../out/example_gfx_2.dll exit 1
@@ -255,6 +257,7 @@ jobs:
255257
test -f ./out/example_basic_2.dylib || exit 1
256258
test -f ./out/example_basic_3.dylib || exit 1
257259
test -f ./out/example_basic_4.dylib || exit 1
260+
test -f ./out/example_basic_6.dylib || exit 1
258261
test -f ./out/example_gfx_0.dylib || exit 1
259262
test -f ./out/example_gfx_1.dylib || exit 1
260263
test -f ./out/example_gfx_2.dylib || exit 1
@@ -339,6 +342,7 @@ jobs:
339342
test -f ./out/example_basic_2.dylib || exit 1
340343
test -f ./out/example_basic_3.dylib || exit 1
341344
test -f ./out/example_basic_4.dylib || exit 1
345+
test -f ./out/example_basic_6.dylib || exit 1
342346
test -f ./out/example_gfx_0.dylib || exit 1
343347
test -f ./out/example_gfx_1.dylib || exit 1
344348
test -f ./out/example_gfx_2.dylib || exit 1
@@ -473,6 +477,7 @@ jobs:
473477
test -f ./out/example_basic_2.so || exit 1
474478
test -f ./out/example_basic_3.so || exit 1
475479
test -f ./out/example_basic_4.so || exit 1
480+
test -f ./out/example_basic_6.so || exit 1
476481
test -f ./out/example_gfx_0.so || exit 1
477482
test -f ./out/example_gfx_1.so || exit 1
478483
test -f ./out/example_gfx_2.so || exit 1
@@ -557,6 +562,7 @@ jobs:
557562
test -f ./out/example_basic_2.so || exit 1
558563
test -f ./out/example_basic_3.so || exit 1
559564
test -f ./out/example_basic_4.so || exit 1
565+
test -f ./out/example_basic_6.so || exit 1
560566
test -f ./out/example_gfx_0.so || exit 1
561567
test -f ./out/example_gfx_1.so || exit 1
562568
test -f ./out/example_gfx_2.so || exit 1

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ Demonstrates:
6969
Demonstrates:
7070
* Dear ImGui integration
7171

72+
### Example 2 - Starter & Draw & Collision (example_basic_6.c)
73+
Demonstrates:
74+
* loading APIs
75+
* loading extensions
76+
* starter extension
77+
* basic drawing extension (3D)
78+
* basic screen log extension
79+
* collision extension
80+
7281
## Low Level Graphics Examples
7382

7483
### Example 0 - Graphics Extension 0 (example_gfx_0.c)

examples/build_linux.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ else
8282
rm -f ../out/example_basic_3_*.so
8383
rm -f ../out/example_basic_4.so
8484
rm -f ../out/example_basic_4_*.so
85+
rm -f ../out/example_basic_6.so
86+
rm -f ../out/example_basic_6_*.so
8587
rm -f ../out/example_gfx_0.so
8688
rm -f ../out/example_gfx_0_*.so
8789
rm -f ../out/example_gfx_1.so
@@ -240,6 +242,35 @@ fi
240242
echo ${CYAN}Results: ${NC} ${PL_RESULT}
241243
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
242244

245+
#~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
246+
247+
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
248+
PL_DEFINES="-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG "
249+
PL_INCLUDE_DIRECTORIES="-I../examples -I../editor -I../src -I../shaders -I../libs -I../extensions -I../out -I../dependencies/stb -I../dependencies/imgui "
250+
PL_LINK_DIRECTORIES="-L../out -Wl,-rpath,../out -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu "
251+
PL_COMPILER_FLAGS="-std=gnu11 -fPIC --debug -g "
252+
PL_LINKER_FLAGS="-ldl -lm "
253+
PL_STATIC_LINK_LIBRARIES=""
254+
PL_DYNAMIC_LINK_LIBRARIES=""
255+
PL_SOURCES="example_basic_6.c "
256+
257+
# run compiler (and linker)
258+
echo
259+
echo ${YELLOW}Step: example_basic_6${NC}
260+
echo ${YELLOW}~~~~~~~~~~~~~~~~~~~${NC}
261+
echo ${CYAN}Compiling and Linking...${NC}
262+
gcc -shared $PL_SOURCES $PL_INCLUDE_DIRECTORIES $PL_DEFINES $PL_COMPILER_FLAGS $PL_INCLUDE_DIRECTORIES $PL_LINK_DIRECTORIES $PL_STATIC_LINK_LIBRARIES $PL_DYNAMIC_LINK_LIBRARIES $PL_LINKER_FLAGS -o "./../out/example_basic_6.so"
263+
264+
# check build status
265+
if [ $? -ne 0 ]
266+
then
267+
PL_RESULT=${BOLD}${RED}Failed.${NC}
268+
fi
269+
270+
# print results
271+
echo ${CYAN}Results: ${NC} ${PL_RESULT}
272+
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
273+
243274
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
244275

245276
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
@@ -427,6 +458,8 @@ else
427458
rm -f ../out/example_basic_3_*.so
428459
rm -f ../out/example_basic_4.so
429460
rm -f ../out/example_basic_4_*.so
461+
rm -f ../out/example_basic_6.so
462+
rm -f ../out/example_basic_6_*.so
430463
rm -f ../out/example_gfx_0.so
431464
rm -f ../out/example_gfx_0_*.so
432465
rm -f ../out/example_gfx_1.so
@@ -585,6 +618,35 @@ fi
585618
echo ${CYAN}Results: ${NC} ${PL_RESULT}
586619
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
587620

621+
#~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~
622+
623+
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
624+
PL_DEFINES="-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG "
625+
PL_INCLUDE_DIRECTORIES="-I../examples -I../editor -I../src -I../shaders -I../libs -I../extensions -I../out -I../dependencies/stb -I../dependencies/imgui "
626+
PL_LINK_DIRECTORIES="-L../out -Wl,-rpath,../out -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu "
627+
PL_COMPILER_FLAGS="-std=gnu11 -fPIC "
628+
PL_LINKER_FLAGS="-ldl -lm "
629+
PL_STATIC_LINK_LIBRARIES=""
630+
PL_DYNAMIC_LINK_LIBRARIES=""
631+
PL_SOURCES="example_basic_6.c "
632+
633+
# run compiler (and linker)
634+
echo
635+
echo ${YELLOW}Step: example_basic_6${NC}
636+
echo ${YELLOW}~~~~~~~~~~~~~~~~~~~${NC}
637+
echo ${CYAN}Compiling and Linking...${NC}
638+
gcc -shared $PL_SOURCES $PL_INCLUDE_DIRECTORIES $PL_DEFINES $PL_COMPILER_FLAGS $PL_INCLUDE_DIRECTORIES $PL_LINK_DIRECTORIES $PL_STATIC_LINK_LIBRARIES $PL_DYNAMIC_LINK_LIBRARIES $PL_LINKER_FLAGS -o "./../out/example_basic_6.so"
639+
640+
# check build status
641+
if [ $? -ne 0 ]
642+
then
643+
PL_RESULT=${BOLD}${RED}Failed.${NC}
644+
fi
645+
646+
# print results
647+
echo ${CYAN}Results: ${NC} ${PL_RESULT}
648+
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
649+
588650
#~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
589651

590652
PL_RESULT=${BOLD}${GREEN}Successful.${NC}

examples/build_macos.sh

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ else
8787
rm -f ../out/example_basic_3_*.dylib
8888
rm -f ../out/example_basic_4.dylib
8989
rm -f ../out/example_basic_4_*.dylib
90+
rm -f ../out/example_basic_6.dylib
91+
rm -f ../out/example_basic_6_*.dylib
9092
rm -f ../out/example_gfx_0.dylib
9193
rm -f ../out/example_gfx_0_*.dylib
9294
rm -f ../out/example_gfx_1.dylib
@@ -284,6 +286,43 @@ fi
284286
echo ${CYAN}Results: ${NC} ${PL_RESULT}
285287
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
286288

289+
#~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290+
291+
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
292+
PL_DEFINES="-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG "
293+
PL_INCLUDE_DIRECTORIES="-I../examples -I../editor -I../src -I../shaders -I../libs -I../extensions -I../out -I../dependencies/stb -I../dependencies/imgui "
294+
PL_LINK_DIRECTORIES="-L../out -Wl,-rpath,../out -L/usr/local/lib -Wl,-rpath,/usr/local/lib "
295+
PL_COMPILER_FLAGS="-std=c99 --debug -g -fmodules -ObjC -fPIC "
296+
PL_LINKER_FLAGS=""
297+
PL_STATIC_LINK_LIBRARIES=""
298+
PL_DYNAMIC_LINK_LIBRARIES=""
299+
PL_SOURCES="example_basic_6.c "
300+
PL_LINK_FRAMEWORKS="-framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore "
301+
302+
# add flags for specific hardware
303+
if [[ "$ARCH" == "arm64" ]]; then
304+
PL_COMPILER_FLAGS+="-arch arm64 "
305+
else
306+
PL_COMPILER_FLAGS+="-arch x86_64 "
307+
fi
308+
309+
# run compiler (and linker)
310+
echo
311+
echo ${YELLOW}Step: example_basic_6${NC}
312+
echo ${YELLOW}~~~~~~~~~~~~~~~~~~~${NC}
313+
echo ${CYAN}Compiling and Linking...${NC}
314+
clang -shared $PL_SOURCES $PL_INCLUDE_DIRECTORIES $PL_DEFINES $PL_COMPILER_FLAGS $PL_INCLUDE_DIRECTORIES $PL_LINK_DIRECTORIES $PL_STATIC_LINK_LIBRARIES $PL_DYNAMIC_LINK_LIBRARIES $PL_LINK_FRAMEWORKS $PL_LINKER_FLAGS -o "./../out/example_basic_6.dylib"
315+
316+
# check build status
317+
if [ $? -ne 0 ]
318+
then
319+
PL_RESULT=${BOLD}${RED}Failed.${NC}
320+
fi
321+
322+
# print results
323+
echo ${CYAN}Results: ${NC} ${PL_RESULT}
324+
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
325+
287326
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288327

289328
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
@@ -514,6 +553,8 @@ else
514553
rm -f ../out/example_basic_3_*.dylib
515554
rm -f ../out/example_basic_4.dylib
516555
rm -f ../out/example_basic_4_*.dylib
556+
rm -f ../out/example_basic_6.dylib
557+
rm -f ../out/example_basic_6_*.dylib
517558
rm -f ../out/example_gfx_0.dylib
518559
rm -f ../out/example_gfx_0_*.dylib
519560
rm -f ../out/example_gfx_1.dylib
@@ -711,6 +752,43 @@ fi
711752
echo ${CYAN}Results: ${NC} ${PL_RESULT}
712753
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
713754

755+
#~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~
756+
757+
PL_RESULT=${BOLD}${GREEN}Successful.${NC}
758+
PL_DEFINES="-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG "
759+
PL_INCLUDE_DIRECTORIES="-I../examples -I../editor -I../src -I../shaders -I../libs -I../extensions -I../out -I../dependencies/stb -I../dependencies/imgui "
760+
PL_LINK_DIRECTORIES="-L../out -Wl,-rpath,../out -L/usr/local/lib -Wl,-rpath,/usr/local/lib "
761+
PL_COMPILER_FLAGS="-std=c99 -fmodules -ObjC -fPIC "
762+
PL_LINKER_FLAGS=""
763+
PL_STATIC_LINK_LIBRARIES=""
764+
PL_DYNAMIC_LINK_LIBRARIES=""
765+
PL_SOURCES="example_basic_6.c "
766+
PL_LINK_FRAMEWORKS="-framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore "
767+
768+
# add flags for specific hardware
769+
if [[ "$ARCH" == "arm64" ]]; then
770+
PL_COMPILER_FLAGS+="-arch arm64 "
771+
else
772+
PL_COMPILER_FLAGS+="-arch x86_64 "
773+
fi
774+
775+
# run compiler (and linker)
776+
echo
777+
echo ${YELLOW}Step: example_basic_6${NC}
778+
echo ${YELLOW}~~~~~~~~~~~~~~~~~~~${NC}
779+
echo ${CYAN}Compiling and Linking...${NC}
780+
clang -shared $PL_SOURCES $PL_INCLUDE_DIRECTORIES $PL_DEFINES $PL_COMPILER_FLAGS $PL_INCLUDE_DIRECTORIES $PL_LINK_DIRECTORIES $PL_STATIC_LINK_LIBRARIES $PL_DYNAMIC_LINK_LIBRARIES $PL_LINK_FRAMEWORKS $PL_LINKER_FLAGS -o "./../out/example_basic_6.dylib"
781+
782+
# check build status
783+
if [ $? -ne 0 ]
784+
then
785+
PL_RESULT=${BOLD}${RED}Failed.${NC}
786+
fi
787+
788+
# print results
789+
echo ${CYAN}Results: ${NC} ${PL_RESULT}
790+
echo ${CYAN}~~~~~~~~~~~~~~~~~~~~~~${NC}
791+
714792
#~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
715793

716794
PL_RESULT=${BOLD}${GREEN}Successful.${NC}

examples/build_win32.bat

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
@if exist "../out/example_basic_3_*.pdb" del "..\out\example_basic_3_*.pdb"
8686
@if exist "../out/example_basic_4.dll" del "..\out\example_basic_4.dll"
8787
@if exist "../out/example_basic_4_*.pdb" del "..\out\example_basic_4_*.pdb"
88+
@if exist "../out/example_basic_6.dll" del "..\out\example_basic_6.dll"
89+
@if exist "../out/example_basic_6_*.pdb" del "..\out\example_basic_6_*.pdb"
8890
@if exist "../out/example_gfx_0.dll" del "..\out\example_gfx_0.dll"
8991
@if exist "../out/example_gfx_0_*.pdb" del "..\out\example_gfx_0_*.pdb"
9092
@if exist "../out/example_gfx_1.dll" del "..\out\example_gfx_1.dll"
@@ -258,6 +260,38 @@ cl %PL_INCLUDE_DIRECTORIES% %PL_DEFINES% %PL_COMPILER_FLAGS% %PL_SOURCES% -Fe"..
258260

259261
@del "..\out\*.obj" > nul 2> nul
260262

263+
::~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
264+
265+
@set PL_DEFINES=-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG
266+
@set PL_INCLUDE_DIRECTORIES=-I"../examples" -I"../editor" -I"../src" -I"../shaders" -I"../libs" -I"../extensions" -I"../out" -I"../dependencies/stb" -I"../dependencies/imgui"
267+
@set PL_LINK_DIRECTORIES=-LIBPATH:"../out"
268+
@set PL_COMPILER_FLAGS=-Zc:preprocessor -nologo -std:c11 -W4 -WX -wd4201 -wd4100 -wd4996 -wd4505 -wd4189 -wd5105 -wd4115 -permissive- -Od -MDd -Zi
269+
@set PL_LINKER_FLAGS=-noimplib -noexp -incremental:no
270+
@set PL_SOURCES="example_basic_6.c"
271+
272+
:: run compiler (and linker)
273+
@echo.
274+
@echo Step: example_basic_6
275+
@echo ~~~~~~~~~~~~~~~~~~~~~~
276+
@echo Compiling and Linking...
277+
cl %PL_INCLUDE_DIRECTORIES% %PL_DEFINES% %PL_COMPILER_FLAGS% %PL_SOURCES% -Fe"../out/example_basic_6.dll" -Fo"../out/" -LD -link %PL_LINKER_FLAGS% -PDB:"../out/example_basic_6_%random%.pdb" %PL_LINK_DIRECTORIES%
278+
279+
:: check build status
280+
@set PL_BUILD_STATUS=%ERRORLEVEL%
281+
282+
:: failed
283+
@if %PL_BUILD_STATUS% NEQ 0 (
284+
@echo Compilation Failed with error code: %PL_BUILD_STATUS%
285+
@set PL_RESULT=Failed.
286+
goto Cleanupdebug
287+
)
288+
289+
:: print results
290+
@echo Result:  %PL_RESULT%
291+
@echo ~~~~~~~~~~~~~~~~~~~~~~
292+
293+
@del "..\out\*.obj" > nul 2> nul
294+
261295
::~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
262296

263297
@set PL_DEFINES=-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG
@@ -470,6 +504,8 @@ goto ExitLabel
470504
@if exist "../out/example_basic_3_*.pdb" del "..\out\example_basic_3_*.pdb"
471505
@if exist "../out/example_basic_4.dll" del "..\out\example_basic_4.dll"
472506
@if exist "../out/example_basic_4_*.pdb" del "..\out\example_basic_4_*.pdb"
507+
@if exist "../out/example_basic_6.dll" del "..\out\example_basic_6.dll"
508+
@if exist "../out/example_basic_6_*.pdb" del "..\out\example_basic_6_*.pdb"
473509
@if exist "../out/example_gfx_0.dll" del "..\out\example_gfx_0.dll"
474510
@if exist "../out/example_gfx_0_*.pdb" del "..\out\example_gfx_0_*.pdb"
475511
@if exist "../out/example_gfx_1.dll" del "..\out\example_gfx_1.dll"
@@ -643,6 +679,38 @@ cl %PL_INCLUDE_DIRECTORIES% %PL_DEFINES% %PL_COMPILER_FLAGS% %PL_SOURCES% -Fe"..
643679

644680
@del "..\out\*.obj" > nul 2> nul
645681

682+
::~~~~~~~~~~~~~~~~~~~~~~~~~~ example_basic_6 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~
683+
684+
@set PL_DEFINES=-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG
685+
@set PL_INCLUDE_DIRECTORIES=-I"../examples" -I"../editor" -I"../src" -I"../shaders" -I"../libs" -I"../extensions" -I"../out" -I"../dependencies/stb" -I"../dependencies/imgui"
686+
@set PL_LINK_DIRECTORIES=-LIBPATH:"../out"
687+
@set PL_COMPILER_FLAGS=-Zc:preprocessor -nologo -std:c11 -W4 -WX -wd4201 -wd4100 -wd4996 -wd4505 -wd4189 -wd5105 -wd4115 -permissive- -O2 -MD
688+
@set PL_LINKER_FLAGS=-noimplib -noexp -incremental:no
689+
@set PL_SOURCES="example_basic_6.c"
690+
691+
:: run compiler (and linker)
692+
@echo.
693+
@echo Step: example_basic_6
694+
@echo ~~~~~~~~~~~~~~~~~~~~~~
695+
@echo Compiling and Linking...
696+
cl %PL_INCLUDE_DIRECTORIES% %PL_DEFINES% %PL_COMPILER_FLAGS% %PL_SOURCES% -Fe"../out/example_basic_6.dll" -Fo"../out/" -LD -link %PL_LINKER_FLAGS% -PDB:"../out/example_basic_6_%random%.pdb" %PL_LINK_DIRECTORIES%
697+
698+
:: check build status
699+
@set PL_BUILD_STATUS=%ERRORLEVEL%
700+
701+
:: failed
702+
@if %PL_BUILD_STATUS% NEQ 0 (
703+
@echo Compilation Failed with error code: %PL_BUILD_STATUS%
704+
@set PL_RESULT=Failed.
705+
goto Cleanuprelease
706+
)
707+
708+
:: print results
709+
@echo Result:  %PL_RESULT%
710+
@echo ~~~~~~~~~~~~~~~~~~~~~~
711+
712+
@del "..\out\*.obj" > nul 2> nul
713+
646714
::~~~~~~~~~~~~~~~~~~~~~~~~~~~ example_gfx_0 | release ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
647715

648716
@set PL_DEFINES=-D_USE_MATH_DEFINES -DPL_PROFILING_ON -DPL_ALLOW_HOT_RELOAD -DPL_ENABLE_VALIDATION_LAYERS -DPL_CONFIG_DEBUG

0 commit comments

Comments
 (0)