CmdWindowCreate

Creates a new OS window managed by the engine.

Arguments

Field Type Description
windowId u32 Unique ID for the window
title String Window title
size Vec2 Initial size [width, height]
resizable bool Whether the window can be resized
decorations bool Whether to show title bar and borders

Basic Usage

javascript
engine.send({
  type: 'CmdWindowCreate',
  windowId: 1,
  title: 'Vulfram App',
  size: [1280, 720],
  resizable: true,
  decorations: true
});

Response

Returns CmdResultWindowCreate:

Field Type Description
success bool Whether the window was created
message String Status or error message

[!TIP] You can create multiple windows, each with its own render target.

Documentation Vulfram Core