Programowanie w systemie UNIX/OpenGL
wersje Edytuj
- legacy
- modern[1]
Języki Edytuj
Programowanie OpenGL z użyciem:
testy Edytuj
- glxinfo
- glxinfo | grep "OpenGL version"
ubuntu-drivers devices
Przykładowy wynik:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001184sv00001458sd00003603bc03sc00i00 vendor : NVIDIA Corporation model : GK104 [GeForce GTX 770] driver : nvidia-driver-470 - distro non-free recommended driver : nvidia-driver-390 - distro non-free driver : nvidia-driver-450-server - distro non-free driver : nvidia-driver-470-server - distro non-free driver : nvidia-driver-418-server - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin
GUI Edytuj
OpenGL Mathematics Edytuj
- glm [2] OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.
- imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics
Programy Edytuj
Dokumentacja Edytuj
- OpenGL Shading Language
- docs.gl
- Red book[3]
- Blue book[4]
- ogldev - Modern OpenGL Tutorials In C++ on Ubuntu by Etay Meiri
- The Book of Shaders by Patricio Gonzalez Vivo and Jen Lowe
OpenGL is right handed in object space and world space. But in window space (aka screen space) we are suddenly left handed.[5]
Formaty pixeli Edytuj
Wyliczeniowe typy pixeli w OpenGL:[6]
- GL_(UNSIGNED_)BYTE: 1 byte
- GL_(UNSIGNED_)SHORT: 2 bytes
- GL_(UNSIGNED_)INT: 4 bytes
- GL_HALF_FLOAT: 2 bytes
- GL_FLOAT: 4 bytes
przykłady Edytuj
- tinyrender
- tinyraytracer
- expressions: a collection of expressions that can be used with source code for surface and displacement shaders.
- noise