hWndParent

hWndTarget

pRectTarget

Through these variables a parent window, a target window, and the pointer to a target RECT can be set. LC

Range:

NULL - engine renders onto its own window (default).
Nonzero - engine renders onto the given target window, using the area given by the RECT pointer, and using the given parent window. If pRectTarget is NULL, the engine renders onto the whole client area of the target window.

Type:

HWND
RECT*

Remarks:

Example (lite-C):

// render into a 200x200 rectangle of the engine window
function main()
{
d3d_lockable = 1;
camera.size_x = 200;
camera.size_y = 200;
static RECT rect; // must be static for preserving the content
pRectTarget = ▭
rect.left = 100;
rect.right = rect.left + camera.size_x; rect.top = 100;
rect.bottom = rect.top + camera.size_y;
...

See also:

d3d_lockable, on_message, hWnd

► latest version online