require-glsl-version ( version -- )


Vocabulary
opengl.capabilities

Inputs
versionA version string


Outputs
None

Word description
Throws an exception if has-glsl-version? returns false for version.

See also
require-gl-version, require-gl-extensions, require-gl-version-or-extensions, has-gl-version?, has-glsl-version?, has-gl-extensions?, has-gl-version-or-extensions?, gl-version, glsl-version, gl-extensions

Definition


: require-glsl-version ( version -- )
[ has-glsl-version? ] [
"Required GLSL version " % % " not supported (" %
glsl-version "(null)" or % " available)" %
] (require-gl) ;