Function

PhoshWlBuffernew

Declaration [src]

PhoshWlBuffer*
phosh_wl_buffer_new (
  wl_shm_format format,
  uint32_t width,
  uint32_t height,
  uint32_t stride
)

Description [src]

Creates a new memory buffer to be shared with the Wayland compositor.

Parameters

format wl_shm_format
 

The buffer format.

width uint32_t
 

The buffer’s width in pixels.

height uint32_t
 

The buffer’s height in lines.

stride uint32_t
 

The buffer’s stride in bytes.

Return value

Returns: PhoshWlBuffer
 

The new buffer.

 The data is owned by the called function.