Class: renderfbo

The framebufferobject (fbo) can be used for advanced off-screen rendering effects. For this class you need special capability. When not using fbos rendering is done to the windows's backbuffer. The 'fbo' rcmds can be used to make use of it.

Hierarchy

o-+ renderinterface
  o-+ renderfbo

Methods:

Method overview:


new (int width,height,[boolean windowsized])
returns: (renderfbo)
returns the new created fbo. If windowsized is true width and height are ignored and current window resolution is taken and fbo is resized on window.size changes, too.
applyattach (renderfbo,[rcmdfbotex],[rcmdfborb])
returns: ()
runs the rcmds and applies there attach information (run resetattach before to enforce setting). Passing a illegal type will ignore either.
check (renderfbo)
returns: ([string error])
checks for completeness and returns error string if issue was found with current attaches.
resetattach (renderfbo)
returns: ()
resets the attach bind cache. Useful if you reloaded assigned textures. l3dlist.fbotest calls this as well.
size (renderfbo,[int width,height,[boolean windowsized ]])
returns: ([int width,height, boolean windowsized])
returns or sets fbo size. All attachments must have equal size.

Inherited Methods: