SBSPSS/Utils/MapEdit/Layer.h

58 lines
1.1 KiB
C
Raw Normal View History

2000-09-25 17:43:52 +02:00
/******************/
/*** Layer Core ***/
/******************/
#ifndef __LAYER_HEADER__
#define __LAYER_HEADER__
#include <Vector>
#include "gl3d.h"
2000-11-02 16:46:17 +01:00
#include "Map.h"
2000-09-25 17:43:52 +02:00
2000-11-03 23:40:41 +01:00
/*****************************************************************************/
enum LAYER_ENUMS
{
SELECT_BUFFER_SIZE=16,
};
/*****************************************************************************/
2000-10-25 20:28:44 +02:00
enum LAYER_TYPE
{
LAYER_TYPE_BACK=0,
LAYER_TYPE_MID,
LAYER_TYPE_ACTION,
LAYER_TYPE_FORE,
LAYER_TYPE_MAX
};
2000-09-25 17:43:52 +02:00
/*****************************************************************************/
2000-11-02 16:46:17 +01:00
class CCore;
2000-11-06 21:24:11 +01:00
class CMapEditView;
2000-09-25 17:43:52 +02:00
class CLayer
{
public:
2000-11-07 21:38:19 +01:00
CLayer(){};
virtual ~CLayer(){};
2000-09-25 17:43:52 +02:00
2000-11-07 21:38:19 +01:00
virtual char *GetName();
virtual void SetName(char *_Name);
2000-09-25 17:43:52 +02:00
2000-11-07 21:38:19 +01:00
virtual float GetLayerZPosDiv() {return(ZPosDiv);}
2000-09-25 17:43:52 +02:00
2000-11-07 21:38:19 +01:00
virtual void Render(CCore *Core,Vec &MapPos,BOOL Is3d)=0;
virtual void RenderGrid(CCore *Core,Vec &MapPos)=0;
2000-09-25 17:43:52 +02:00
2000-11-07 21:38:19 +01:00
virtual void FindCursorPos(CCore *Core,CMapEditView *View,Vec &MapPos,CPoint &MousePos)=0;
2000-11-02 16:46:17 +01:00
2000-11-07 21:38:19 +01:00
protected:
char Name[256];
BOOL Render3dFlag;
float ZPosDiv;
2000-09-25 17:43:52 +02:00
};
2000-11-02 16:46:17 +01:00
2000-09-25 17:43:52 +02:00
/*****************************************************************************/
#endif