windowInitialize

Creating a window in the window manager. When setting a parameter in a template, it can create both its regular version and with hardware graphics acceleration.

@trusted
void
windowInitialize
(
int type = WithoutContext
)

Parameters

type

Method of creation. WithoutContext - Only the window is created. The context is created after. WithContext - Creates both a window and a graphics context for using hardware graphics acceleration.

window Window

Window pointer.

posX int

Position in the plane of the desktop along the x-axis.

posY int

Position in the plane of the desktop along the y-axis.

Throws

Exception If a window has not been created in the process (and this also applies to the creation of a graphical context).

Examples

windowInitialize!WithoutContext(window, 100, 100); /// Without context
...
windowInitialize!WithContext(window, 100, 100); /// With context

Meta