-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_examples.bat
More file actions
52 lines (47 loc) · 1022 Bytes
/
run_examples.bat
File metadata and controls
52 lines (47 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
chcp 65001 >nul
echo OpenGL Examples Runner
echo =====================
cd build\Release
if not exist "01_window.exe" (
echo Example programs are not built yet.
echo Please run build.bat first to build the project.
pause
exit /b 1
)
:menu
echo.
echo Select an example to run:
echo 1. Basic Window ^(01_window.exe^)
echo 2. First Triangle ^(02_triangle.exe^)
echo 3. Shaders and Colors ^(03_shaders.exe^)
echo 4. Textures and Patterns ^(04_textures.exe^)
echo 5. Exit
echo.
set /p choice="Choose (1-5): "
if "%choice%"=="1" (
echo Running basic window example...
01_window.exe
goto menu
)
if "%choice%"=="2" (
echo Running triangle example...
02_triangle.exe
goto menu
)
if "%choice%"=="3" (
echo Running shader example...
03_shaders.exe
goto menu
)
if "%choice%"=="4" (
echo Running texture example...
04_textures.exe
goto menu
)
if "%choice%"=="5" (
echo Exiting program.
exit /b 0
)
echo Invalid choice. Please try again.
goto menu