https://github.com/inokinoki/inoki-egl-playground
https://github.com/inokinoki/inoki-egl-playground
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/inokinoki/inoki-egl-playground
- Owner: Inokinoki
- Created: 2020-12-10T21:33:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-12T15:28:35.000Z (over 5 years ago)
- Last Synced: 2025-02-09T08:33:34.862Z (over 1 year ago)
- Language: C
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Inoki's EGL Playground
EGL™ is an interface between Khronos rendering APIs such as OpenGL ES or OpenVG and the underlying native platform window system.
There are some examples for EGL. Notice that this playground just gives an overview of EGL. For further information, you can access [EGL Overview](https://www.khronos.org/egl).
## How to use
The default targets are just for no-window API tests. To build them, use:
```sh
make
```
This will build:
- `egl-query.out` demonstrates a query of EGL capacities in your system;
- `egl-configuration.out` lists available configurations of EGL;
- `egl-surface-n-context.out` creates a PBuffer (offscreen rendering) surface and a context for that surface.
To build the EGL x Wayland example
```sh
make egl-wayland-surface.out
```
This will build a program which creates a black surface by communicating with the wayland compositor.
For X11 user, build:
```sh
make egl-x-surface.out
```
This program creates a black surface by communicating with X Window system.
## TODO
- Write a tutorial
- Show a triangle in window with OpenGL ES
## References
1. EGL Overview https://www.khronos.org/egl
2. Programming wayland clients https://jan.newmarch.name/Wayland/index.html