Cogl.PixelBuffer¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Cogl.PixelBuffer¶
- Bases:
- Abstract:
No
- classmethod new(context, size, data)¶
- Parameters:
context (
Cogl.Context
) – ACogl.Context
size (
int
) – The number of bytes to allocate for the pixel data.data (
object
orNone
) – An optional pointer to vertex data to upload immediately
- Returns:
a newly allocated
Cogl.PixelBuffer
- Return type:
Declares a new
Cogl.PixelBuffer
of size bytes to contain arrays of pixels. Once declared, data can be set usingCogl.buffer_set_data
() or by mapping it into the application’s address space usingCogl.buffer_map
().If data isn’t
None
then size bytes will be read from data and immediately copied into the new buffer.New in version 1.10.