Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::GfxDevice::Viewport Struct Reference

The viewport last set, so a pass that borrows the device can give it back. More...

#include <GfxDevice.hpp>

Public Attributes

i32 x = 0
i32 y = 0
u32 w = 0
u32 h = 0

Detailed Description

The viewport last set, so a pass that borrows the device can give it back.

Mirrored here because neither API this wraps reads it back cheaply, and a pass rendering elsewhere cannot recompute what to restore: a split-screen camera owns only part of the target. Set in setViewport.

Definition at line 288 of file GfxDevice.hpp.

Member Data Documentation

◆ h

u32 esengine::GfxDevice::Viewport::h = 0

Definition at line 288 of file GfxDevice.hpp.

◆ w

u32 esengine::GfxDevice::Viewport::w = 0

Definition at line 288 of file GfxDevice.hpp.

◆ x

i32 esengine::GfxDevice::Viewport::x = 0

Definition at line 288 of file GfxDevice.hpp.

◆ y

i32 esengine::GfxDevice::Viewport::y = 0

Definition at line 288 of file GfxDevice.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/rhi/GfxDevice.hpp