Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIMesh Class Reference
Inheritance diagram for MOAIMesh:
MOAIDeck

List of all members.

Function List

  setIndexBuffer
  setPenWidth
  setPointSize
  setPrimType
  setVertexBuffer

Function Documentation

Set the index buffer to render.


function setIndexBuffer ( MOAIMesh self, MOAIIndexBuffer indexBuffer )
Parameters:
self ( MOAIMesh )
indexBuffer ( MOAIIndexBuffer )
Returns:
nil

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:
self ( MOAIMesh )
penWidth ( number )
Returns:
nil

Sets the point size for drawing prims in this vertex buffer. Only valid with prim types GL_POINTS.


function setPointSize ( MOAIMesh self, number pointSize )
Parameters:
self ( MOAIMesh )
pointSize ( number )
Returns:
nil

Sets the prim type the buffer represents.


function setPrimType ( MOAIMesh self, number primType )
Parameters:
self ( MOAIMesh )
primType ( number ) One of MOAIMesh GL_POINTS, GL_LINES, GL_TRIANGLES, GL_LINE_LOOP, GL_LINE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP
Returns:
nil

Set the vertex buffer to render.


function setVertexBuffer ( MOAIMesh self, MOAIVertexBuffer vertexBuffer )
Parameters:
self ( MOAIMesh )
vertexBuffer ( MOAIVertexBuffer )
Returns:
nil