WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Output Management

Functions

int WSC_CreateOutput (HWND parentHwnd, int x, int y, int w, int h)
 Create an output as a child window inside a parent HWND.
int WSC_CreateOutputFromNative (HWND nativeHwnd)
 Create an output bound directly to an existing native HWND.
WSCResult WSC_DestroyOutput (int outputId)
 Destroy an output and free its GPU resources.
WSCResult WSC_SetOutputBounds (int outputId, int x, int y, int w, int h)
 Move/resize a child output window.
WSCResult WSC_NotifyResize (int outputId, int w, int h)
 Notify WSCLib that the output window has been resized.

Detailed Description

Function Documentation

◆ WSC_CreateOutput()

int WSC_CreateOutput ( HWND parentHwnd,
int x,
int y,
int w,
int h )

Create an output as a child window inside a parent HWND.

Parameters
parentHwndParent window handle.
x,yPosition within parent.
w,hSize in pixels.
Returns
Output ID (>= 0) on success, or negative WSCResult on failure.

◆ WSC_CreateOutputFromNative()

int WSC_CreateOutputFromNative ( HWND nativeHwnd)

Create an output bound directly to an existing native HWND.

Parameters
nativeHwndWindow handle to render into.
Returns
Output ID (>= 0) on success, or negative WSCResult on failure.

◆ WSC_DestroyOutput()

WSCResult WSC_DestroyOutput ( int outputId)

Destroy an output and free its GPU resources.

Parameters
outputIdOutput ID from WSC_CreateOutput() / WSC_CreateOutputFromNative().
Returns
WSC_OK on success.

◆ WSC_SetOutputBounds()

WSCResult WSC_SetOutputBounds ( int outputId,
int x,
int y,
int w,
int h )

Move/resize a child output window.

Parameters
outputIdOutput ID.
x,yNew position.
w,hNew size.
Returns
WSC_OK on success.

◆ WSC_NotifyResize()

WSCResult WSC_NotifyResize ( int outputId,
int w,
int h )

Notify WSCLib that the output window has been resized.

Call this from your WM_SIZE handler so the swap chain is resized to match.

Parameters
outputIdOutput ID.
w,hNew client area size in pixels.
Returns
WSC_OK on success.