Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGraphicContext Class Reference

#include <GraphicContext.h>

Inheritance diagram for CGraphicContext:

Classes

class  UITransform
 

Public Member Functions

 CGraphicContext (void)
 
virtual ~CGraphicContext ()
 
float GetFPS () const
 
void SetFPS (float fps)
 
float GetDisplayLatency () const
 
bool IsFullScreenRoot () const
 
void ToggleFullScreen ()
 
void SetFullScreenVideo (bool bOnOff)
 
bool IsFullScreenVideo () const
 
bool IsValidResolution (RESOLUTION res)
 
void SetVideoResolution (RESOLUTION res, bool forceUpdate, CEvent *abortEvent=nullptr)
 Switch the video resolution on the app thread.
 
void ApplyModeChange (RESOLUTION res)
 
void ApplyWindowResize (int newWidth, int newHeight)
 
RESOLUTION GetVideoResolution () const
 
const RESOLUTION_INFO GetResInfo () const
 
const RESOLUTION_INFO GetResInfo (RESOLUTION res) const
 
void SetResInfo (RESOLUTION res, const RESOLUTION_INFO &info)
 
void Flip (bool rendered, bool videoLayer)
 
int GetWidth () const
 
int GetHeight () const
 
bool SetViewPort (float fx, float fy, float fwidth, float fheight, bool intersectPrevious=false)
 
void RestoreViewPort ()
 
void SetScissors (const CRect &rect)
 
void ResetScissors ()
 
const CRect & GetScissors () const
 
const CRect GetViewWindow () const
 
void SetViewWindow (float left, float top, float right, float bottom)
 
bool SetGuiContentRect (const CRect &rect)
 Confine the GUI to rect, empty for the whole screen. Not persisted, unlike the overscan calibration.
 
void SetRasterAspect (float aspect)
 State the shape of the screen the display is projected onto, or zero for the display's own. Nothing drawn may exceed the raster this defines.
 
float GetRasterAspect () const
 The stated shape of the screen, or zero when the display's own is in force.
 
bool IsRasterShapeStated () const
 Stated, not in force: one suspended while a screen tool is up still counts.
 
CRect GetRasterRect () const
 The raster, in screen coordinates. The whole display when no shape is stated.
 
RESOLUTION_INFO GetRasterResInfo () const
 The resolution sized as the raster, for the skin's layout selection. A selection target, not a drawable resolution.
 
void SetGuiKeepShape (bool keepShape)
 Draw the interface at its authored proportions inside the area in force rather than stretching it to fill. A 16:9 skin in a 2.40 raster is then pillarboxed.
 
bool GetGuiKeepShape () const
 Asked for, not in force - unlike GetGuiKeepShapeRect(), which answers empty while the hold is merely suspended.
 
CRect GetGuiKeepShapeRect () const
 The rectangle the interface is held to, empty whenever no hold is in force.
 
CRect ClipToGui ()
 Confine the clip in force to the area the interface occupies.
 
CRect ClipToVideo ()
 Lift the clip to the whole display for the picture's render pass, which is contained by scaling rather than by the scissor.
 
CRect SetClip (const CRect &rect)
 Clip to exactly rect, re-applying no bound.
 
bool IsCalibrating () const
 Whether a screen tool is on screen. While one is, the raster and the proportions hold are suspended and the tool draws on the raw pixel grid.
 
void SetCalibrating (bool bOnOff)
 
void ResetOverscan (RESOLUTION res, OVERSCAN &overscan)
 
void ResetOverscan (RESOLUTION_INFO &resinfo)
 
void ResetScreenParameters (RESOLUTION res)
 
void CaptureStateBlock ()
 
void ApplyStateBlock ()
 
void Clear ()
 Invalidates color buffer, clears the depth buffer (if used). Will result in undefined color buffer values which will have to be repainted. Has to be called at the beginning of a frame.
 
void Clear (KODI::UTILS::COLOR::Color color)
 Clears the depth buffer (if used) and the color buffer. Guaranties a defined color buffer value. Has to be called at the beginning of a frame.
 
void GetAllowedResolutions (std::vector< RESOLUTION > &res)
 
void SetRenderOrder (RENDER_ORDER renderOrder)
 Sets the direction of the current rendering pass.
 
