struct Gloop::Capability
- Gloop::Capability
- Struct
- Value
- Object
Overview
Reference to an OpenGL capability for a context.
Included Modules
Defined in:
gloop/capability.crConstructors
-
.new(context : Context, value : Enum)
Creates a reference to an OpenGL capability for a context.
Instance Method Summary
-
#disable : Nil
Disables this capability.
-
#enable : Nil
Enables this capability.
-
#enabled=(flag)
Enables or disables this capability based on a given flag.
-
#enabled?
Checks if this capability is enabled.
-
#to_unsafe
Converts to an OpenGL enum.
Constructor Detail
Creates a reference to an OpenGL capability for a context.
Instance Method Detail
def enabled=(flag)
#
Enables or disables this capability based on a given flag.
- OpenGL function:
glEnable
,glDisable
- OpenGL version: 2.0
def enabled?
#
Checks if this capability is enabled.
- OpenGL function:
glIsEnabled
- OpenGL version: 2.0