SBSPSS/source/level/layertile3d.h

35 lines
815 B
C
Raw Normal View History

2000-12-14 17:38:34 +01:00
/***************************/
/*** 3d Tile Layer Class ***/
/***************************/
2000-12-14 17:01:49 +01:00
2000-12-14 17:38:34 +01:00
#ifndef __LAYER_TILE_3D_H__
#define __LAYER_TILE_3D_H__
2000-12-14 17:01:49 +01:00
/*****************************************************************************/
2000-12-14 17:38:34 +01:00
class CLayerTile3d : public CLayerTile
2000-12-14 17:01:49 +01:00
{
public:
2000-12-14 17:38:34 +01:00
CLayerTile3d(sLayerHdr *Hdr,sTile *TileList,sTri *TriList,sQuad *QuadList,sVtx *VtxList);
~CLayerTile3d();
2000-12-14 17:01:49 +01:00
2001-01-09 21:38:20 +01:00
void init(DVECTOR &MapPos,int Shift,int Width,int Height);
2001-01-04 22:53:14 +01:00
void shutdown();
void render();
2000-12-14 17:01:49 +01:00
protected:
2001-01-04 22:53:14 +01:00
void UpdateRow(int MapX,int MapY);
void UpdateColumn(int MapX,int MapY);
sPrimGridElem3d *GetGridPos3d(int X,int Y);
sTileMapElem3d *GetMapPos3d(int X,int Y);
void RenderBlock(sPrimGridElem3d *Elem);
2000-12-14 17:01:49 +01:00
};
/*****************************************************************************/
#endif