Back to Seed Clases

Cogl


Classes

Interfaces

Structs

Unions

Enums

Enum Cogl.PixelFormat

Import line: Cogl = imports.gi.Cogl;
GIR File: Cogl-1.0.gir
C documentation: CoglPixelFormat
Enum : PixelFormat
Pixel formats used by COGL. For the formats with a byte per
component, the order of the components specify the order in
increasing memory addresses. So for example
COGL_PIXEL_FORMAT_RGB_888 would have the red component in the
lowest address, green in the next address and blue after that
regardless of the endinanness of the system.
For the 16-bit formats the component order specifies the order
within a 16-bit number from most significant bit to least
significant. So for COGL_PIXEL_FORMAT_RGB_565, the red component
would be in bits 11-15, the green component would be in 6-11 and
the blue component would be in 1-5. Therefore the order in memory
depends on the endianness of the system.
When uploading a texture COGL_PIXEL_FORMAT_ANY can be used as the
internal format. Cogl will try to pick the best format to use
internally and convert the texture data if necessary.
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Clutter.Texture
Property
pixel_format : Cogl.PixelFormat read only
Clutter.Texture
Method
get_pixel_format () : Cogl.PixelFormat
Retrieves the pixel format used by texture.
Cogl
Method
Cogl.read_pixels (gint32 x, gint32 y, gint32 width, gint32 height, ReadPixelsFlags source, PixelFormat format, guint8 pixels) : none
This reads a rectangle of pixels from the current framebuffer where
position (0, 0) is the top left.
Cogl
Method
Cogl.texture_get_data (void* handle, PixelFormat format, guint32 rowstride, guint8 data) : gint32
Copies the pixel data from a cogl texture to system memory.
Cogl
Method
Cogl.texture_get_format (void* handle) : Cogl.PixelFormat
Queries the CoglPixelFormat of a cogl texture.
Cogl
Method
Cogl.texture_set_region (void* handle, gint32 src_x, gint32 src_y, gint32 dst_x, gint32 dst_y, guint32 dst_width, guint32 dst_height, gint32 width, gint32 height, PixelFormat format, guint32 rowstride, guint8 data) : gboolean
Sets the pixels in a rectangular subregion of handle from an in-memory
buffer containing pixel data.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:09:58 GMT+0800 (HKT)