Vertex Attribute Value, which is an abstraction of VertexAttribute and data pointer.
More...
#include <CCGLProgramState.h>
|
void | setPointer (GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLvoid *pointer) |
| Set the data pointer, which is similar as glVertexAttribPointer. More...
|
|
var | setPointer ( var size, var type, var normalized, var stride, var pointer) |
| Set the data pointer, which is similar as glVertexAttribPointer. More...
|
|
local | setPointer ( local size, local type, local normalized, local stride, local pointer) |
| Set the data pointer, which is similar as glVertexAttribPointer. More...
|
|
void | setCallback (const std::function< void(VertexAttrib *)> &callback) |
| Set a user call back for set VertexAttrib array. More...
|
|
void | apply () |
| Apply the vertex attribute to the openGL pipeline. More...
|
|
|
| VertexAttribValue (VertexAttrib *vertexAttrib) |
| Constuctor and Destructor. More...
|
|
| VertexAttribValue ( var vertexAttrib) |
| Constuctor and Destructor. More...
|
|
| VertexAttribValue ( local vertexAttrib) |
| Constuctor and Destructor. More...
|
|
| VertexAttribValue () |
| ~VertexAttribValue () |
Vertex Attribute Value, which is an abstraction of VertexAttribute and data pointer.
Constuctor and Destructor.
vertexAttrib VertexAttrib from shader.
Constuctor and Destructor.
vertexAttrib VertexAttrib from shader.
Constuctor and Destructor.
vertexAttrib VertexAttrib from shader.
Apply the vertex attribute to the openGL pipeline.
Apply the vertex attribute to the openGL pipeline.
Apply the vertex attribute to the openGL pipeline.
void setCallback |
( |
const std::function< void(VertexAttrib *)> & |
callback | ) |
|
var setCallback |
( |
var |
callback | ) |
|
local setCallback |
( |
local |
callback | ) |
|
void setPointer |
( |
GLint |
size, |
|
|
GLenum |
type, |
|
|
GLboolean |
normalized, |
|
|
GLsizei |
stride, |
|
|
GLvoid * |
pointer |
|
) |
| |
Set the data pointer, which is similar as glVertexAttribPointer.
- Parameters
-
size | The number of type in the vertex attribute. |
type | The type of data in vertex attribute. |
normalized | If true, 0-255 data will be mapped to 0.0-1.0. |
stride | The number of bytes if an interleaved vertex array is used. 0 means array is not interleaved. |
pointer | The pointer to the vertex data. |
var setPointer |
( |
var |
size, |
|
|
var |
type, |
|
|
var |
normalized, |
|
|
var |
stride, |
|
|
var |
pointer |
|
) |
| |
Set the data pointer, which is similar as glVertexAttribPointer.
- Parameters
-
size | The number of type in the vertex attribute. |
type | The type of data in vertex attribute. |
normalized | If true, 0-255 data will be mapped to 0.0-1.0. |
stride | The number of bytes if an interleaved vertex array is used. 0 means array is not interleaved. |
pointer | The pointer to the vertex data. |
local setPointer |
( |
local |
size, |
|
|
local |
type, |
|
|
local |
normalized, |
|
|
local |
stride, |
|
|
local |
pointer |
|
) |
| |
Set the data pointer, which is similar as glVertexAttribPointer.
- Parameters
-
size | The number of type in the vertex attribute. |
type | The type of data in vertex attribute. |
normalized | If true, 0-255 data will be mapped to 0.0-1.0. |
stride | The number of bytes if an interleaved vertex array is used. 0 means array is not interleaved. |
pointer | The pointer to the vertex data. |
The documentation for this class was generated from the following file: