cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VertexAttrib Struct Reference

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

#include <CCGLProgram.h>

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...
 
var type
 Data type of the attribute, could be GL_FLOAT, GL_UNSIGNED_BYTE etc. More...
 
local 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

GLuint index

Index of attribute, start from 0.

var index

Index of attribute, start from 0.

local index

Index of attribute, start from 0.

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.

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.


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