SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
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...
 
voiddataPointer
 pointer to the attributes source data More...
 
SLint location
 GLSL input variable location index. More...
 

Detailed Description

Struct for vertex attribute information.

Definition at line 21 of file SLGLVertexBuffer.h.

Member Data Documentation

◆ bufferSizeBytes

SLuint SLGLAttribute::bufferSizeBytes

size of the attribute part in the buffer

Definition at line 27 of file SLGLVertexBuffer.h.

◆ dataPointer

void* SLGLAttribute::dataPointer

pointer to the attributes source data

Definition at line 28 of file SLGLVertexBuffer.h.

◆ dataType

SLGLBufferType SLGLAttribute::dataType

Definition at line 25 of file SLGLVertexBuffer.h.

◆ elementSize

SLint SLGLAttribute::elementSize

size of attribute element (SLVec3f has 3)

Definition at line 24 of file SLGLVertexBuffer.h.

◆ location

SLint SLGLAttribute::location

GLSL input variable location index.

Definition at line 29 of file SLGLVertexBuffer.h.

◆ offsetBytes

SLuint SLGLAttribute::offsetBytes

Data Type (BT_float, BT_ubyte,...)

offset of the attribute data in the buffer

Definition at line 26 of file SLGLVertexBuffer.h.

◆ type

SLGLAttributeType SLGLAttribute::type

type of vertex attribute

Definition at line 23 of file SLGLVertexBuffer.h.


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