Window.setActive

Activate or deactivate the window as the current target for OpenGL rendering.

A window is active only on the current thread, if you want to make it active on another thread you have to deactivate it on the previous thread first if it was active. Only one window can be active on a thread at a time, thus the window previously active (if any) automatically gets deactivated.

class Window
bool
setActive
(
bool active
)

Return Value

Type: bool

true if operation was successful, false otherwise.

Meta