Refactored rendering functions.

This commit is contained in:
nobody 2012-01-28 01:05:23 +00:00
parent 59e6698ac9
commit de0d305b3d
3 changed files with 319 additions and 505 deletions

File diff suppressed because it is too large Load diff

View file

@ -172,7 +172,7 @@ protected:
void RemovePiece(Piece* pPiece);
bool RemoveSelectedObjects();
void GetPieceInsertPosition(Piece* OffsetPiece, Vector3& Position, Vector4& Rotation);
void GetPieceInsertPosition(int MouseX, int MouseY, Vector3& Position, Vector4& Orientation);
void GetPieceInsertPosition(View* view, int MouseX, int MouseY, Vector3& Position, Vector4& Orientation);
void FindObjectFromPoint(int x, int y, LC_CLICKLINE* pLine, bool PiecesOnly = false);
void FindObjectsInBox(float x1, float y1, float x2, float y2, PtrArray<Object>& Objects);
void SelectAndFocusNone(bool bFocusOnly);
@ -192,11 +192,12 @@ protected:
// Rendering
void RenderBackground(View* view);
void RenderScenePieces(View* view);
void RenderSceneBoxes(View* view);
void RenderSceneObjects(View* view);
void RenderViewports(View* view);
void RenderOverlays(View* view);
void RenderScene(bool bShaded, bool bDrawViewports);
void RenderViewports(bool bBackground, bool bLines);
void RenderOverlays(int Viewport);
void RenderBoxes(bool bHilite);
void RenderInitialize();
void CreateHTMLPieceList(FILE* f, int nStep, bool bImages, const char* ext);

View file

@ -251,6 +251,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
}
m_wndProperties.EnableDocking(CBRS_ALIGN_ANY);
ShowPane(&m_wndProperties, FALSE, FALSE, FALSE);
DockPane(&m_wndProperties);
EnableDocking(CBRS_ALIGN_ANY);