This commit is contained in:
Daveo 2000-09-22 21:19:46 +00:00
parent 0cdff1e9c9
commit e04ad09c18
5 changed files with 196 additions and 51 deletions

View file

@ -6,6 +6,7 @@
#define __CORE_HEADER__
#include <Vector>
#include "gl3d.h"
/*****************************************************************************/
@ -17,11 +18,24 @@ struct sLayer
};
/*****************************************************************************/
class CMapEditView;
class CCore
{
public:
CCore();
~CCore();
// Control
void LButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void MButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void RButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void MouseWheel(UINT nFlags, short zDelta, CPoint &pt);
void MouseMove(UINT nFlags, CPoint &point, BOOL CaptureFlag);
// Blah
void Init(CMapEditView *Wnd);
void Render();
void UpdateView(float XOfs,float YOfs,float ZOfs);
// Layers
void LayerAdd(char *Name=0);
@ -36,9 +50,14 @@ public:
private:
CMapEditView *ParentWindow;
CPoint CurrentMousePos,LastMousePos;
Vec ViewPos;
std::vector<sLayer> Layers;
int ActiveLayer;
std::vector<sLayer> Layers;
int ActiveLayer;
};
/*****************************************************************************/