struct Gloop::Attributes

Overview

Information about all of the attributes in the currently bound vertex array.

This type should be used if direct state access (DSA) isn't available.

NOTE The currently bound vertex array is always referenced. If another vertex array is bound, then this will reference the newly bound instance.

Included Modules

Defined in:

gloop/attributes.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 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]