nw::gfx::res::ResProjectionRect Structure

Syntax

struct ResProjectionRect
{
   nw::ut::ResF32 m_AspectRatio;
   nw::ut::ResF32 m_Height;
   nw::ut::ResVec2 m_Center;
};

Description

Member Variables

m_AspectRatio nw::ut::ResF32
m_Height nw::ut::ResF32
m_Center nw::ut::ResVec2

Member Functions

Set/Get
operator nw::ut::Rect Cast operator that converts into rectangle info in nw::ut::Rect format.
GetHeight Gets the height.
GetWidth Gets the width.
GetAspectRatio Gets the aspect ratio.
GetCenter Gets the central coordinates.
NW_DEPRECATED_FUNCTION Deprecated. The SetWithYFlip function still behaves as it used to.
SetWithoutFlip Sets the rectangle by specifying the upper-left and lower-right corners.
SetWithYFlip Sets the rectangle by specifying the upper-left and lower-right corners. This function flips b and t compared to when configured from the binary. Use the SetWithoutFlip function to configure identically to the binary.
Set Sets a rectangle by specifying the height and the aspect ratio.

CONFIDENTIAL