Module rustwlc::render [] [src]

Contains definitions for wlc render functions (wlc-render.h)

Enums

wlc_pixel_format

Allowed pixel formats

wlc_renderer

Enabled renderers

wlc_surface_format

Constants

BITS_PER_PIXEL

Number of bits per pixel (RGBA8888)

Functions

calculate_stride

Calculates the stride for ARGB32 encoded buffers

read_pixels

Reads the pixels at the specified geometry

wlc_output_get_gamma_size
wlc_output_get_renderer

Returns currently active renderer on the given output

wlc_output_schedule_render

Read pixel data from output's framebuffer. If theif output is currently rendering, it will render immediately after.

wlc_output_set_gamma
wlc_pixels_read
wlc_pixels_write

Write pixel data with the specific format to output's framebuffer. If the geometry is out of bounds, it will be automatically clamped.

wlc_surface_flush_frame_callbacks

Adds frame callbacks of the given surface for the next output frame. It applies recursively to all subsurfaces. Useful when the compositor creates custom animations which require disabling internal rendering, but still need to update the surface textures (for ex. video players).

wlc_surface_get_textures

Fills out_textures[] with the textures of a surface. Returns false if surface is invalid. Array must have at least 3 elements and should be refreshed at each frame. Note that these are not only OpenGL textures but rather render-specific. For more info what they are check the renderer's source code */

wlc_surface_render

Renders surface.

write_pixels

Write pixel data with the specific format to output's framebuffer. If the geometry is out of bounds, it will be automatically clamped.