Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
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...
 
var index
 Index of attribute, start from 0. More...
 
local index
 Index of attribute, start from 0. More...
 
GLint size
 Number of Data type in the attribute, could range from 0-4. More...
 
var size
 Number of Data type in the attribute, could range from 0-4. More...
 
local 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...
 
var name
 The string name in vertex shader. More...
 
local name
 The string name in vertex shader. More...
 

Detailed Description

VertexAttrib is a structure to encapsulate data got from glGetActiveAttrib.

Member Data Documentation

GLuint index

Index of attribute, start from 0.

var index

Index of attribute, start from 0.

local index

Index of attribute, start from 0.

GLint size

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

var size

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

local size

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

GLenum type

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

var type

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

local type

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

std::string name

The string name in vertex shader.

var name

The string name in vertex shader.

local name

The string name in vertex shader.


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