![]() |
WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
|
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. | |
| int WSC_CreateOutput | ( | HWND | parentHwnd, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h ) |
Create an output as a child window inside a parent HWND.
| parentHwnd | Parent window handle. |
| x,y | Position within parent. |
| w,h | Size in pixels. |
| int WSC_CreateOutputFromNative | ( | HWND | nativeHwnd | ) |
Create an output bound directly to an existing native HWND.
| nativeHwnd | Window handle to render into. |
| WSCResult WSC_DestroyOutput | ( | int | outputId | ) |
Destroy an output and free its GPU resources.
| outputId | Output ID from WSC_CreateOutput() / WSC_CreateOutputFromNative(). |
| WSCResult WSC_SetOutputBounds | ( | int | outputId, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h ) |
Move/resize a child output window.
| outputId | Output ID. |
| x,y | New position. |
| w,h | New size. |
| 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.
| outputId | Output ID. |
| w,h | New client area size in pixels. |