This commit is contained in:
parent
0cdff1e9c9
commit
e04ad09c18
5 changed files with 196 additions and 51 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue