screen_enqueue_render_buffer()

Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities

Allow a buffer to be reacquired as a render buffer

Synopsis:

#include <screen/screen.h>
int screen_enqueue_render_buffer(screen_buffer_t buf)

Arguments:

buf
The handle of the buffer that might be reaquired as a render buffer.

Library:

libscreen

Description:

Function Type: Immediate Execution

This function should be used when screen_post_stream() or screen_post_window() is called with the SCREEN_EXPLICIT_ENQUEUE flag. It may also be called when a buffer obtained with screen_dequeue_window_render_buffer() or screen_dequeue_stream_render_buffer() will not be posted. This action is performed automatically by screen_post_stream() or screen_post_window() when those functions are called without the SCREEN_EXPLICIT_ENQUEUE flag. A call to this function indicates that the producer is done with the buffer.

Returns:

0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).

Page updated: