Class: rcmdfbobind

Binds a renderfbo (if capability exists). Fbos allow enhanced render-to-texture operation, and off-screen rendering to large buffers. Once you start using renderfbos it is heavily recommended to check your setup for the whole l3dlist with l3dlist.fbotest. An fbo setup consists of rcmdfbobind (for binding), rcmdfbotex or rcmdfborb for attaching renderbuffers/textures and finally the rcmdfbodrawto command which specifies which assignment the color is rendered to.

Hierarchy

o-+ renderinterface
  o-+ rcmd
    o-+ rcmdfbobind

Methods:

new ()
returns: (rcmdfbobind)
returns the rcmd for fbo binding. Make sure to setup the fbo to bind.
readbuffer (rcmdfbobind, [boolean readbuffer])
returns: ([boolean readbuffer])
returns or sets whether target is readbuffer binding, or drawbuffer. Readbuffer functionality requires extra capability and by default is off. Viewportchange is ignored when readbuffer is true.
setup (rcmdfbobind,[renderfbo,[boolean viewportchange]])
returns: ([renderfbo, boolean viewportchange])
returns or sets renderfbo, must be defined before use. Viewportchange means that active viewport dimensions are changed to fbo dimension (0,0, fbowidth, fboheight) and is by default true. l3dviews viewport dimensions become active again once fbo is unbound.

Inherited Methods:

From rcmd

flag