screen_destroy_context()

Terminate a connection with Screen

Synopsis:

#include <screen/screen.h>
int screen_destroy_context(screen_context_t ctx)

Arguments:

ctx
The connection to Screen that's to be terminated. This context must have been created with screen_create_context().

Library:

libscreen

Description:

Function type: Immediate Execution

This function closes an existing connection with Screen; therefore this context can no longer be used. The context is freed, along with any locally allocated resources. All render targets associated with this connection are destroyed. All events that are waiting in the event queue and any pending asynchronous commands are discarded. This operation doesn't flush the command buffer.

Returns:

0