CommonLibSSE (Parapets fork)
RE::GViewport Class Reference

#include <GViewport.h>

Public Types

enum  Flag {
  kNone = 0 , kIsRenderTexture = 1 , kAlphaComposite = 2 , kUseScissorRect = 4 ,
  kNoSetState = 8 , kRenderTextureAlpha = kIsRenderTexture | kAlphaComposite
}
 

Public Member Functions

 GViewport ()
 
 GViewport (const GViewport &a_rhs)
 
 GViewport (std::int32_t a_bufW, std::int32_t a_bufH, std::int32_t a_left, std::int32_t a_top, std::int32_t a_width, std::int32_t a_height, std::int32_t a_scLeft, std::int32_t a_scTop, std::int32_t a_scW, std::int32_t a_scH, Flag a_flags=Flag::kNone)
 
 GViewport (std::int32_t a_bufW, std::int32_t a_bufH, std::int32_t a_left, std::int32_t a_top, std::int32_t a_width, std::int32_t a_height, std::int32_t a_scLeft, std::int32_t a_scTop, std::int32_t a_scW, std::int32_t a_scH, float a_scale, float a_ratio, Flag a_flags=Flag::kNone)
 
 GViewport (std::int32_t a_bufW, std::int32_t a_bufH, std::int32_t a_left, std::int32_t a_top, std::int32_t a_width, std::int32_t a_height, Flag a_flags=Flag::kNone)
 
void SetViewport (std::int32_t a_bufW, std::int32_t a_bufH, std::int32_t a_left, std::int32_t a_top, std::int32_t a_width, std::int32_t a_height, Flag a_flags=Flag::kNone)
 
void SetScissorRect (std::int32_t a_scLeft, std::int32_t a_scTop, std::int32_t a_scW, std::int32_t a_scH)
 

Public Attributes

std::int32_t bufferWidth
 
std::int32_t bufferHeight
 
std::int32_t left
 
std::int32_t top
 
std::int32_t width
 
std::int32_t height
 
std::int32_t scissorLeft
 
std::int32_t scissorTop
 
std::int32_t scissorWidth
 
std::int32_t scissorHeight
 
float scale
 
float aspectRatio
 
stl::enumeration< Flag, std::uint32_t > flags
 
std::uint32_t pad34
 

Member Enumeration Documentation

◆ Flag

Enumerator
kNone 
kIsRenderTexture 
kAlphaComposite 
kUseScissorRect 
kNoSetState 
kRenderTextureAlpha 

Constructor & Destructor Documentation

◆ GViewport() [1/5]

RE::GViewport::GViewport ( )

◆ GViewport() [2/5]

RE::GViewport::GViewport ( const GViewport a_rhs)

◆ GViewport() [3/5]

RE::GViewport::GViewport ( std::int32_t  a_bufW,
std::int32_t  a_bufH,
std::int32_t  a_left,
std::int32_t  a_top,
std::int32_t  a_width,
std::int32_t  a_height,
std::int32_t  a_scLeft,
std::int32_t  a_scTop,
std::int32_t  a_scW,
std::int32_t  a_scH,
Flag  a_flags = Flag::kNone 
)

◆ GViewport() [4/5]

RE::GViewport::GViewport ( std::int32_t  a_bufW,
std::int32_t  a_bufH,
std::int32_t  a_left,
std::int32_t  a_top,
std::int32_t  a_width,
std::int32_t  a_height,
std::int32_t  a_scLeft,
std::int32_t  a_scTop,
std::int32_t  a_scW,
std::int32_t  a_scH,
float  a_scale,
float  a_ratio,
Flag  a_flags = Flag::kNone 
)

◆ GViewport() [5/5]

RE::GViewport::GViewport ( std::int32_t  a_bufW,
std::int32_t  a_bufH,
std::int32_t  a_left,
std::int32_t  a_top,
std::int32_t  a_width,
std::int32_t  a_height,
Flag  a_flags = Flag::kNone 
)

Member Function Documentation

◆ SetScissorRect()

void RE::GViewport::SetScissorRect ( std::int32_t  a_scLeft,
std::int32_t  a_scTop,
std::int32_t  a_scW,
std::int32_t  a_scH 
)

◆ SetViewport()

void RE::GViewport::SetViewport ( std::int32_t  a_bufW,
std::int32_t  a_bufH,
std::int32_t  a_left,
std::int32_t  a_top,
std::int32_t  a_width,
std::int32_t  a_height,
Flag  a_flags = Flag::kNone 
)

Member Data Documentation

◆ aspectRatio

float RE::GViewport::aspectRatio

◆ bufferHeight

std::int32_t RE::GViewport::bufferHeight

◆ bufferWidth

std::int32_t RE::GViewport::bufferWidth

◆ flags

stl::enumeration<Flag, std::uint32_t> RE::GViewport::flags

◆ height

std::int32_t RE::GViewport::height

◆ left

std::int32_t RE::GViewport::left

◆ pad34

std::uint32_t RE::GViewport::pad34

◆ scale

float RE::GViewport::scale

◆ scissorHeight

std::int32_t RE::GViewport::scissorHeight

◆ scissorLeft

std::int32_t RE::GViewport::scissorLeft

◆ scissorTop

std::int32_t RE::GViewport::scissorTop

◆ scissorWidth

std::int32_t RE::GViewport::scissorWidth

◆ top

std::int32_t RE::GViewport::top

◆ width

std::int32_t RE::GViewport::width

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