CUGL 3.0
Cornell University Game Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
cugl::graphics::VertexBuffer::AttribData Class Reference

#include <CUVertexBuffer.h>

Public Attributes

GLint size
 
GLenum type
 
GLboolean norm
 
GLsizeiptr offset
 

Detailed Description

A data type for keeping track of attribute data.

This class is necessary since we are allowing the vertex buffer to specify attributes before hooking it up to the shader. This type is used to initialize the attribute hooks as soon as the shader is attached.

Member Data Documentation

◆ norm

GLboolean cugl::graphics::VertexBuffer::AttribData::norm

Whether the attribute is normalized (floating points only)

◆ offset

GLsizeiptr cugl::graphics::VertexBuffer::AttribData::offset

The offset of the attribute in the vertex buffer

◆ size

GLint cugl::graphics::VertexBuffer::AttribData::size

The attribute size

◆ type

GLenum cugl::graphics::VertexBuffer::AttribData::type

The attribute type (as specified in OpenGL)


The documentation for this class was generated from the following file: