XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALViewport Struct Reference

This describes the viewport. A viewport defines the rendering area within a graphical output. It specifies the position, size, and depth range of the viewport to control how the scene is displayed. More...

#include <CommandList.h>

Inheritance diagram for xiiGALViewport:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
XII_ALWAYS_INLINE xiiGALViewport (float fX, float fY, float fWidth, float fHeight, float fMinDepth=0.0f, float fMaxDepth=1.0f)
 
XII_ALWAYS_INLINE xiiGALViewport (xiiRectFloat viewport, float fMinDepth=0.0f, float fMaxDepth=1.0f)
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALViewport >
constexpr xiiHashableStruct () noexcept
 Default constructor. Initializes all bytes to zero.
 
 xiiHashableStruct (const xiiHashableStruct &other) noexcept
 Bitwise copy constructor.
 
xiiHashableStructoperator= (const xiiHashableStruct &other) noexcept
 Bitwise assignment operator.
 
bool operator== (const xiiHashableStruct &other) const noexcept
 Compares equality via raw byte comparison.
 
std::strong_ordering operator<=> (const xiiHashableStruct &other) const noexcept
 Compares ordering via raw byte comparison.
 
xiiUInt32 CalculateHash () const noexcept
 Calculates a 32-bit hash from raw bytes of the struct.
 
void Clear () noexcept
 Fills all bytes with zero.
 
bool IsZero () const noexcept
 Returns true if all bytes are zero.
 

Public Attributes

float m_fTopLeftX = 0.0f
 X-coordinate of the top-left corner of the viewport.
 
float m_fTopLeftY = 0.0f
 Y-coordinate of the top-left corner of the viewport.
 
float m_fWidth = 0.0f
 Width of the viewport.
 
float m_fHeight = 0.0f
 Height of the viewport.
 
float m_fMinDepth = 0.0f
 Minimum depth of the viewport range. The near clipping plane's depth value. Typically set to 0.0.
 
float m_fMaxDepth = 1.0f
 Maximum depth of the viewport range. The far clipping plane's depth value. Typically set to 1.0.
 

Detailed Description

This describes the viewport. A viewport defines the rendering area within a graphical output. It specifies the position, size, and depth range of the viewport to control how the scene is displayed.


The documentation for this struct was generated from the following file: