sort, reorder vectors and eigen (dynamic) matrices like matlabs sort (with example) function to retrieve shader uniform names and locations, function to report open gl errors to stderr example that prints opengl version and glsl version,
16 lines
284 B
Plaintext
16 lines
284 B
Plaintext
This is a simple example program that creates a dummy GLUT window to get a
|
|
valid opengl context then print the glsl version string
|
|
|
|
|
|
To Build:
|
|
make
|
|
|
|
To Run:
|
|
./example
|
|
|
|
Example Run #1:
|
|
Issuing:
|
|
./example
|
|
should produce something like:
|
|
GL_SHADING_LANGUAGE_VERSION: 1.20
|