struct Gloop::VertexArray::Bindings

Overview

Information about all of the binding slots in a vertex array.

This type uses direct state access (DSA). Ensure the OpenGL context supports this functionality prior to use.

Included Modules

Defined in:

gloop/vertex_array/bindings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Context, name : Name) #

Creates a references to the binding slots.


[View source]

Instance Method Detail

def size #

Retrieves the maximum number of attributes a vertex array can have.

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

[View source]
def unsafe_fetch(index : Int) #

Retrieves a binding slot from the vertex array.


[View source]