Import line: | Cogl = imports.gi.Cogl; |
GIR File: | Cogl-1.0.gir |
C documentation: | CoglPixelFormat |
Enum : | PixelFormat |
Show / Hide Inherited methods, properties and signals |
Properties | |
---|---|
Number Cogl.PixelFormat.ABGR_8888 : 115
|
|
Number Cogl.PixelFormat.ABGR_8888_PRE : 243
|
|
Number Cogl.PixelFormat.ANY : 0
|
|
Number Cogl.PixelFormat.ARGB_8888 : 83
|
|
Number Cogl.PixelFormat.ARGB_8888_PRE : 211
|
|
Number Cogl.PixelFormat.A_8 : 17
|
|
Number Cogl.PixelFormat.BGRA_8888 : 51
|
|
Number Cogl.PixelFormat.BGRA_8888_PRE : 179
|
|
Number Cogl.PixelFormat.BGR_888 : 34
|
|
Number Cogl.PixelFormat.G_8 : 8
|
|
Number Cogl.PixelFormat.RGBA_4444 : 21
|
|
Number Cogl.PixelFormat.RGBA_4444_PRE : 149
|
|
Number Cogl.PixelFormat.RGBA_5551 : 22
|
|
Number Cogl.PixelFormat.RGBA_5551_PRE : 150
|
|
Number Cogl.PixelFormat.RGBA_8888 : 19
|
|
Number Cogl.PixelFormat.RGBA_8888_PRE : 147
|
|
Number Cogl.PixelFormat.RGB_565 : 4
|
|
Number Cogl.PixelFormat.RGB_888 : 2
|
|
Number Cogl.PixelFormat.YUV : 7
|
None |
None |
None |
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 |
specified.
|
Cogl
Method |
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.
|