RENDER_ORDER GetRenderOrder ()
 Returns the current render order mode.
 
void ResetDepth ()
 Resets the z-depth. Layer 0 and 1 are reserved as presentation (video) layer.
 
uint32_t GetDepth (uint32_t addLayers=2)
 Reserve layers for the caller to use.
 
void GetGUIScaling (const RESOLUTION_INFO &res, float &scaleX, float &scaleY, TransformMatrix *matrix=NULL)
 
void SetRenderingResolution (const RESOLUTION_INFO &res, bool needsScaling)
 Sets scaling up for rendering.
 
void SetScalingResolution (const RESOLUTION_INFO &res, bool needsScaling)
 Sets scaling up for skin loading etc.
 
float GetScalingPixelRatio () const
 
void InvertFinalCoords (float &x, float &y) const
 
float ScaleFinalXCoord (float x, float y) const
 
float ScaleFinalYCoord (float x, float y) const
 
float ScaleFinalZCoord (float x, float y) const
 
void ScaleFinalCoords (float &x, float &y, float &z) const
 
bool RectIsAngled (float x1, float y1, float x2, float y2) const
 
const TransformMatrix & GetGUIMatrix () const
 
float GetGUIScaleX () const
 
float GetGUIScaleY () const
 
KODI::UTILS::COLOR::Color MergeAlpha (KODI::UTILS::COLOR::Color color) const
 
KODI::UTILS::COLOR::Color MergeColor (KODI::UTILS::COLOR::Color color) const
 
void SetOrigin (float x, float y)
 
void RestoreOrigin ()
 
void SetCameraPosition (const CPoint &camera)
 
void SetStereoView (RenderStereoView view)
 
RenderStereoView GetStereoView ()
 
void SetStereoMode (RenderStereoMode mode)
 
RenderStereoMode GetStereoMode ()
 
void RestoreCameraPosition ()
 
void SetStereoFactor (float factor)
 
void RestoreStereoFactor ()
 
float GetTransformDepth (int32_t depthOffset=0)
 Gets the depth information of the current transform matrix.
 
float GetNormalizedDepth (uint32_t depth)
 Gets the (normalized) depth information.
 
bool SetClipRegion (float x, float y, float w, float h)
 Set a region in which to clip all rendering Anything that is rendered after setting a clip region will be clipped so that no part renders outside of the clip region. Successive calls to SetClipRegion intersect the clip region, which means the clip region may eventually become an empty set. In this case SetClipRegion returns false to indicate that no rendering need be performed.
 
void RestoreClipRegion ()
 
void ClipRect (CRect &vertex, CRect &texture, CRect *diffuse=NULL)
 
CRect GetClipRegion ()
 
bool HasClipRegion () const
 
void AddGUITransform ()
 
TransformMatrix AddTransform (const TransformMatrix &matrix)
 
void SetTransform (const TransformMatrix &matrix)
 
void SetTransform (const TransformMatrix &matrix, float scaleX, float scaleY)
 
void RemoveTransform ()
 
CRect StereoCorrection (const CRect &rect) const
 
CPoint StereoCorrection (const CPoint &point) const
 
CRect GenerateAABB (const CRect &rect) const
 
const std::string & GetMediaDir () const
 
void SetMediaDir (const std::string &strMediaDir)
 
void SetTransferPQ (bool PQ)
 
bool IsTransferPQ () const
 
STENCIL_LAYER AddStencilRectToBucket (const CRect &newRect)
 Reserves an aabb to which a stencil drawcall should be made. Returns the bucket (or rather layer) to which the drawcall has to be applied to. If all 8 available buckets are full for a given area, it will signal so.
 
void ClearStencilBuckets ()
 Clears all stencil buckets. Should be called at the start of a new frame.
 
void SetStencilLayer (const STENCIL_LAYER stencilLayer)
 Pushes a new stencil layer to the stack. Child elements should render using this layer.
 
void RestoreStencilLayer ()
 Pops the current stencil layer.
 
STENCIL_LAYER GetStencilLayer ()
 Returns the current stencil layer.
 

Protected Member Functions

void UpdateCameraPosition (const CPoint &camera, const float &factor)
 
void SetVideoResolutionInternal (RESOLUTION res, bool forceUpdate)
 
void ApplyVideoResolution (RESOLUTION res)
 
