screen_destroy_display()

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

Destroy a virtual display

Synopsis:

#include <screen/screen.h>
int screen_destroy_display(screen_display_t disp)

Arguments:

disp
The handle of the virtual display to be destroyed. The virtual display must have been created using SCREEN_CREATE_DISPLAY().

Library:

libscreen

Description:

Function Type: Immediate Execution

This function destroys the virtual display associated with the display handle. The display handle can no longer be used in subsequent Screen API calls. Any resources created for the display are released. Applications are responsible for freeing their own external buffers.

Returns:

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

Page updated: