Class
CoglOnscreen
Instance methods
cogl_onscreen_add_frame_callback
Installs a callback
function that will be called for significant
events relating to the given onscreen
framebuffer.
cogl_onscreen_get_frame_counter
Gets the value of the framebuffers frame counter. This is
a counter that increases by one each time
cogl_onscreen_swap_buffers()
or cogl_onscreen_swap_region()
is called.
cogl_onscreen_queue_damage_region
Implementation for https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_partial_update.txt This immediately queues state to OpenGL that will be used for the next swap. This needs to be called every frame.
cogl_onscreen_remove_frame_callback
Removes a callback and associated user data that were previously registered using cogl_onscreen_add_frame_callback().
cogl_onscreen_swap_buffers
Swaps the current back buffer being rendered too, to the front for display.
cogl_onscreen_swap_buffers_with_damage
Swaps the current back buffer being rendered too, to the front for display and provides information to any system compositor about what regions of the buffer have changed (damage) with respect to the last swapped buffer.
cogl_onscreen_swap_region
Swaps a region of the back buffer being rendered too, to the front for display.
Methods inherited from CoglFramebuffer (49)
Please see CoglFramebuffer for a full list of methods.
Properties
Properties inherited from CoglFramebuffer (4)
Cogl.Framebuffer:context
Cogl.Framebuffer:driver-config
Cogl.Framebuffer:height
Cogl.Framebuffer:width
Signals
Signals inherited from CoglFramebuffer (1)
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct CoglOnscreenClass {
void (* bind) (
CoglOnscreen* onscreen
);
void (* swap_buffers_with_damage) (
CoglOnscreen* onscreen,
const MtkRegion* region,
CoglFrameInfo* info,
gpointer user_data
);
void (* swap_region) (
CoglOnscreen* onscreen,
const MtkRegion* region,
CoglFrameInfo* info,
gpointer user_data
);
void (* queue_damage_region) (
CoglOnscreen* onscreen,
const MtkRegion* region
);
gboolean (* direct_scanout) (
CoglOnscreen* onscreen,
CoglScanout* scanout,
CoglFrameInfo* info,
gpointer user_data,
GError** error
);
int (* get_buffer_age) (
CoglOnscreen* onscreen
);
gboolean (* get_window_handles) (
CoglOnscreen* onscreen,
gpointer* device_out,
gpointer* window_out
);
}
No description available.
Class members
bind: void (* bind) ( CoglOnscreen* onscreen )
No description available.
swap_buffers_with_damage: void (* swap_buffers_with_damage) ( CoglOnscreen* onscreen, const MtkRegion* region, CoglFrameInfo* info, gpointer user_data )
No description available.
swap_region: void (* swap_region) ( CoglOnscreen* onscreen, const MtkRegion* region, CoglFrameInfo* info, gpointer user_data )
No description available.
queue_damage_region: void (* queue_damage_region) ( CoglOnscreen* onscreen, const MtkRegion* region )
No description available.
direct_scanout: gboolean (* direct_scanout) ( CoglOnscreen* onscreen, CoglScanout* scanout, CoglFrameInfo* info, gpointer user_data, GError** error )
No description available.
get_buffer_age: int (* get_buffer_age) ( CoglOnscreen* onscreen )
No description available.
get_window_handles: gboolean (* get_window_handles) ( CoglOnscreen* onscreen, gpointer* device_out, gpointer* window_out )
No description available.
Virtual methods
Cogl.OnscreenClass.queue_damage_region
Implementation for https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_partial_update.txt This immediately queues state to OpenGL that will be used for the next swap. This needs to be called every frame.
Cogl.OnscreenClass.swap_buffers_with_damage
Swaps the current back buffer being rendered too, to the front for display and provides information to any system compositor about what regions of the buffer have changed (damage) with respect to the last swapped buffer.
Cogl.OnscreenClass.swap_region
Swaps a region of the back buffer being rendered too, to the front for display.