void UpdateInternalStateWithResolution (RESOLUTION res)
 
CRect ClipBounds () const
 The furthest anything being drawn may reach: the raster for the interface, the whole display for the picture.
 
CRect ScreenRect () const
 
float RasterAspectInForce () const
 The stated shape put through ComputeRasterAspectInForce() for the state in hand.
 
bool GuiKeepShapeInForce () const
 The hold put through ComputeGuiKeepShape() for the state in hand.
 

Protected Attributes

int m_iScreenHeight = 576
 
int m_iScreenWidth = 720
 
std::string m_strMediaDir
 
CRect m_videoRect
 
CRect m_guiContentRect
 
float m_rasterAspect {0.0f}
 
bool m_guiKeepShape {false}
 
CRect m_guiRect
 The area the interface occupies, recorded by GetGUIScaling for the clip.
 
bool m_bFullScreenRoot = true
 
bool m_bFullScreenVideo = false
 
bool m_bCalibrating = false
 
RESOLUTION m_Resolution = RES_INVALID
 
float m_fFPSOverride = 0.0f
 
RESOLUTION_INFO m_windowResolution
 
std::stack< CPoint > m_cameras
 
std::stack< CPoint > m_origins
 
std::stack< STENCIL_LAYER > m_stencilLayers
 
std::array< std::vector< CRect >, 8 > m_stencilBuckets
 
std::stack< CRect > m_clipRegions
 
std::stack< float > m_stereoFactors
 
std::stack< CRect > m_viewStack
 
CRect m_scissors
 
UITransform m_guiTransform
 
UITransform m_finalTransform
 
std::stack< UITransform, std::vector< UITransform > > m_transforms
 
RenderStereoView m_stereoView = RenderStereoView::OFF
 
RenderStereoMode m_stereoMode = RenderStereoMode::OFF
 
RenderStereoMode m_nextStereoMode = RenderStereoMode::OFF
 
bool m_isTransferPQ {false}
 
RENDER_ORDER m_renderOrder {RENDER_ORDER_ALL_BACK_TO_FRONT}
 
uint32_t m_layer {2}
 

Constructor & Destructor Documentation

◆ CGraphicContext()

CGraphicContext::CGraphicContext ( void )
default

◆ ~CGraphicContext()

CGraphicContext::~CGraphicContext ( )
virtualdefault

Member Function Documentation

◆ AddGUITransform()

void CGraphicContext::AddGUITransform ( )

◆ AddStencilRectToBucket()

STENCIL_LAYER CGraphicContext::AddStencilRectToBucket ( const CRect & newRect)

Reserves an aabb to which a stencil drawcall should be made. Returns the bucket (or rather layer) to which the drawcall has to be applied to. If all 8 available buckets are full for a given area, it will signal so.

Parameters
newRectthe requested area the element wants to render to
See also
returns an available layer, or signals that all available buckets are full

◆ AddTransform()

TransformMatrix CGraphicContext::AddTransform ( const TransformMatrix & matrix)

◆ ApplyModeChange()

void CGraphicContext::ApplyModeChange ( RESOLUTION res)

◆ ApplyStateBlock()

void CGraphicContext::ApplyStateBlock ( )

◆ ApplyVideoResolution()

void CGraphicContext::ApplyVideoResolution ( RESOLUTION res)
protected

◆ ApplyWindowResize()

void CGraphicContext::ApplyWindowResize ( int newWidth,
int newHeight )

◆ CaptureStateBlock()

void CGraphicContext::CaptureStateBlock ( )

◆ Clear() [1/2]

void CGraphicContext::Clear ( )

Invalidates color buffer, clears the depth buffer (if used). Will result in undefined color buffer values which will have to be repainted. Has to be called at the beginning of a frame.

◆ Clear() [2/2]

void CGraphicContext::Clear ( KODI::UTILS::COLOR::Color color)

Clears the depth buffer (if used) and the color buffer. Guaranties a defined color buffer value. Has to be called at the beginning of a frame.

Parameters
colorthe specified color.

◆ ClearStencilBuckets()

void CGraphicContext::ClearStencilBuckets ( )

Clears all stencil buckets. Should be called at the start of a new frame.

◆ ClipBounds()

CRect CGraphicContext::ClipBounds ( ) const
protected

