SLProject 4.0.000
SLGLAttribute Struct Reference

Struct for vertex attribute information. More...

#include <SLGLVertexBuffer.h>

Public Attributes

SLGLAttributeType type
 type of vertex attribute More...
 
SLint elementSize
 size of attribute element (SLVec3f has 3) More...
 
SLGLBufferType dataType
 
SLuint offsetBytes
 Data Type (BT_float, BT_ubyte,...) More...
 
SLuint bufferSizeBytes
 size of the attribute part in the buffer More...
 
void * dataPointer
 pointer to the attributes source data More...
 
SLint location
 GLSL input variable location index. More...
 

Detailed Description

Struct for vertex attribute information.

Member Data Documentation

◆ bufferSizeBytes

SLuint SLGLAttribute::bufferSizeBytes

size of the attribute part in the buffer

◆ dataPointer

void* SLGLAttribute::dataPointer

pointer to the attributes source data

◆ dataType

SLGLBufferType SLGLAttribute::dataType

◆ elementSize

SLint SLGLAttribute::elementSize

size of attribute element (SLVec3f has 3)

◆ location

SLint SLGLAttribute::location

GLSL input variable location index.

◆ offsetBytes

SLuint SLGLAttribute::offsetBytes

Data Type (BT_float, BT_ubyte,...)

offset of the attribute data in the buffer

◆ type

SLGLAttributeType SLGLAttribute::type

type of vertex attribute


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