![]() |
XII Release 0.1.0
|
Represents the view/window on the engine process side, holds all data necessary for rendering. More...
#include <EngineProcessViewContext.h>
Public Member Functions | |
xiiEngineProcessViewContext (xiiEngineProcessDocumentContext *pContext) | |
void | SetViewID (xiiUInt32 uiId) |
xiiEngineProcessDocumentContext * | GetDocumentContext () const |
virtual void | HandleViewMessage (const xiiEditorEngineViewMsg *pMsg) |
virtual void | SetupRenderTarget (xiiSharedPtr< xiiGALSwapChain > pSwapChain, const xiiRenderTargets *pRenderTargets, xiiUInt16 uiWidth, xiiUInt16 uiHeight) |
virtual void | Redraw (bool bRenderEditorGizmos) |
xiiViewHandle | GetViewHandle () const |
void | DrawSimpleGrid () const |
Static Public Member Functions | |
static bool | FocusCameraOnObject (xiiCamera &inout_camera, const xiiBoundingBoxSphere &objectBounds, float fFov, const xiiVec3 &vViewDir) |
Focuses camera on the given object. | |
Protected Member Functions | |
void | SendViewMessage (xiiEditorEngineViewMsg *pViewMsg) |
void | HandleWindowUpdate (xiiWindowHandle hWnd, xiiUInt16 uiWidth, xiiUInt16 uiHeight) |
void | OnSwapChainChanged (xiiSharedPtr< xiiGALSwapChain > pSwapChain, xiiSizeU32 size) |
virtual void | SetCamera (const xiiViewRedrawMsgToEngine *pMsg) |
virtual xiiRenderPipelineResourceHandle | CreateDefaultRenderPipeline () |
Returns the handle to the default render pipeline. | |
virtual xiiRenderPipelineResourceHandle | CreateDebugRenderPipeline () |
Returns the handle to the debug render pipeline. | |
virtual xiiViewHandle | CreateView ()=0 |
Create the actual view. | |
Protected Attributes | |
xiiCamera | m_Camera |
xiiViewHandle | m_hView |
xiiUInt32 | m_uiViewID |
Represents the view/window on the engine process side, holds all data necessary for rendering.
|
protectedpure virtual |
Create the actual view.
Implemented in xiiAnimatedMeshViewContext, xiiAnimationClipViewContext, xiiDecalViewContext, xiiMaterialViewContext, xiiMeshViewContext, xiiRemoteEngineProcessViewContext, xiiSceneViewContext, xiiSkeletonViewContext, xiiTextureCubeViewContext, and xiiTextureViewContext.