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, float fMaxDepth)
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALViewport >
 xiiHashableStruct (const xiiHashableStruct< xiiGALViewport > &other)
 
void operator= (const xiiHashableStruct< xiiGALViewport > &other)
 
XII_ALWAYS_INLINE constexpr bool operator== (const xiiHashableStruct< xiiGALViewport > &rhs) const=default
 
xiiUInt32 CalculateHash () const
 Calculates the 32 bit hash of the struct and returns it.
 

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: