Namespace
Cogl – 10
A Low Level GPU Graphics and Utilities API
Dependencies
GObject | The base type system library |
Browse documentation | |
Graphene | A thin layer of mathematical types for 3D libraries |
Browse documentation | |
Cairo | A 2D graphics library with support for multiple output devices |
Browse documentation |
Classes
Bitmap | |
Context | |
Framebuffer | |
FrameInfo | Frame information. |
Object | |
Offscreen | |
Onscreen | |
Pipeline | |
Texture2D | |
Texture2DSliced |
Structs
_ColorSizeCheck | |
_TextureVertexSizeCheck | |
Color | A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly. |
DebugObjectTypeInfo | This struct is used to pass information to the callback when
|
DmaBufHandle | An opaque type that tracks the lifetime of a DMA buffer fd. Release
with |
FramebufferDriverConfig | |
FrameClosure | An opaque type that tracks a |
OnscreenDirtyClosure | An opaque type that tracks a |
OnscreenDirtyInfo | A structure passed to callbacks registered using
|
Scanout | |
TextureVertex | Used to specify vertex information when calling |
TimestampQuery | |
TraceContext | |
TraceHead | |
UserDataKey | A |
Aliases
Angle | Integer representation of an angle such that 1024 corresponds to full circle (i.e., 2 * pi). |
Handle | Type used for storing references to cogl objects, the CoglHandle is a fully opaque type without any public data members. |
PipelineKey | |
UserDataDestroyCallback | When associating private data with a |
Enumerations
AttributeType | Data types for the components of a vertex attribute. |
BitmapError | Error codes that can be thrown when performing bitmap
operations. Note that |
BlendStringError | Error enumeration for the blend strings parser. |
DepthTestFunction | When using depth testing one of these functions is used to compare
the depth of an incoming fragment against the depth value currently
stored in the depth buffer. The function is changed using
|
FeatureID | All the capabilities that can vary between different GPUs supported
by Cogl. Applications that depend on any of these features should explicitly
check for them using |
FilterReturn | Return values for the |
FramebufferError | |
FrameEvent | Identifiers that are passed to |
GraphicsResetStatus | All the error values that might be returned by
|
IndicesType | You should aim to use the smallest data type that gives you enough range, since it reduces the size of your index array and can help reduce the demand on memory bandwidth. |
PipelineAlphaFunc | Alpha testing happens before blending primitives with the framebuffer and
gives an opportunity to discard fragments based on a comparison with the
incoming alpha value and a reference alpha value. The |
PipelineCullFaceMode | Specifies which faces should be culled. This can be set on a
pipeline using |
PipelineFilter | Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel. |
PipelineWrapMode | The wrap mode specifies what happens when texture coordinates
outside the range 0→1 are used. Note that if the filter mode is
anything but |
RendererError | |
ShaderType | Types of shaders. |
StereoMode | Represents how draw should affect the two buffers
of a stereo framebuffer. See |
SystemError | Error enumeration for Cogl. |
TextureComponents | See |
TextureError | Error codes that can be thrown when allocating textures. |
VerticesMode | Different ways of interpreting vertices when drawing. |
Winding | Enum used to represent the two directions of rotation. This can be
used to set the front face for culling by calling
|
WinsysFeature |
Bitfields
BufferBit | Types of auxiliary buffers. |
BufferTarget | Target flags for FBOs. |
EglImageFlags | |
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
|
ReadPixelsFlags | Flags for |
TextureFlags | Flags to pass to the cogl_texture_new_* family of functions. |
Callbacks
DebugObjectForeachTypeCallback | A callback function to use for |
FeatureCallback | A callback used with |
FrameCallback | Is a callback that can be registered via
|
OnscreenDirtyCallback | Is a callback that can be registered via
|
PipelineLayerCallback | The callback prototype used with |
Texture2DEGLImageExternalAlloc | |
XlibFilterFunc |
Functions
blend_string_error_quark | |
blit_framebuffer |
|
clutter_winsys_has_feature_CLUTTER | |
create_program | Create a new cogl program object that can be used to replace parts of the GL rendering pipeline with custom code. |
create_shader | Create a new shader handle, use |
debug_object_foreach_type | Invokes |
debug_object_print_instances | Prints a list of all the object types that Cogl uses along with the number of objects of that type that are currently in use. This is intended to be used solely for debugging purposes to track down issues with objects leaking. |
egl_texture_2d_new_from_image | |
flush | This function should only need to be called in exceptional circumstances. |
foreach_feature | Iterates through all the context level features currently supported
for a given |
get_graphics_reset_status | Returns the graphics reset status as reported by GetGraphicsResetStatusARB defined in the ARB_robustness extension. |
get_option_group | Retrieves the |
get_proc_address | Gets a pointer to a given GL or GL ES extension function. This acts as a wrapper around glXGetProcAddress() or whatever is the appropriate function for the current backend. |
handle_get_type | |
has_feature | Checks if a given |
has_features | Checks if a list of features are all currently available. |
is_bitmap | Checks whether |
is_context | Gets whether the given object references an existing context object. |
is_frame_info | Gets whether the given object references a |
is_framebuffer | Gets whether the given object references a |
is_pipeline | Gets whether the given |
is_program | Gets whether the given handle references an existing program object. |
is_shader | Gets whether the given handle references an existing shader object. |
is_texture | Gets whether the given object references a texture object. |
is_texture_2d | Gets whether the given object references an existing |
is_texture_2d_sliced | Gets whether the given object references a |
pixel_format_get_bytes_per_pixel | Queries the number of bytes per pixel for a given format in the given plane. |
pixel_format_get_n_planes | Returns the number of planes the given CoglPixelFormat specifies. |
pixel_format_to_string | Returns a string representation of |
program_attach_shader | Attaches a shader to a program object. A program can have multiple
vertex or fragment shaders but only one of them may provide a
|
program_get_uniform_location | Retrieve the location (offset) of a uniform variable in a shader program, a uniform is a variable that is constant for all vertices/fragments for a shader object and is possible to modify as an external parameter. |
program_link | Links a program making it ready for use. Note that calling this function is optional. If it is not called the program will automatically be linked the first time it is used. |
program_set_uniform_1f | Changes the value of a floating point uniform for the given linked
|
program_set_uniform_1i | Changes the value of an integer uniform for the given linked
|
program_set_uniform_float | Changes the value of a float vector uniform, or uniform array for
the given linked |
program_set_uniform_int | Changes the value of a int vector uniform, or uniform array for
the given linked |
program_set_uniform_matrix | Changes the value of a matrix uniform, or uniform array in the
given linked |
set_tracing_disabled_on_thread | |
set_tracing_enabled_on_thread | |
set_tracing_enabled_on_thread_with_fd | |
shader_get_type | Retrieves the type of a shader |
shader_source | Replaces the current source associated with a shader with a new one. |
trace_describe | |
trace_end | |
xlib_renderer_add_filter | Adds a callback function that will receive all native events. The
function can stop further processing of the event by return
|
xlib_renderer_get_display | |
xlib_renderer_get_foreign_display | |
xlib_renderer_handle_event | This function processes a single event; it can be used to hook into external event retrieval (for example that done by Clutter or GDK). |
xlib_renderer_remove_filter | Removes a callback that was previously added with
|
xlib_renderer_request_reset_on_video_memory_purge | Sets whether Cogl should make use of the NV_robustness_video_memory_purge extension, if exposed by the driver, by initializing the GLX context appropriately. |
xlib_renderer_set_foreign_display | Sets a foreign Xlib display that Cogl will use for and Xlib based winsys backend. |
Constants
A_BIT | |
AFIRST_BIT | |
BGR_BIT | |
DEPTH_BIT | |
PIXEL_FORMAT_MAX_PLANES | The maximum number of planes of a pixel format (see also
|
PREMULT_BIT | |
STENCIL_BIT | |
TEXTURE_MAX_WASTE |