GLFilter

#GstGLFilter helps to implement simple OpenGL filter elements taking a single input and producing a single output with a #GstGLFramebuffer

Members

Functions

drawFullscreenQuad
void drawFullscreenQuad()

Render a fullscreen quad using the current GL state. The only GL state this modifies is the necessary vertex/index buffers and, if necessary, a Vertex Array Object for drawing a fullscreen quad. Framebuffer state, any shaders, viewport state, etc must be setup by the caller.

filterTexture
bool filterTexture(gst.buffer.Buffer input, gst.buffer.Buffer output)

Calls filter_texture vfunc with correctly mapped #GstGLMemorys

renderToTarget
bool renderToTarget(gstgl.glmemory.GLMemory input, gstgl.glmemory.GLMemory output, gstgl.types.GLFilterRenderFunc func)

Transforms input into output using func on through FBO.

renderToTargetWithShader
void renderToTargetWithShader(gstgl.glmemory.GLMemory input, gstgl.glmemory.GLMemory output, gstgl.glshader.GLShader shader)

Transforms input into output using shader with a FBO.

Inherited Members

From GLBaseFilter

findGlContext
bool findGlContext()
getGlContext
gstgl.glcontext.GLContext getGlContext()