using now IMGUI for the GUI and removed the Overlay based interface
This commit is contained in:
@@ -62,8 +62,6 @@ int ViewBase::OnInit (int argc, char* argv[]) {
|
||||
mOverlayManager.Register (console_overlay, 0);
|
||||
//AddOverlay (console_overlay);
|
||||
|
||||
mDrawAxis = false;
|
||||
|
||||
mDrawGrid = false;
|
||||
mGridSizeX = 8;
|
||||
mGridSizeZ = 8;
|
||||
@@ -178,9 +176,6 @@ void ViewBase::Draw () {
|
||||
if (mDrawGrid)
|
||||
DrawGrid ();
|
||||
|
||||
if (mDrawAxis)
|
||||
DrawAxis ();
|
||||
|
||||
DrawWorld ();
|
||||
|
||||
mOverlayManager.Draw();
|
||||
|
||||
+6
-4
@@ -76,6 +76,7 @@ class ViewBase : public Module{
|
||||
bool SendMouseButtonDown (Uint8 button, Uint16 xpos, Uint16 ypos);
|
||||
*/
|
||||
|
||||
private:
|
||||
protected:
|
||||
/** \brief Initializes the system */
|
||||
virtual int OnInit (int argc, char* argv[]);
|
||||
@@ -84,13 +85,16 @@ class ViewBase : public Module{
|
||||
|
||||
/** \brief Updates the camera for further drawing */
|
||||
virtual void UpdateCamera ();
|
||||
/** \brief Draws a grid of 16 x 16 tiles */
|
||||
void DrawGrid ();
|
||||
/** \brief Draws the level and all the visible Entities */
|
||||
virtual void DrawWorld ();
|
||||
/** \brief Draws orthographic overlay*/
|
||||
void DrawOverlay2D ();
|
||||
|
||||
/** \brief Draws a grid of 16 x 16 tiles */
|
||||
void DrawGrid ();
|
||||
bool mDrawGrid;
|
||||
|
||||
|
||||
ModelBase *mModel;
|
||||
CameraBase *mCamera;
|
||||
|
||||
@@ -105,8 +109,6 @@ class ViewBase : public Module{
|
||||
/** \brief Stores the current frame rate */
|
||||
int mFrameRate;
|
||||
|
||||
bool mDrawAxis;
|
||||
bool mDrawGrid;
|
||||
int mGridSizeX;
|
||||
int mGridSizeZ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user