Cocos2d-x  v3.15
VertexAttrib Struct Reference

VertexAttrib is a structure to encapsulate data got from glGetActiveAttrib. More...

Public Attributes

GLuint index
 Index of attribute, start from 0. More...
 
GLint size
 Number of Data type in the attribute, could range from 0-4. More...
 
GLenum type
 Data type of the attribute, could be GL_FLOAT, GL_UNSIGNED_BYTE etc. More...
 
std::string name
 The string name in vertex shader. More...
 

Detailed Description

VertexAttrib is a structure to encapsulate data got from glGetActiveAttrib.

Member Data Documentation

◆ index

GLuint index

Index of attribute, start from 0.

◆ size

GLint size

Number of Data type in the attribute, could range from 0-4.

◆ type

GLenum type

Data type of the attribute, could be GL_FLOAT, GL_UNSIGNED_BYTE etc.

◆ name

std::string name

The string name in vertex shader.


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