The furthest anything being drawn may reach: the raster for the interface, the whole display for the picture.

◆ ClipRect()

void CGraphicContext::ClipRect ( CRect & vertex,
CRect & texture,
CRect * diffuse = NULL )

◆ ClipToGui()

CRect CGraphicContext::ClipToGui ( )

Confine the clip in force to the area the interface occupies.

Returns
the previous clip

◆ ClipToVideo()

CRect CGraphicContext::ClipToVideo ( )

Lift the clip to the whole display for the picture's render pass, which is contained by scaling rather than by the scissor.

Returns
the previous clip

◆ Flip()

void CGraphicContext::Flip ( bool rendered,
bool videoLayer )

◆ GenerateAABB()

CRect CGraphicContext::GenerateAABB ( const CRect & rect) const

◆ GetAllowedResolutions()

void CGraphicContext::GetAllowedResolutions ( std::vector< RESOLUTION > & res)

◆ GetClipRegion()

CRect CGraphicContext::GetClipRegion ( )

◆ GetDepth()

uint32_t CGraphicContext::GetDepth ( uint32_t addLayers = 2)

Reserve layers for the caller to use.

Parameters
addLayersnumber of layers needed
Returns
uint32_t returns the absolute layer height

◆ GetDisplayLatency()

float CGraphicContext::GetDisplayLatency ( ) const

◆ GetFPS()

float CGraphicContext::GetFPS ( ) const

◆ GetGuiKeepShape()

bool CGraphicContext::GetGuiKeepShape ( ) const
inline

Asked for, not in force - unlike GetGuiKeepShapeRect(), which answers empty while the hold is merely suspended.

◆ GetGuiKeepShapeRect()

CRect CGraphicContext::GetGuiKeepShapeRect ( ) const

The rectangle the interface is held to, empty whenever no hold is in force.

◆ GetGUIMatrix()

const TransformMatrix & CGraphicContext::GetGUIMatrix ( ) const

◆ GetGUIScaleX()

float CGraphicContext::GetGUIScaleX ( ) const

◆ GetGUIScaleY()

float CGraphicContext::GetGUIScaleY ( ) const

◆ GetGUIScaling()

void CGraphicContext::GetGUIScaling ( const RESOLUTION_INFO & res,
float & scaleX,
float & scaleY,
TransformMatrix * matrix = NULL )

◆ GetHeight()

int CGraphicContext::GetHeight ( ) const

◆ GetMediaDir()

const std::string & CGraphicContext::GetMediaDir ( ) const

◆ GetNormalizedDepth()

float CGraphicContext::GetNormalizedDepth ( uint32_t depth)

Gets the (normalized) depth information.

Parameters
depthto be normalized
Returns
float normalized -1 to 1

◆ GetRasterAspect()

float CGraphicContext::GetRasterAspect ( ) const

The stated shape of the screen, or zero when the display's own is in force.

◆ GetRasterRect()

CRect CGraphicContext::GetRasterRect ( ) const

The raster, in screen coordinates. The whole display when no shape is stated.

◆ GetRasterResInfo()

RESOLUTION_INFO CGraphicContext::GetRasterResInfo ( ) const

The resolution sized as the raster, for the skin's layout selection. A selection target, not a drawable resolution.

◆ GetRenderOrder()

RENDER_ORDER CGraphicContext::GetRenderOrder ( )
inline

Returns the current render order mode.

Returns
RENDER_ORDER returns the mode

◆ GetResInfo() [1/2]

const RESOLUTION_INFO CGraphicContext::GetResInfo ( ) const

◆ GetResInfo() [2/2]

const RESOLUTION_INFO CGraphicContext::GetResInfo ( RESOLUTION res) const

◆ GetScalingPixelRatio()

float CGraphicContext::GetScalingPixelRatio ( ) const

◆ GetScissors()

const CRect & CGraphicContext::GetScissors ( ) const

◆ GetStencilLayer()

STENCIL_LAYER CGraphicContext::GetStencilLayer ( )

Returns the current stencil layer.

◆ GetStereoMode()

RenderStereoMode CGraphicContext::GetStereoMode ( )
inline

◆ GetStereoView()

RenderStereoView CGraphicContext::GetStereoView ( )
inline

◆ GetTransformDepth()

