Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAILuaObject.
Function List | |
declareAttribute | |
declareColor | |
declareCoord | |
declareNormal | |
declareUV |
Declare a custom attribute (for use with programmable pipeline).
function declareAttribute ( MOAIVertexFormat self, number index, number type, number size [, boolean normalized ] )
self | ( MOAIVertexFormat ) |
index | ( number ) Default value is 1. |
type | ( number ) Data type of component elements. See OpenGL ES documentation. |
size | ( number ) Number of elements. See OpenGL ES documentation. |
normalized | ( boolean ) Optional. See OpenGL ES documentation. |
Declare a vertex color.
function declareColor ( MOAIVertexFormat self, number index, number type )
self | ( MOAIVertexFormat ) |
index | ( number ) |
type | ( number ) Data type of component elements. See OpenGL ES documentation. |
Declare a vertex coordinate.
function declareCoord ( MOAIVertexFormat self, number index, number type, number size )
self | ( MOAIVertexFormat ) |
index | ( number ) |
type | ( number ) Data type of coordinate elements. See OpenGL ES documentation. |
size | ( number ) Number of coordinate elements. See OpenGL ES documentation. |
Declare a vertex normal.
function declareNormal ( MOAIVertexFormat self, number index, number type )
self | ( MOAIVertexFormat ) |
index | ( number ) |
type | ( number ) Data type of normal elements. See OpenGL ES documentation. |
Declare a vertex texture coordinate.
function declareUV ( MOAIVertexFormat self, number index, number type, number size )
self | ( MOAIVertexFormat ) |
index | ( number ) |
type | ( number ) Data type of texture coordinate elements. See OpenGL ES documentation. |
size | ( number ) Number of texture coordinate elements. See OpenGL ES documentation. |