File: README.md

package info (click to toggle)
0ad 0.0.26-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 130,460 kB
  • sloc: cpp: 261,824; ansic: 198,392; javascript: 19,067; python: 14,557; sh: 7,629; perl: 4,072; xml: 849; makefile: 741; java: 533; ruby: 229; php: 190; pascal: 30; sql: 21; tcl: 4
file content (40 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
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
## Introduction

This folder contains the files generated by the glad GL loader for the game.

## Instructions

Download glad v2:
```sh
git clone https://github.com/Dav1dde/glad.git -b glad2
```

Install the python dependencies
```sh
cd glad
pip install -r requirements.txt
```

Build the source files for all four backends with their respective extensions
- GL
    ```sh
    python -m glad --api="gl:core=2.1" --extensions="../extensions/gl.txt"  --out-path="../"
    ```
- GLES2
    ```sh
    python -m glad --api="gles2=2.0" --extensions="../extensions/gles2.txt"  --out-path="../"
    ```
- GLX
    ```sh
    python -m glad --api="glx=1.4" --extensions="../extensions/glx.txt"  --out-path="../"
    ```
- WGL
    ```sh
    python -m glad --api="wgl=1.0" --extensions="../extensions/wgl.txt"  --out-path="../"
    ```
- EGL
    ```sh
    python -m glad --api="egl=1.5" --extensions="../extensions/egl.txt"  --out-path="../"
    ```

Rename all files to .cpp to prevent compilation warnings