RenderWindow.setActive

Get the viewport of a view, applied to this render target.

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 RenderWindow
override
bool
setActive
(
bool active
)

Parameters

active
Type: bool

true to activate, false to deactivate

Return Value

Type: bool

true if operation was successful, false otherwise

Meta