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.Contextsize (
int) – The number of bytes to allocate for the pixel data.data (
objectorNone) – An optional pointer to vertex data to upload immediately
- Returns:
a newly allocated
Cogl.PixelBuffer- Return type:
Declares a new
Cogl.PixelBufferof 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
Nonethen size bytes will be read from data and immediately copied into the new buffer.New in version 1.10.