struct Gloop::ShadingLanguageVersionList
- Gloop::ShadingLanguageVersionList
- Struct
- Value
- Object
Overview
Indexed access to all GLSL versions supported by an OpenGL context.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
- Indexable(String)
Defined in:
gloop/shading_language_version_list.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#size
Retrieves the number of supported GLSL versions.
-
#unsafe_fetch(index : Int)
Retrieves the shading version at the specified index.
Constructor Detail
Instance Method Detail
def size
#
Retrieves the number of supported GLSL versions.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_NUM_SHADING_LANGUAGE_VERSIONS
- OpenGL version: 4.3
def unsafe_fetch(index : Int)
#
Retrieves the shading version at the specified index.
This method does not perform any bounds checking.
- OpenGL function:
glGetStringi
- OpenGL enum:
GL_SHADING_LANGAUGE_VERSION
- OpenGL version: 4.3