float CGraphicContext::GetTransformDepth ( int32_t depthOffset = 0)

Gets the depth information of the current transform matrix.

Parameters
depthOffsetadds an offset to the current depth
Returns
float normalized -1 to 1

◆ GetVideoResolution()

RESOLUTION CGraphicContext::GetVideoResolution ( ) const

◆ GetViewWindow()

const CRect CGraphicContext::GetViewWindow ( ) const

◆ GetWidth()

int CGraphicContext::GetWidth ( ) const

◆ GuiKeepShapeInForce()

bool CGraphicContext::GuiKeepShapeInForce ( ) const
protected

The hold put through ComputeGuiKeepShape() for the state in hand.

◆ HasClipRegion()

bool CGraphicContext::HasClipRegion ( ) const
inline

◆ InvertFinalCoords()

void CGraphicContext::InvertFinalCoords ( float & x,
float & y ) const

◆ IsCalibrating()

bool CGraphicContext::IsCalibrating ( ) const

Whether a screen tool is on screen. While one is, the raster and the proportions hold are suspended and the tool draws on the raw pixel grid.

◆ IsFullScreenRoot()

bool CGraphicContext::IsFullScreenRoot ( ) const

◆ IsFullScreenVideo()

bool CGraphicContext::IsFullScreenVideo ( ) const

◆ IsRasterShapeStated()

bool CGraphicContext::IsRasterShapeStated ( ) const
inline

Stated, not in force: one suspended while a screen tool is up still counts.

◆ IsTransferPQ()

bool CGraphicContext::IsTransferPQ ( ) const
inline

◆ IsValidResolution()

bool CGraphicContext::IsValidResolution ( RESOLUTION res)

◆ MergeAlpha()

Color CGraphicContext::MergeAlpha ( KODI::UTILS::COLOR::Color color) const

◆ MergeColor()

Color CGraphicContext::MergeColor ( KODI::UTILS::COLOR::Color color) const

◆ RasterAspectInForce()

float CGraphicContext::RasterAspectInForce ( ) const
protected

The stated shape put through ComputeRasterAspectInForce() for the state in hand.

◆ RectIsAngled()

bool CGraphicContext::RectIsAngled ( float x1,
float y1,
float x2,
float y2 ) const

◆ RemoveTransform()

void CGraphicContext::RemoveTransform ( )

◆ ResetDepth()

void CGraphicContext::ResetDepth ( )
inline

Resets the z-depth. Layer 0 and 1 are reserved as presentation (video) layer.

◆ ResetOverscan() [1/2]

void CGraphicContext::ResetOverscan ( RESOLUTION res,
OVERSCAN & overscan )

◆ ResetOverscan() [2/2]

void CGraphicContext::ResetOverscan ( RESOLUTION_INFO & resinfo)

◆ ResetScissors()

void CGraphicContext::ResetScissors ( )

◆ ResetScreenParameters()

void CGraphicContext::ResetScreenParameters ( RESOLUTION res)

◆ RestoreCameraPosition()

void CGraphicContext::RestoreCameraPosition ( )

◆ RestoreClipRegion()

void CGraphicContext::RestoreClipRegion ( )

◆ RestoreOrigin()

void CGraphicContext::RestoreOrigin ( )

◆ RestoreStencilLayer()

void CGraphicContext::RestoreStencilLayer ( )

Pops the current stencil layer.

◆ RestoreStereoFactor()

void CGraphicContext::RestoreStereoFactor ( )

◆ RestoreViewPort()

void CGraphicContext::RestoreViewPort ( )

◆ ScaleFinalCoords()

void CGraphicContext::ScaleFinalCoords ( float & x,
float & y,
float & z ) const

◆ ScaleFinalXCoord()

float CGraphicContext::ScaleFinalXCoord ( float x,
float y ) const

◆ ScaleFinalYCoord()

float CGraphicContext::ScaleFinalYCoord ( float x,
float y ) const

◆ ScaleFinalZCoord()

float CGraphicContext::ScaleFinalZCoord ( float x,
float y ) const

◆ ScreenRect()

CRect CGraphicContext::ScreenRect ( ) const
protected

◆ SetCalibrating()

void CGraphicContext::SetCalibrating ( bool bOnOff)

◆ SetCameraPosition()

