52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/****************/
|
|
/*** Layer FX ***/
|
|
/****************/
|
|
|
|
#ifndef __LAYER_FX_HEADER__
|
|
#define __LAYER_FX_HEADER__
|
|
|
|
#include "LayerThing.h"
|
|
#include "Layer.h"
|
|
#include "MapEdit.h"
|
|
#include "GUILayerFX.h"
|
|
#include "Elem.h"
|
|
|
|
/*****************************************************************************/
|
|
class CLayerFX : public CLayerThing
|
|
{
|
|
public:
|
|
|
|
CLayerFX(sLayerDef &Def);
|
|
CLayerFX(CFile *File,int Version) {Load(File,Version);}
|
|
|
|
void InitLayer(sLayerDef &Def);
|
|
void InitSubView(CCore *Core);
|
|
|
|
void LoadDefThing(const char *Name,sLayerThing &ThisDef);
|
|
void LoadOldThing(CFile *File,sLayerThing &ThisThing);
|
|
|
|
void GUIInit(CCore *Core);
|
|
void GUIKill(CCore *Core);
|
|
void GUIUpdate(CCore *Core);
|
|
void GUIChanged(CCore *Core);
|
|
bool GUIReady();
|
|
|
|
void GUIThingDefClear();
|
|
void GUIThingUpdate(bool OnlySel=false);
|
|
void GUIThingPointUpdate(bool OnlySel=false);
|
|
|
|
virtual bool CanMirror(){return(true);}
|
|
virtual bool CanRotate(){return(true);}
|
|
|
|
|
|
protected:
|
|
void RenderThing(CCore *Core,Vector3 &CamPos,sLayerThing &ThisThing,bool Render3d,bool Selected);
|
|
void SetThingParams(sLayerThing &Thing);
|
|
|
|
CGUILayerFX GUIFX;
|
|
|
|
};
|
|
|
|
/*****************************************************************************/
|
|
#endif
|