# Class: rcmdr2vb

Allows storage of processed vertices into a vidbuffer. All vertices are captured in the order as they are drawn.

## Hierarchy

    o-+ renderinterface
      o-+ rcmd
        o-+ rcmdr2vb

## Methods:

### Method overview:

- attrib
- buffer
- capture
- drawmesh
- lastcaptured
- new
- noraster
- numattrib

new ()
  returns: (rcmdr2vb)
  returns the rcmd
attrib (rcmdr2vb,int index, string name, int components)
  returns: ()
  sets which vertex attribute and how many components shall be read. Use the Cg semantic names (eg. 'TEXCOORD3'). Components can be 1-4 for POSITION,TEXCOORD and ATTR and 1 for rest. The index defines the ordered index how you want to store the output. index must be 0-15.
buffer (rcmdr2vb,[vidbuffer,[int offset],[size]])
  returns: ([vidbuffer,offset,size])
  returns or sets vidbuffer used for storage. size of 0 means rest is used.
capture (rcmdr2vb,[boolean])
  returns: ([boolean])
  sets or gets if the number of captured primitives shall be captured. (default is false).
drawmesh (rcmdr2vb,[rcmddrawmesh])
  returns: ([rcmddrawmesh])
  returns or sets the mesh to be drawn.
lastcaptured (rcmdr2vb)
  returns: ([int])
  returns number of captured vertices in last frame (if capture was active).
noraster (rcmdr2vb,[boolean])
  returns: ([boolean])
  sets or gets whether rasterization is disabled. (default true, ie. nothing is drawn to framebuffer.)
numattrib (rcmdr2vb,[int])
  returns: ([int])
  sets or gets how many attribs are read.

## Inherited Methods:

### From rcmd

flag