void CGraphicContext::SetCameraPosition ( const CPoint & camera)

◆ SetClip()

CRect CGraphicContext::SetClip ( const CRect & rect)

Clip to exactly rect, re-applying no bound.

Returns
the previous clip

◆ SetClipRegion()

bool CGraphicContext::SetClipRegion ( float x,
float y,
float w,
float h )

Set a region in which to clip all rendering Anything that is rendered after setting a clip region will be clipped so that no part renders outside of the clip region. Successive calls to SetClipRegion intersect the clip region, which means the clip region may eventually become an empty set. In this case SetClipRegion returns false to indicate that no rendering need be performed.

This call must be matched with a RestoreClipRegion call unless SetClipRegion returns false.

Usage should be of the form:

if (SetClipRegion(x, y, w, h)) { ... perform rendering ... RestoreClipRegion(); }

Parameters
xthe left-most coordinate of the clip region
ythe top-most coordinate of the clip region
wthe width of the clip region
hthe height of the clip region
Returns
true if the region is set and the result is non-empty. Returns false if the resulting region is empty.
See also
RestoreClipRegion

◆ SetFPS()

void CGraphicContext::SetFPS ( float fps)

◆ SetFullScreenVideo()

void CGraphicContext::SetFullScreenVideo ( bool bOnOff)

◆ SetGuiContentRect()

bool CGraphicContext::SetGuiContentRect ( const CRect & rect)

Confine the GUI to rect, empty for the whole screen. Not persisted, unlike the overscan calibration.

Returns
whether the confinement changed

◆ SetGuiKeepShape()

void CGraphicContext::SetGuiKeepShape ( bool keepShape)

Draw the interface at its authored proportions inside the area in force rather than stretching it to fill. A 16:9 skin in a 2.40 raster is then pillarboxed.

◆ SetMediaDir()

void CGraphicContext::SetMediaDir ( const std::string & strMediaDir)

◆ SetOrigin()

void CGraphicContext::SetOrigin ( float x,
float y )

◆ SetRasterAspect()

void CGraphicContext::SetRasterAspect ( float aspect)

State the shape of the screen the display is projected onto, or zero for the display's own. Nothing drawn may exceed the raster this defines.

◆ SetRenderingResolution()

void CGraphicContext::SetRenderingResolution ( const RESOLUTION_INFO & res,
bool needsScaling )

Sets scaling up for rendering.

◆ SetRenderOrder()

void CGraphicContext::SetRenderOrder ( RENDER_ORDER renderOrder)

Sets the direction of the current rendering pass.

Parameters
renderOrderdirection of the pass

◆ SetResInfo()

void CGraphicContext::SetResInfo ( RESOLUTION res,
const RESOLUTION_INFO & info )

◆ SetScalingResolution()

void CGraphicContext::SetScalingResolution ( const RESOLUTION_INFO & res,
bool needsScaling )

Sets scaling up for skin loading etc.

◆ SetScissors()

void CGraphicContext::SetScissors ( const CRect & rect)

◆ SetStencilLayer()

void CGraphicContext::SetStencilLayer ( const STENCIL_LAYER stencilLayer)

Pushes a new stencil layer to the stack. Child elements should render using this layer.

Parameters
stencilLayerthe layer which to be added.

◆ SetStereoFactor()

void CGraphicContext::SetStereoFactor ( float factor)

◆ SetStereoMode()

void CGraphicContext::SetStereoMode ( RenderStereoMode mode)
inline

◆ SetStereoView()

void CGraphicContext::SetStereoView ( RenderStereoView view)

◆ SetTransferPQ()

void CGraphicContext::SetTransferPQ ( bool PQ)
inline

◆ SetTransform() [1/2]

void CGraphicContext::SetTransform ( const TransformMatrix & matrix)

◆ SetTransform() [2/2]

void CGraphicContext::SetTransform ( const TransformMatrix & matrix,
float scaleX,
float scaleY )

◆ SetVideoResolution()

void CGraphicContext::SetVideoResolution ( RESOLUTION res,
bool forceUpdate,
CEvent * abortEvent = nullptr )

Switch the video resolution on the app thread.

Parameters
abortEventoff the app thread, once set drop the switch and stop waiting, unless the app thread has already started it, in which case wait for it to finish

◆ SetVideoResolutionInternal()

