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

between multiple OpenGL contexts.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GLFramebuffer self() nothrowReturns `this`, for use in `with` statements.
GLFramebufferGidBuilder builder() static nothrowGet builder for [gstgl.glframebuffer.GLFramebuffer] Returns: New builder object
gstgl.glframebuffer.GLFramebuffer newWithDefaultDepth(gstgl.glcontext.GLContext context, uint width, uint height) static nothrowThis 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) nothrowattach mem to attachment_point
void bind() nothrowBind fb into the current thread
void getEffectiveDimensions(out uint width, out uint height) nothrowRetrieve the effective dimensions from the current attachments attached to fb.
uint getId() nothrow
Constructors
this(void * ptr, Flag!"Take" take)
this(gstgl.glcontext.GLContext context)This function will internally create an OpenGL framebuffer object and must be called on context's OpenGL thread.
Methods
GLFramebuffer build() nothrowCreate object from builder. Returns: New object