struct Gloop::VertexArray::Attributes

Overview

Information about all of the attributes 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/attributes.cr

Constructors

Instance Method Summary

Constructor Detail

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

Creates a references to the attributes for a vertex array.


[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_ATTRIBS
  • OpenGL version: 3.0

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

Retrieves an attribute from the vertex array.


[View source]