void CGraphicContext::SetVideoResolutionInternal ( RESOLUTION res,
bool forceUpdate )
protected

◆ SetViewPort()

bool CGraphicContext::SetViewPort ( float fx,
float fy,
float fwidth,
float fheight,
bool intersectPrevious = false )

◆ SetViewWindow()

void CGraphicContext::SetViewWindow ( float left,
float top,
float right,
float bottom )

◆ StereoCorrection() [1/2]

CPoint CGraphicContext::StereoCorrection ( const CPoint & point) const

◆ StereoCorrection() [2/2]

CRect CGraphicContext::StereoCorrection ( const CRect & rect) const

◆ ToggleFullScreen()

void CGraphicContext::ToggleFullScreen ( )

◆ UpdateCameraPosition()

void CGraphicContext::UpdateCameraPosition ( const CPoint & camera,
const float & factor )
protected

◆ UpdateInternalStateWithResolution()

void CGraphicContext::UpdateInternalStateWithResolution ( RESOLUTION res)
protected

Member Data Documentation

◆ m_bCalibrating

bool CGraphicContext::m_bCalibrating = false
protected

◆ m_bFullScreenRoot

bool CGraphicContext::m_bFullScreenRoot = true
protected

◆ m_bFullScreenVideo

bool CGraphicContext::m_bFullScreenVideo = false
protected

◆ m_cameras

std::stack<CPoint> CGraphicContext::m_cameras
protected

◆ m_clipRegions

std::stack<CRect> CGraphicContext::m_clipRegions
protected

◆ m_fFPSOverride

float CGraphicContext::m_fFPSOverride = 0.0f
protected

◆ m_finalTransform

UITransform CGraphicContext::m_finalTransform
protected

◆ m_guiContentRect

CRect CGraphicContext::m_guiContentRect
protected

◆ m_guiKeepShape

bool CGraphicContext::m_guiKeepShape {false}
protected

◆ m_guiRect

CRect CGraphicContext::m_guiRect
protected

The area the interface occupies, recorded by GetGUIScaling for the clip.

◆ m_guiTransform

UITransform CGraphicContext::m_guiTransform
protected

◆ m_iScreenHeight

int CGraphicContext::m_iScreenHeight = 576
protected

◆ m_iScreenWidth

int CGraphicContext::m_iScreenWidth = 720
protected

◆ m_isTransferPQ

bool CGraphicContext::m_isTransferPQ {false}
protected

◆ m_layer

uint32_t CGraphicContext::m_layer {2}
protected

◆ m_nextStereoMode

RenderStereoMode CGraphicContext::m_nextStereoMode = RenderStereoMode::OFF
protected

◆ m_origins

std::stack<CPoint> CGraphicContext::m_origins
protected

◆ m_rasterAspect

float CGraphicContext::m_rasterAspect {0.0f}
protected

◆ m_renderOrder

RENDER_ORDER CGraphicContext::m_renderOrder {RENDER_ORDER_ALL_BACK_TO_FRONT}
protected

◆ m_Resolution

RESOLUTION CGraphicContext::m_Resolution = RES_INVALID
protected

◆ m_scissors

CRect CGraphicContext::m_scissors
protected

◆ m_stencilBuckets

std::array<std::vector<CRect>, 8> CGraphicContext::m_stencilBuckets
protected

◆ m_stencilLayers

std::stack<STENCIL_LAYER> CGraphicContext::m_stencilLayers
protected

◆ m_stereoFactors

std::stack<float> CGraphicContext::m_stereoFactors
protected

◆ m_stereoMode

RenderStereoMode CGraphicContext::m_stereoMode = RenderStereoMode::OFF
protected

◆ m_stereoView

RenderStereoView CGraphicContext::m_stereoView = RenderStereoView::OFF
protected

◆ m_strMediaDir

std::string CGraphicContext::m_strMediaDir
protected

◆ m_transforms

std::stack<UITransform, std::vector<UITransform> > CGraphicContext::m_transforms
protected

◆ m_videoRect

CRect CGraphicContext::m_videoRect
protected

◆ m_viewStack

std::stack<CRect> CGraphicContext::m_viewStack
protected

◆ m_windowResolution

RESOLUTION_INFO CGraphicContext::m_windowResolution
protected

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