Class

CoglOffscreen

Description

final class Cogl.Offscreen : Cogl.Framebuffer {
  /* No available fields */
}
No description available.

Hierarchy

hierarchy this CoglOffscreen ancestor_0 CoglFramebuffer ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

cogl_offscreen_new_with_texture

This creates an offscreen framebuffer object using the given texture as the primary color buffer. It doesn’t just initialize the contents of the offscreen buffer with the texture; they are tightly bound so that drawing to the offscreen buffer effectively updates the contents of the given texture. You don’t need to destroy the offscreen buffer before you can use the texture again.

Instance methods

cogl_offscreen_get_texture
No description available.
Methods inherited from CoglFramebuffer (59)
cogl_framebuffer_allocate

Explicitly allocates a configured CoglFramebuffer allowing developers to check and handle any errors that might arise from an unsupported configuration so that fallback configurations may be tried.

Available since: 1.8

cogl_framebuffer_clear

Clears all the auxiliary buffers identified in the buffers mask, and if that includes the color buffer then the specified color is used.

Available since: 1.8

cogl_framebuffer_clear4f

Clears all the auxiliary buffers identified in the buffers mask, and if that includes the color buffer then the specified color is used.

Available since: 1.8

cogl_framebuffer_create_timestamp_query

Creates a query for the GPU timestamp that will complete upon completion of all previously submitted GL commands related to this framebuffer. E.g. when the rendering is finished on this framebuffer.

cogl_framebuffer_discard_buffers

Declares that the specified buffers no longer need to be referenced by any further rendering commands. This can be an important optimization to avoid subsequent frames of rendering depending on the results of a previous frame.

Available since: 1.8

cogl_framebuffer_draw_multitextured_rectangle

Draws a textured rectangle to framebuffer with the given pipeline state with the top left corner positioned at (x_1, y_1) and the bottom right corner positioned at (x_2, y_2). As a pipeline may contain multiple texture layers this interface lets you supply texture coordinates for each layer of the pipeline.

Available since: 1.10

cogl_framebuffer_draw_rectangle

Draws a rectangle to framebuffer with the given pipeline state and with the top left corner positioned at (x_1, y_1) and the bottom right corner positioned at (x_2, y_2).

Available since: 1.10

cogl_framebuffer_draw_rectangles

Draws a series of rectangles to framebuffer with the given pipeline state in the same way that cogl_framebuffer_draw_rectangle() does.

Available since: 1.10

cogl_framebuffer_draw_textured_rectangle

Draws a textured rectangle to framebuffer using the given pipeline state with the top left corner positioned at (x_1, y_1) and the bottom right corner positioned at (x_2, y_2). The top left corner will have texture coordinates of (s_1, t_1) and the bottom right corner will have texture coordinates of (s_2, t_2).

Available since: 1.10

cogl_framebuffer_draw_textured_rectangles

Draws a series of rectangles to framebuffer with the given pipeline state in the same way that cogl_framebuffer_draw_textured_rectangle() does.

Available since: 1.10

cogl_framebuffer_finish

This blocks the CPU until all pending rendering associated with the specified framebuffer has completed. It’s very rare that developers should ever need this level of synchronization with the GPU and should never be used unless you clearly understand why you need to explicitly force synchronization.

Available since: 1.10

cogl_framebuffer_flush

Flushes framebuffer to ensure the current batch of commands is submitted to the GPU.

cogl_framebuffer_frustum

Replaces the current projection matrix with a perspective matrix for a given viewing frustum defined by 4 side clip planes that all cross through the origin and 2 near and far clip planes.

Available since: 1.10

cogl_framebuffer_get_alpha_bits

Retrieves the number of alpha bits of framebuffer.

Available since: 1.8

cogl_framebuffer_get_blue_bits

Retrieves the number of blue bits of framebuffer.

Available since: 1.8

cogl_framebuffer_get_context

Can be used to query the CoglContext a given framebuffer was instantiated within. This is the CoglContext that was passed to cogl_onscreen_new() for example.

Available since: 1.8

cogl_framebuffer_get_depth_bits

Retrieves the number of depth bits of framebuffer.

Available since: 2.0

cogl_framebuffer_get_depth_write_enabled

Queries whether depth buffer writing is enabled for framebuffer. This can be controlled via cogl_framebuffer_set_depth_write_enabled().

Available since: 1.18

cogl_framebuffer_get_dither_enabled

Returns whether dithering has been requested for the given framebuffer. See cogl_framebuffer_set_dither_enabled() for more details about dithering.

Available since: 1.8

cogl_framebuffer_get_green_bits

Retrieves the number of green bits of framebuffer.

Available since: 1.8

cogl_framebuffer_get_height

Queries the current height of the given framebuffer.

Available since: 1.8

cogl_framebuffer_get_is_stereo
No description available.
cogl_framebuffer_get_modelview_matrix

Stores the current model-view matrix in matrix.

Available since: 1.10

Class structure

struct CoglOffscreenClass {
  CoglFramebufferClass parent_class;
  
}
Class members
parent_class
CoglFramebufferClass
  No description available.