-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_glad.bat
More file actions
69 lines (62 loc) · 2.09 KB
/
setup_glad.bat
File metadata and controls
69 lines (62 loc) · 2.09 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
chcp 65001 >nul
echo GLAD Setup Helper
echo =================
echo.
echo This script will help you set up GLAD for OpenGL development.
echo.
echo Steps to set up GLAD:
echo 1. Go to https://glad.dav1d.de/
echo 2. Configure with these settings:
echo - Language: C/C++
echo - Specification: OpenGL
echo - API version: 3.3 or higher
echo - Profile: Core
echo - Check "Generate a loader"
echo 3. Click "Generate" and download the zip file
echo 4. Extract the zip file
echo 5. Copy files to this project:
echo.
echo From GLAD zip: To this project:
echo include/glad/ libs/glad/include/glad/
echo include/KHR/ libs/glad/include/KHR/
echo src/glad.c libs/glad/src/glad.c
echo.
REM Create directory structure
echo Creating directory structure...
if not exist "libs" mkdir libs
if not exist "libs\glad" mkdir libs\glad
if not exist "libs\glad\include" mkdir libs\glad\include
if not exist "libs\glad\src" mkdir libs\glad\src
echo.
echo Directory structure created:
echo libs/
echo ├── glad/
echo │ ├── include/ ^(place GLAD headers here^)
echo │ └── src/ ^(place glad.c here^)
echo.
REM Check if GLAD files exist
if exist "libs\glad\src\glad.c" (
echo ✓ GLAD source file found: libs\glad\src\glad.c
) else (
echo ✗ GLAD source file NOT found: libs\glad\src\glad.c
)
if exist "libs\glad\include\glad\glad.h" (
echo ✓ GLAD header file found: libs\glad\include\glad\glad.h
) else (
echo ✗ GLAD header file NOT found: libs\glad\include\glad\glad.h
)
if exist "libs\glad\include\KHR\khrplatform.h" (
echo ✓ KHR header file found: libs\glad\include\KHR\khrplatform.h
) else (
echo ✗ KHR header file NOT found: libs\glad\include\KHR\khrplatform.h
)
echo.
if exist "libs\glad\src\glad.c" if exist "libs\glad\include\glad\glad.h" if exist "libs\glad\include\KHR\khrplatform.h" (
echo ✓ All GLAD files are properly installed!
echo You can now run build.bat to compile the project.
) else (
echo ✗ Some GLAD files are missing. Please follow the setup instructions above.
)
echo.
pause