GLBuffer

GstGLBuffer is a #GstMemory subclass providing support for the mapping of GL buffers.

Data is uploaded or downloaded from the GPU as is necessary.

Constructors

this
this(uint id, uint target, uint usageHints)

Create a glbuffer.GLBuffer boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
self
GLBuffer self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]
id
uint id [@property getter]

Get field id.

id
uint id [@property setter]

Set field id.

mem
gstgl.glbase_memory.GLBaseMemory mem [@property getter]

Get field mem.

target
uint target [@property getter]

Get field target.

target
uint target [@property setter]

Set field target.

usageHints
uint usageHints [@property getter]

Get field usageHints.

usageHints
uint usageHints [@property setter]

Set field usageHints.

Static functions

getGType
GType getGType()
initOnce
void initOnce()

Initializes the GL Buffer allocator. It is safe to call this function multiple times. This must be called before any other #GstGLBuffer operation.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.