struct Gloop::ShadingLanguageVersionList

Overview

Indexed access to all GLSL versions supported by an OpenGL context.

Included Modules

Defined in:

gloop/shading_language_version_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 supported GLSL versions.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_NUM_SHADING_LANGUAGE_VERSIONS
  • OpenGL version: 4.3

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

[View source]