struct Gloop::ExtensionList
- Gloop::ExtensionList
- Struct
- Value
- Object
Overview
Indexed access to all extensions supported by an OpenGL context.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
- Indexable(Gloop::Extension)
Defined in:
gloop/extension_list.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#size
Retrieves the number of extensions.
-
#unsafe_fetch(index : Int)
Retrieves the extension at the specified index.
Constructor Detail
Instance Method Detail
def size
#
Retrieves the number of extensions.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_NUM_EXTENSIONS
- OpenGL version: 2.0
def unsafe_fetch(index : Int)
#
Retrieves the extension at the specified index.
This method does not perform any bounds checking.
- OpenGL function:
glGetStringi
- OpenGL enum:
GL_EXTENSIONS
- OpenGL version: 3.0