SBSPSS/source/level/layertile3d.h
2001-01-17 22:19:53 +00:00

38 lines
895 B
C++

/***************************/
/*** 3d Tile Layer Class ***/
/***************************/
#ifndef __LAYER_TILE_3D_H__
#define __LAYER_TILE_3D_H__
/*****************************************************************************/
class CLayerTile3d : public CLayerTile
{
public:
CLayerTile3d(sLayerHdr *Hdr,sTile *TileList,sTri *TriList,sQuad *QuadList,sVtx *VtxList);
~CLayerTile3d();
void init(DVECTOR &MapPos,int Shift,int Width,int Height);
void shutdown();
void render();
protected:
void CreateRenderFlagTable();
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,s16 RenderFlags);
s16 *RenderFlagTable;
};
/*****************************************************************************/
#endif