![]() |
ezEngine
Milestone 7
|
Encapsulates a view on the given world through the given camera and rendered with the specified RenderPipeline. More...
#include <View.h>
Public Member Functions | |
void | SetName (const char *szName) |
const char * | GetName () const |
void | SetWorld (ezWorld *pWorld) |
ezWorld * | GetWorld () |
const ezWorld * | GetWorld () const |
void | SetRenderPipeline (ezUniquePtr< ezRenderPipeline > &&pRenderPipeline) |
ezRenderPipeline * | GetRenderPipeline () const |
void | SetLogicCamera (const ezCamera *pCamera) |
const ezCamera * | GetLogicCamera () const |
void | SetRenderCamera (const ezCamera *pCamera) |
const ezCamera * | GetRenderCamera () const |
void | SetViewport (const ezRectFloat &viewport) |
const ezRectFloat & | GetViewport () const |
const ezViewData & | GetData () const |
bool | IsValid () const |
void | ExtractData () |
Extracts all relevant data from the world to render the view. | |
ezTask * | GetExtractTask () |
Returns a task implementation that calls ExtractData on this view. | |
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... | |
const ezMat4 & | GetProjectionMatrix () const |
Returns the current projection matrix. | |
const ezMat4 & | GetInverseProjectionMatrix () const |
Returns the current inverse projection matrix. | |
const ezMat4 & | GetViewMatrix () const |
Returns the current view matrix (camera orientation). | |
const ezMat4 & | GetInverseViewMatrix () const |
Returns the current inverse view matrix (inverse camera orientation). | |
const ezMat4 & | GetViewProjectionMatrix () const |
Returns the current view-projection matrix. | |
const ezMat4 & | GetInverseViewProjectionMatrix () const |
Returns the current inverse view-projection matrix. | |
![]() | |
void | InitializePins () |
const ezNodePin * | GetPinByName (const char *szName) const |
![]() | |
EZ_FORCE_INLINE bool | IsInstanceOf (const ezRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
EZ_FORCE_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
virtual void | Serialize (ezArchiveWriter &stream) const |
This function is called to serialize the instance. More... | |
virtual void | Deserialize (ezArchiveReader &stream) |
This function is called to deserialize the instance. More... | |
virtual void | OnDeserialized () |
This function is called after all objects are deserialized and thus all references to other objects are valid. More... | |
Public Attributes | |
ezTagSet | m_IncludeTags |
ezTagSet | m_ExcludeTags |
Private Member Functions | |
EZ_ADD_DYNAMIC_REFLECTION (ezView) | |
ezView () | |
Use ezRenderLoop::CreateView to create a view. | |
void | UpdateCachedMatrices () const |
Private Attributes | |
ezHashedString | m_sName |
ezProfilingId | m_ExtractDataProfilingID |
ezDelegateTask< void > | m_ExtractTask |
ezWorld * | m_pWorld |
ezUniquePtr< ezRenderPipeline > | m_pRenderPipeline |
const ezCamera * | m_pLogicCamera |
const ezCamera * | m_pRenderCamera |
ezInputNodePin | m_PinRenderTarget0 |
ezInputNodePin | m_PinRenderTarget1 |
ezInputNodePin | m_PinRenderTarget2 |
ezInputNodePin | m_PinRenderTarget3 |
ezInputNodePin | m_PinDepthStencil |
ezUInt32 | m_uiLastCameraSettingsModification |
ezUInt32 | m_uiLastCameraOrientationModification |
float | m_fLastViewportAspectRatio |
ezViewData | m_Data |
Friends | |
class | ezRenderLoop |
Additional Inherited Members | |
![]() | |
static const ezRTTI * | GetStaticRTTI () |
Encapsulates a view on the given world through the given camera and rendered with the specified RenderPipeline.
EZ_FORCE_INLINE ezResult ezView::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.
fScreenPosX and fScreenPosY are expected to be in [0; 1] range (normalized pixel coordinates). If no ray can be computed, EZ_FAILURE is returned.