struct Gloop::ExtensionList

Overview

Indexed access to all extensions supported by an OpenGL context.

Included Modules

Defined in:

gloop/extension_list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Gloop::Context) #

Creates a resource associated with a context.


[View source]

Instance Method Detail

def size #

Retrieves the number of extensions.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_NUM_EXTENSIONS
  • OpenGL version: 2.0

[View source]
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

[View source]