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.
usermeshvbo (rcmddraw2dmesh, vertextype, int numverts, numindices, vidbuffer vbo, [int vbooffset], [vidbuffer ibo], [int ibooffset])
returns: ()
gives the l3dprimitive a unique mesh, whose data comes from the vidbuffers. Uses the byte offset passed to the buffers or (-1) allocates from the buffer. Allocation is useful if multiple meshes shall reside in same vidbuffers, manual offset is needed if you want to make use of instancing the same buffer content multiple time. Same restrictions as in regular usermesh.

Inherited Methods:

From rcmd

flag