Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/glad/README.md
Show All 12 Lines | |||||
```sh | ```sh | ||||
cd glad | cd glad | ||||
pip install -r requirements.txt | pip install -r requirements.txt | ||||
``` | ``` | ||||
Build the source files for all four backends with their respective extensions | Build the source files for all four backends with their respective extensions | ||||
- GL | - GL | ||||
```sh | ```sh | ||||
python -m glad --api="gl:core=2.1" --extensions="../extensions/gl.txt" --out-path="../" | python -m glad --api="gl:core=2.1" --extensions="../extensions/gl.txt" --out-path="../" c | ||||
``` | ``` | ||||
- GLES2 | - GLES2 | ||||
```sh | ```sh | ||||
python -m glad --api="gles2=2.0" --extensions="../extensions/gles2.txt" --out-path="../" | python -m glad --api="gles2=2.0" --extensions="../extensions/gles2.txt" --out-path="../" c | ||||
``` | ``` | ||||
- GLX | - GLX | ||||
```sh | ```sh | ||||
python -m glad --api="glx=1.4" --extensions="../extensions/glx.txt" --out-path="../" | python -m glad --api="glx=1.4" --extensions="../extensions/glx.txt" --out-path="../" c | ||||
``` | ``` | ||||
- WGL | - WGL | ||||
```sh | ```sh | ||||
python -m glad --api="wgl=1.0" --extensions="../extensions/wgl.txt" --out-path="../" | python -m glad --api="wgl=1.0" --extensions="../extensions/wgl.txt" --out-path="../" c | ||||
Stan: Why the ‘c’ ? | |||||
Done Inline ActionsIt's required, the last version provides code generation for C/C++ and Rust. vladislavbelov: It's required, the last version provides code generation for C/C++ and Rust. | |||||
``` | ``` | ||||
- EGL | - EGL | ||||
```sh | ```sh | ||||
python -m glad --api="egl=1.5" --extensions="../extensions/egl.txt" --out-path="../" | python -m glad --api="egl=1.5" --extensions="../extensions/egl.txt" --out-path="../" c | ||||
``` | ``` | ||||
Rename all files to .cpp to prevent compilation warnings | Rename all files to .cpp to prevent compilation warnings |
Wildfire Games · Phabricator
Why the ‘c’ ?