struct Gloop::Capability

Overview

Reference to an OpenGL capability for a context.

Included Modules

Defined in:

gloop/capability.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Context, value : Enum) #

Creates a reference to an OpenGL capability for a context.


[View source]

Instance Method Detail

def disable : Nil #

Disables this capability.

  • OpenGL function: glDisable
  • OpenGL version: 2.0

[View source]
def enable : Nil #

Enables this capability.

  • OpenGL function: glEnable
  • OpenGL version: 2.0

[View source]
def enabled=(flag) #

Enables or disables this capability based on a given flag.

  • OpenGL function: glEnable, glDisable
  • OpenGL version: 2.0

[View source]
def enabled? #

Checks if this capability is enabled.

  • OpenGL function: glIsEnabled
  • OpenGL version: 2.0

[View source]
def to_unsafe #

Converts to an OpenGL enum.


[View source]