Class: rcmddrawmesh

Draws a mesh, be aware that mesh winding is opposite (CCW) of l2dnodes (CW). Positions and sizes are always in OpenGL coordinates (0,0) = bottom left. The l2dnodes' reference size system is not used. By default starts out as fullscreen quad, 2d mesh for orhtographic drawing.

Hierarchy

o-+ renderinterface
  o-+ rcmd
    o-+ rcmddrawmesh

Interfaces:

Methods:

Method overview:


new ()
returns: (rcmddraw2dmesh)
returns the rcmd
autosize (rcmddraw2dmesh,[int])
returns: ([int])
returns or sets. 0 off -1 viewsized. Default is -1
color (rcmddraw2dmesh,[float r,g,b,a])
returns: ([float r,g,b,a])
returns or sets color
matrix (rcmddraw2dmesh,[matrix4x4])
returns: ([matrix4x4])
returns or sets. Overwrites pos and is only used in non-orthographic.
matsurface (rcmddraw2dmesh,[matsurface])
returns: ([matsurface])
returns or sets matsurface
orthographic (rcmddraw2dmesh,[boolean])
returns: ([boolean])
returns or sets whether 2d orhographic projection should be used, or the current active camera. (defualt is true).
pos (rcmddraw2dmesh,[float x,y,z])
returns: ([float x,y,z])
returns or sets. Overwritten by matrix. xy Only used when autosize is 0 or non-orthographic. Coordinates in OpenGL (0,0) = bottomleft of current l3dview.
quadmesh (rcmddraw2dmesh)
returns: ()
deletes usermesh and sets quadmesh again.
rendermesh (rcmddraw2dmesh,[rendermesh])
returns: ([rendermesh])
gets or sets rendermesh. Get only works if a usermesh was created before or another rendermesh passed for useage.
size (rcmddraw2dmesh,[float x,y,z])
returns: ([float x,y,z])
returns or sets. xy Only used when autosize is 0 or non-orthographic. Coordinates in OpenGL (0,0) = bottomleft of current l3dview
usermesh (rcmddraw2dmesh, vertextype, int numverts, numindices, [vidbuffer vbo], [int vbooffset], [vidbuffer ibo], [int ibooffset])
returns: ()
creates inplace custom rendermesh (see rendermesh for details) Note that polygon winding is CCW.

Inherited Methods:

From rcmd

flag