abstract struct Gloop::AttributePointer

Overview

Base type for all attribute pointer formats.

Describes the format of data in an vertex attribute.

Direct Known Subclasses

Defined in:

gloop/attribute_pointer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int32, stride : Int32 = 0, address : Size = 0) #

Creates the attribute format descriptor.


[View source]

Instance Method Detail

def address : Size #

Relative offset of the attribute's data from the start of the buffer.


[View source]
def size : Int32 #

Number of components in the attribute.

This is normally 1, 2, 3, or 4.


[View source]
def stride : Int32 #

Number of bytes to the next value for this attribute in the buffer's data.


[View source]