Docs @ Psychtoolbox Wiki : moglCreateFBO

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

moglCreateFBO

PsychtoolboxPsychOpenGL

[fbo , texids] = moglCreateFBO(width, height [, nrbuffers, layers, format, withdepth, withstencil])

moglCreateFBO creates a standard OpenGL Framebuffer Object, suitable for
computer vision and other GPGPU tasks and returns a handle to it.

The FBO will have a size of width x height pixels and its 'nrbuffers'
color buffers will have textures with 'layers' layers (default = 4 for RGBA)
attached.
'format' specifies the data format. It defaults to single precision
floating point resolution (32 bit float). If 'withdepth' > 0 then a
depth buffer gets attached as well. If 'withstencil' > 0 then a stencil
drawable gets attached as well.

The function will create appropriate textures and renderbuffers, create
an appropriate FBO and attach the textures and renderbuffers. After
validation, the handle to the FBO is returned.




Path   Retrieve current version of moglCreateFBO.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOpenGL/moglCreateFBO.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0168 seconds