Module FBO
FBO
See also:
Functions
- gl.CreateFBO
- gl.DeleteFBO
- gl.IsValidFBO
- gl.ActiveFBO
- gl.BlitFBO
- needs
GLEW_EXT_framebuffer_blit
- gl.BlitFBO
- needs
GLEW_EXT_framebuffer_blit
Tables
- attachment
- fbo
- User Data FBO
Functions
gl.CreateFBO(data)
Parameters:
- data
-
depth
attachment -
stencil
attachment -
color0
attachment -
color1
attachment -
color2
attachment -
colorn
attachment -
color15
attachment -
drawbuffers
table{ GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT3_EXT, ..}
-
gl.DeleteFBO(fbo)
gl.IsValidFBO(fbo[, target])
gl.ActiveFBO(fbo[, target[, identities[, lua_function[, arg1[, arg2[, argn]]]]]])
Parameters:
-
fbo
fbo -
target
number (optional) -
identities
bool (optional) -
lua_function
func (optional) -
arg1
(optional) -
arg2
(optional) -
argn
(optional)
gl.BlitFBO(x0Src, y0Src, x1Src, y1Src, x0Dst, y0Dst, x1Dst, y1Dst[, mask=GL_COLOR_BUFFER_BIT[, filter=GL_NEAREST]])
needs `GLEW_EXT_framebuffer_blit`
Parameters:
-
x0Src
number -
y0Src
number -
x1Src
number -
y1Src
number -
x0Dst
number -
y0Dst
number -
x1Dst
number -
y1Dst
number -
mask
number (default GL_COLOR_BUFFER_BIT) -
filter
number (default GL_NEAREST)
gl.BlitFBO(fboSrc, x0Src, y0Src, x1Src, y1Src, fboDst, x0Dst, y0Dst, x1Dst, y1Dst[, mask=GL_COLOR_BUFFER_BIT[, filter=GL_NEAREST]])
needs `GLEW_EXT_framebuffer_blit`
Parameters:
Tables
attachment
attachment ::= luaTex or `RBO.rbo` or nil or { luaTex [, num target [, num level ] ] }
fbo
User Data FBO
Fields:
-
depth
attachment -
stencil
attachment -
color0
attachment -
color1
attachment -
color2
attachment -
colorn
attachment -
color15
attachment -
drawbuffers
table{ GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT3_EXT, ..}
-
readbuffer
tableGL_COLOR_ATTACHMENT0_EXT