Vireo  0.0
Vireo 3D Rendering Hardware Interface
Viewport Struct Reference

Detailed Description

Structure specifying a viewport

Public Member Functions

 Viewport () = default
 
 Viewport (const float x, const float y, const float w, const float h)
 
 Viewport (const float w, const float h)
 

Public Attributes

float x {0.0f}
 Viewport’s upper left corner (x,y). More...
 
float y {0.0f}
 Viewport’s upper left corner (x,y). More...
 
float width {0.0f}
 Viewport’s width. More...
 
float height {0.0f}
 Viewport’s height. More...
 
float minDepth {0.0f}
 min depth range for the viewport. More...
 
float maxDepth {1.0f}
 max depth range for the viewport. More...
 

Constructor & Destructor Documentation

Viewport ( )
default
Viewport ( const float  x,
const float  y,
const float  w,
const float  h 
)
inline
Viewport ( const float  w,
const float  h 
)
inline

Member Data Documentation

float height {0.0f}

Viewport’s height.

float maxDepth {1.0f}

max depth range for the viewport.

float minDepth {0.0f}

min depth range for the viewport.

float width {0.0f}

Viewport’s width.

float x {0.0f}

Viewport’s upper left corner (x,y).

float y {0.0f}

Viewport’s upper left corner (x,y).