between multiple OpenGL contexts.
gstgl.glframebuffer
Module for GLFramebuffer class
Types 3
A #GstGLFramebuffer represents and holds an OpenGL framebuffer object with it's associated attachments.
A #GstGLFramebuffer can be created with gstgl.glframebuffer.GLFramebuffer.new_ or gstgl.glframebuffer.GLFramebuffer.newWithDefaultDepth and bound with gstgl.glframebuffer.GLFramebuffer.bind. Other resources can be bound with gstgl.glframebuffer.GLFramebuffer.attach
Note
OpenGL framebuffers are not shareable resources so cannot be used
Methods
GLFramebuffer self()Returns `this`, for use in `with` statements.GLFramebufferGidBuilder builder()Get builder for [gstgl.glframebuffer.GLFramebuffer] Returns: New builder objectgstgl.glframebuffer.GLFramebuffer newWithDefaultDepth(gstgl.glcontext.GLContext context, uint width, uint height)This function will internally create an OpenGL framebuffer object and must be called on context's OpenGL thread.void attach(uint attachmentPoint, gstgl.glbase_memory.GLBaseMemory mem)attach mem to attachment_pointvoid bind()Bind fb into the current threadvoid getEffectiveDimensions(out uint width, out uint height)Retrieve the effective dimensions from the current attachments attached to fb.uint getId()Constructors
this(gstgl.glcontext.GLContext context)This function will internally create an OpenGL framebuffer object and must be called on context's OpenGL thread.Fluent builder implementation template for gstgl.glframebuffer.GLFramebuffer
Fluent builder for gstgl.glframebuffer.GLFramebuffer
Methods
GLFramebuffer build()Create object from builder. Returns: New object