Moai SDK  2.0
MOAIMesh Class Reference
+ Inheritance diagram for MOAIMesh:

Function List

setIndexBuffer
 
setPenWidth
 
setPrimType
 
- Function List inherited from MOAIDeck
getBounds
 

Detailed Description

Constants
MOAIMesh.GL_POINTS
MOAIMesh.GL_LINES
MOAIMesh.GL_TRIANGLES
MOAIMesh.GL_LINE_LOOP
MOAIMesh.GL_LINE_STRIP
MOAIMesh.GL_TRIANGLE_FAN
MOAIMesh.GL_TRIANGLE_STRIP

Function Documentation

setIndexBuffer

Set the index buffer to render.


function setIndexBuffer ( MOAIMesh self, MOAIGfxBuffer indexBuffer )

Parameters
MOAIMeshself
MOAIGfxBufferindexBuffer
Returns
nil
setPenWidth

Sets the pen with for drawing prims in this vertex buffer. Only valid with prim types GL_LINES, GL_LINE_LOOP, GL_LINE_STRIP.


function setPenWidth ( MOAIMesh self, number penWidth )

Parameters
MOAIMeshself
numberpenWidth
Returns
nil
setPrimType

Sets the prim type the buffer represents.


function setPrimType ( MOAIMesh self, number primType )

Parameters
MOAIMeshself
numberprimType One of MOAIMesh GL_POINTS, GL_LINES, GL_TRIANGLES, GL_LINE_LOOP, GL_LINE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP
Returns
nil