NcEngine
nc::Viewport Struct Reference

A struct that controls the viewport and scissor size and placement. More...

#include <WindowTypes.h>

Public Attributes

nc::Vector2 Size = nc::Vector2{1.0f, 1.0f}
 
nc::Vector2 TopLeft = nc::Vector2{0.0f, 0.0f}
 

Detailed Description

A struct that controls the viewport and scissor size and placement.

Remarks
Viewport vectors are scalars between 0.0 and 1.0f representing ratio of screen size.
Only supports a single viewport now.

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