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
  Show / Hide Inherited methods, properties and signals
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.pixel_buffer_new_for_size (Number width, Number height, PixelFormat format, Object out_values) : void*
Creates a new buffer to store pixel data.
Cogl
Method
Cogl.pixel_buffer_new_for_size_EXP (Number width, Number height, PixelFormat format, Object out_values) : void*
Cogl
Method
Cogl.read_pixels (Number x, Number y, Number width, Number height, ReadPixelsFlags source, PixelFormat format, String 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, Number rowstride, String data) : Number
specified.
Cogl
Method
Cogl.texture_get_format (void* handle) : Cogl.PixelFormat
Queries the CoglPixelFormat of a cogl texture.
Cogl
Method
Cogl.texture_new_from_bitmap (void* bmp_handle, TextureFlags flags, PixelFormat internal_format) : void*
texture Creates a COGL texture from a CoglBitmap.
Cogl
Method
Cogl.texture_new_from_data (Number width, Number height, TextureFlags flags, PixelFormat format, PixelFormat internal_format, Number rowstride, String data) : void*
Creates a new COGL texture based on data residing in memory.
Cogl
Method
Cogl.texture_new_from_file (String filename, TextureFlags flags, PixelFormat internal_format) : void*
Creates a COGL texture from an image file.
Cogl
Method
Cogl.texture_new_from_foreign (uint gl_handle, enum gl_target, uint width, uint height, uint x_pot_waste, uint y_pot_waste, PixelFormat format) : void*
Creates a COGL texture based on an existing OpenGL texture; the width, height and format are passed along since it is not always possible to query these from OpenGL.
Cogl
Method
Cogl.texture_new_with_size (Number width, Number height, TextureFlags flags, PixelFormat internal_format) : void*
Creates a new COGL texture with the specified dimensions and pixel format.
Cogl
Method
Cogl.texture_set_region (void* handle, Number src_x, Number src_y, Number dst_x, Number dst_y, Number dst_width, Number dst_height, Number width, Number height, PixelFormat format, Number rowstride, String data) : Boolean
specified) 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 Tue Jun 22 2010 16:32:40 GMT+0800 (HKT)