nvnDeviceSetWindowOriginMode

Device

void nvnDeviceSetWindowOriginMode(NVNdevice* d, NVNwindowOriginMode mode)

Set the window origin mode of a device: where row 0 of the window is

Parameters

ParameterTypeDescription
dNVNdevice*Pointer to the device, NULL is invalid
modeNVNwindowOriginModeNVN_WINDOW_ORIGIN_MODE_LOWER_LEFT or NVN_WINDOW_ORIGIN_MODE_UPPER_LEFT. Other values are invalid. A queue takes the flip of its draws when it is initialized, so set it before nvnQueueInitialize
DriversSwitch and Switch 2
Declarednvn.hook
Handlernvn_DeviceSetWindowOriginMode (nvn_object.c)

Types as nvn.hook writes them: i32, u32, i64, u64: integers of that many bits; f32: float; bool: NVNboolean; usize, isize: size_t, ptrdiff_t.


Made from ScarletNX's Sail at 166ad3910f80. nvn.h is h1k421's reconstruction (MIT); nvn.hook, the handlers and the format table ScarletNX's (GPL-3.0-or-later). The Switch 2 marks are the drivers' procedure tables (tools/manual/nvn-drivers.txt).