GstGL.GLBufferAllocationParams¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
gl_target |
r/w |
the OpenGL target to bind the buffer to |
|
gl_usage |
r/w |
the OpenGL usage hint to create the buffer with |
|
parent |
r/w |
parent object |
Methods¶
class |
|
Details¶
- class GstGL.GLBufferAllocationParams¶
- classmethod new(context, alloc_size, alloc_params, gl_target, gl_usage)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
alloc_size (
int
) – the size in bytes to allocatealloc_params (
Gst.AllocationParams
orNone
) – theGst.AllocationParams
for tex_idgl_target (
int
) – the OpenGL target to allocategl_usage (
int
) – the OpenGL usage hint to allocate with
- Returns:
a new
GstGL.GLBufferAllocationParams
for allocating OpenGL buffer objects- Return type:
New in version 1.8.