2001-02-09 22:17:01 +01:00
|
|
|
/*******************/
|
|
|
|
/*** Layer Shade ***/
|
|
|
|
/*******************/
|
|
|
|
|
|
|
|
#ifndef __LAYER_SHADE_HEADER__
|
|
|
|
#define __LAYER_SHADE_HEADER__
|
|
|
|
|
|
|
|
#include "Layer.h"
|
|
|
|
#include "MapEdit.h"
|
2001-03-13 22:00:34 +01:00
|
|
|
#include "GUILayerShade.h"
|
2001-02-09 22:17:01 +01:00
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
class CCore;
|
|
|
|
class CLayerShade : public CLayer
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2001-02-16 19:23:01 +01:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
LAYER_SHADE_RGB_MAX=4,
|
|
|
|
};
|
2001-02-09 22:17:01 +01:00
|
|
|
CLayerShade(){};
|
|
|
|
CLayerShade(int SubType,int Width,int Height); // New Layer
|
|
|
|
CLayerShade(CFile *File,int Version); // Load Layer
|
|
|
|
~CLayerShade();
|
|
|
|
|
|
|
|
int GetType() {return(LAYER_TYPE_SHADE);}
|
|
|
|
int GetSubType() {return(SubType);}
|
|
|
|
|
2001-03-01 18:28:20 +01:00
|
|
|
void Render(CCore *Core,Vector3 &CamPos,bool Is3d);
|
|
|
|
void RenderGrid(CCore *Core,Vector3 &CamPos,bool Active){};
|
2001-02-09 22:17:01 +01:00
|
|
|
void RenderSelection(CCore *Core,Vector3 &ThisCam){};
|
|
|
|
|
2001-03-01 18:28:20 +01:00
|
|
|
void RenderCursor(CCore *Core,Vector3 &CamPos,bool Is3d){};
|
2001-02-09 22:17:01 +01:00
|
|
|
|
|
|
|
void GUIInit(CCore *Core);
|
|
|
|
void GUIKill(CCore *Core);
|
|
|
|
void GUIUpdate(CCore *Core);
|
|
|
|
void GUIChanged(CCore *Core);
|
|
|
|
|
|
|
|
int GetWidth() {return(Width);}
|
|
|
|
int GetHeight() {return(Height);}
|
2001-03-01 18:28:20 +01:00
|
|
|
bool Resize(int _Width,int _Height);
|
2001-02-09 22:17:01 +01:00
|
|
|
|
|
|
|
void Load(CFile *File,int Version);
|
|
|
|
void Save(CFile *File);
|
|
|
|
|
|
|
|
void Export(CCore *Core,CExport &Exp);
|
|
|
|
|
|
|
|
// Functions
|
|
|
|
|
|
|
|
protected:
|
2001-03-01 18:28:20 +01:00
|
|
|
void Render(CCore *Core,Vector3 &CamPos,CMap &ThisMap,bool Render3d,float Alpha=1.0f,Vector3 *Ofs=0);
|
2001-02-09 22:17:01 +01:00
|
|
|
|
|
|
|
int Width,Height;
|
|
|
|
int SubType;
|
|
|
|
|
2001-03-13 22:00:34 +01:00
|
|
|
CGUILayerShade GUI;
|
2001-02-09 22:17:01 +01:00
|
|
|
|
2001-02-20 16:57:03 +01:00
|
|
|
int Count;
|
|
|
|
int Pos[LAYER_SHADE_RGB_MAX];
|
2001-02-16 19:23:01 +01:00
|
|
|
RGBQUAD RGB[LAYER_SHADE_RGB_MAX];
|
2001-02-09 22:17:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
#endif
|