2 #include "IAttributeFields.h" 3 #include "ViewportManager.h" 10 VIEW_LAYOUT_STEREO_LEFT_RIGHT,
11 VIEW_LAYOUT_STEREO_UP_DOWN,
12 VIEW_LAYOUT_STEREO_RED_BLUE,
40 HRESULT
Render(
double dTimeDelta,
int nPipelineOrder);
48 CViewport* GetViewportByPoint(
int x,
int y);
52 VIEWPORT_LAYOUT GetLayout();
57 int GetViewportCount();
58 void SetViewportCount(
int nCount);
69 void SetActiveViewPortIndex(
int val);
70 void SetActiveViewPort(
CViewport* pViewport);
72 void DeleteViewPort(
int nIndex=0);
77 int GetHeight()
const;
81 int getCurrentFrameNumber()
const 83 return m_nCurrentFrameNumber;
89 std::vector<CViewport*> m_viewportList;
90 std::vector<CViewport*> m_viewportSorted;
95 int m_nActiveViewPortIndex;
96 VIEWPORT_LAYOUT m_nLayout;
97 int m_nCurrentFrameNumber;
an attribute class is a collection of attribute fields.
Definition: AttributeClass.h:10
CViewport * CreateGetViewPort(int nIndex=1)
add view port
Definition: ViewportManager.cpp:54
virtual IAttributeFields * GetChildAttributeObject(const std::string &sName)
get attribute by child object.
Definition: ViewportManager.cpp:333
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual int GetChildAttributeObjectCount(int nColumnIndex=0)
get the number of child objects (row count) in the given column.
Definition: ViewportManager.cpp:328
void SetLayout(VIEWPORT_LAYOUT nLayout, CSceneObject *pMainScene=NULL, CGUIRoot *pGUIRoot=NULL)
set default view layout
Definition: ViewportManager.cpp:205
Definition: ParaViewport.h:5
virtual int InstallFields(CAttributeClass *pClass, bool bOverride)
this class should be implemented if one wants to add new attribute.
Definition: ViewportManager.cpp:348
a region of view port to render into.
Definition: Viewport.h:21
void GetPointOnViewport(int &x, int &y, int *pWidth, int *pHeight)
Definition: ViewportManager.cpp:128
A common interface for all classes implementing IAttributeFields By implementing this class's virtual...
Definition: IAttributeFields.h:59
The top level scene management class.
Definition: SceneObject.h:58
HRESULT Render(double dTimeDelta, int nPipelineOrder)
render all view ports
Definition: ViewportManager.cpp:103
manager multiple viewport
Definition: ViewportManager.h:18
void UpdateLayout()
just in case the size changed.
Definition: ViewportManager.cpp:183
void GetCurrentViewport(ParaViewport &out)
get current viewport
Definition: ViewportManager.cpp:323
void UpdateViewport(int nBackbufferWidth, int nBackbufferHeight)
call this function when the window size and screen back buffer size is changed
Definition: ViewportManager.cpp:32
When rendering scene, root scene and the root GUI are rendered in sequence.
Definition: GUIRoot.h:48