Top |
Types and Values
CoglVertexP2 | |
CoglVertexP3 | |
CoglVertexP2C4 | |
CoglVertexP3C4 | |
CoglVertexP2T2 | |
CoglVertexP3T2 | |
CoglVertexP2T2C4 | |
CoglVertexP3T2C4 | |
enum | CoglVerticesMode |
enum | CoglPixelFormat |
enum | CoglBufferTarget |
enum | CoglBufferBit |
enum | CoglAttributeType |
enum | CoglColorMask |
enum | CoglTextureFlags |
typedef | CoglBool |
Types and Values
CoglVertexP2
typedef struct { float x, y; } CoglVertexP2;
A convenience vertex definition that can be used with
cogl_primitive_new_p2()
.
Since: 1.6
Stability Level: Unstable
CoglVertexP3
typedef struct { float x, y, z; } CoglVertexP3;
A convenience vertex definition that can be used with
cogl_primitive_new_p3()
.
Since: 1.6
Stability Level: Unstable
CoglVertexP2C4
typedef struct { float x, y; uint8_t r, g, b, a; } CoglVertexP2C4;
A convenience vertex definition that can be used with
cogl_primitive_new_p2c4()
.
Members
The x component of a position attribute |
||
The y component of a position attribute |
||
The red component of a color attribute |
||
The blue component of a color attribute |
||
The green component of a color attribute |
||
The alpha component of a color attribute |
Since: 1.6
Stability Level: Unstable
CoglVertexP3C4
typedef struct { float x, y, z; uint8_t r, g, b, a; } CoglVertexP3C4;
A convenience vertex definition that can be used with
cogl_primitive_new_p3c4()
.
Members
The x component of a position attribute |
||
The y component of a position attribute |
||
The z component of a position attribute |
||
The red component of a color attribute |
||
The blue component of a color attribute |
||
The green component of a color attribute |
||
The alpha component of a color attribute |
Since: 1.6
Stability Level: Unstable
CoglVertexP2T2
typedef struct { float x, y; float s, t; } CoglVertexP2T2;
A convenience vertex definition that can be used with
cogl_primitive_new_p2t2()
.
Since: 1.6
Stability Level: Unstable
CoglVertexP3T2
typedef struct { float x, y, z; float s, t; } CoglVertexP3T2;
A convenience vertex definition that can be used with
cogl_primitive_new_p3t2()
.
Since: 1.6
Stability Level: Unstable
CoglVertexP2T2C4
typedef struct { float x, y; float s, t; uint8_t r, g, b, a; } CoglVertexP2T2C4;
A convenience vertex definition that can be used with
cogl_primitive_new_p3t2c4()
.
Members
The x component of a position attribute |
||
The y component of a position attribute |
||
The s component of a texture coordinate attribute |
||
The t component of a texture coordinate attribute |
||
The red component of a color attribute |
||
The blue component of a color attribute |
||
The green component of a color attribute |
||
The alpha component of a color attribute |
Since: 1.6
Stability Level: Unstable
CoglVertexP3T2C4
typedef struct { float x, y, z; float s, t; uint8_t r, g, b, a; } CoglVertexP3T2C4;
A convenience vertex definition that can be used with
cogl_primitive_new_p3t2c4()
.
Members
The x component of a position attribute |
||
The y component of a position attribute |
||
The z component of a position attribute |
||
The s component of a texture coordinate attribute |
||
The t component of a texture coordinate attribute |
||
The red component of a color attribute |
||
The blue component of a color attribute |
||
The green component of a color attribute |
||
The alpha component of a color attribute |
Since: 1.6
Stability Level: Unstable
enum CoglVerticesMode
Different ways of interpreting vertices when drawing.
Members
FIXME, equivalent to GL_POINTS
|
||
FIXME, equivalent to |
||
FIXME, equivalent to GL_LINE_LOOP
|
||
FIXME, equivalent to GL_LINE_STRIP
|
||
FIXME, equivalent to GL_TRIANGLES
|
||
FIXME, equivalent to GL_TRIANGLE_STRIP
|
||
FIXME, equivalent to |
Since: 1.0
enum CoglPixelFormat
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 endianness of the system.
For the formats with non byte aligned components the component
order specifies the order within a 16-bit or 32-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.
Members
Any format |
||
8 bits alpha mask |
||
RGB, 16 bits |
||
RGBA, 16 bits |
||
RGBA, 16 bits |
||
Not currently supported |
||
Single luminance component |
||
RG, 16 bits. Note that red-green textures
are only available if |
||
RGB, 24 bits |
||
BGR, 24 bits |
||
RGBA, 32 bits |
||
BGRA, 32 bits |
||
ARGB, 32 bits |
||
ABGR, 32 bits |
||
RGBA, 32 bits, 10 bpc |
||
BGRA, 32 bits, 10 bpc |
||
ARGB, 32 bits, 10 bpc |
||
ABGR, 32 bits, 10 bpc |
||
Premultiplied RGBA, 32 bits |
||
Premultiplied BGRA, 32 bits |
||
Premultiplied ARGB, 32 bits |
||
Premultiplied ABGR, 32 bits |
||
Premultiplied RGBA, 16 bits |
||
Premultiplied RGBA, 16 bits |
||
Premultiplied RGBA, 32 bits, 10 bpc |
||
Premultiplied BGRA, 32 bits, 10 bpc |
||
Premultiplied ARGB, 32 bits, 10 bpc |
||
Premultiplied ABGR, 32 bits, 10 bpc |
||
Since: 0.8
enum CoglAttributeType
Data types for the components of a vertex attribute.
Members
Data is the same size of a byte |
||
Data is the same size of an unsigned byte |
||
Data is the same size of a short integer |
||
Data is the same size of an unsigned short integer |
||
Data is the same size of a float |
Since: 1.0
enum CoglColorMask
Defines a bit mask of color channels. This can be used with
cogl_pipeline_set_color_mask()
for example to define which color
channels should be written to the current framebuffer when
drawing something.
enum CoglTextureFlags
Flags to pass to the cogl_texture_new_* family of functions.
Members
No flags specified |
||
Disables the automatic generation of the mipmap pyramid from the base level image whenever it is updated. The mipmaps are only generated when the texture is rendered with a mipmap filter so it should be free to leave out this flag when using other filtering modes |
||
Disables the slicing of the texture |
||
Disables the insertion of the texture inside the texture atlas used by Cogl |
Since: 1.0