Class: rcmddraw2dmesh

Draws a 2D 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.

Hierarchy

o-+ renderinterface
  o-+ rcmd
    o-+ rcmddraw2dmesh

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
matsurface (rcmddraw2dmesh,[matsurface])
returns: ([matsurface])
returns or sets matsurface
pos (rcmddraw2dmesh,[float x,y,z])
returns: ([float x,y,z])
returns or sets. xy Only used when autosize is 0. Coordinates in OpenGL (0,0) = bottomleft of current l3dview
quadmesh (rcmddraw2dmesh)
returns: ()
deletes usermesh and sets quadmesh again.
size (rcmddraw2dmesh,[float x,y,z])
returns: ([float x,y,z])
returns or sets. xy Only used when autosize is 0. Coordinates in OpenGL (0,0) = bottomleft of current l3dview
usermesh (rcmddraw2dmesh, vertextype, int numverts, int numindices)
returns: ()
creates custom usermesh that can be filled using vertexarray and indexarray interfaces. Note that polygon winding is CCW.

Inherited Methods:

From rcmd

flag