ezEngine  Milestone 7
ezViewData Struct Reference

Holds view data like the viewport, view and projection matrices. More...

#include <ViewData.h>

Public Member Functions

ezResult ComputePickingRay (float fScreenPosX, float fScreenPosY, ezVec3 &out_RayStartPos, ezVec3 &out_RayDir)
 Returns the start position and direction (in world space) of the picking ray through the screen position in this view. More...
 

Public Attributes

ezRectFloat m_ViewPortRect
 
ezMat4 m_ViewMatrix
 
ezMat4 m_InverseViewMatrix
 
ezMat4 m_ProjectionMatrix
 
ezMat4 m_InverseProjectionMatrix
 
ezMat4 m_ViewProjectionMatrix
 
ezMat4 m_InverseViewProjectionMatrix
 

Detailed Description

Holds view data like the viewport, view and projection matrices.

Member Function Documentation

ezResult ezViewData::ComputePickingRay ( float  fScreenPosX,
float  fScreenPosY,
ezVec3 out_RayStartPos,
ezVec3 out_RayDir 
)
inline

Returns the start position and direction (in world space) of the picking ray through the screen position in this view.

fScreenPosX and fScreenPosY are expected to be in [0; 1] range (normalized pixel coordinates). If no ray can be computed, EZ_FAILURE is returned.


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