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

Functions

int WSCW_CreateBrowser (const char *url, int width, int height)
 Create an off-screen browser and navigate to a URL.
WSCWResult WSCW_DestroyBrowser (int browserId)
 Destroy a browser and free resources.

Detailed Description

Function Documentation

◆ WSCW_CreateBrowser()

int WSCW_CreateBrowser ( const char * url,
int width,
int height )

Create an off-screen browser and navigate to a URL.

Parameters
urlInitial URL to load (e.g. "https://example.com").
widthVirtual viewport width in pixels.
heightVirtual viewport height in pixels.
Returns
Browser ID (>= 0) on success, or negative WSCWResult on failure.

◆ WSCW_DestroyBrowser()

WSCWResult WSCW_DestroyBrowser ( int browserId)

Destroy a browser and free resources.

Parameters
browserIdBrowser ID.
Returns
WSCW_OK on success.