6 #include <nel/3d/tile_bank.h>
9 //TODO titegus: Equals TTileType?
20 //TODO titegus: Equals TBitmap ?
33 TileInfo(int id
, TileType tileType
);
35 void Init(int id
, TileType tileType
);
36 bool Load (int index
, std::vector
<NLMISC::CBGRA
>* Alpha
);
38 const std::string
getRelativeFileName (TileTexture type
, int index
);
41 std::vector
<NLMISC::CBGRA
> Bits
;
42 std::vector
<NLMISC::CBGRA
> alphaBits
;
43 std::vector
<NLMISC::CBGRA
> nightBits
;
45 int loaded
, nightLoaded
, alphaLoaded
; //tells if the tile was already loaded or not
46 std::string path
, nightPath
, alphaPath
;
48 int getId() const { return id
; }
49 void setId(int i
) { id
= i
; }
50 int getTileType() const { return tileType
; }
52 static std::string
fixPath(const std::string
&path
);
55 int id
; //tile index (in the Browser)
59 typedef std::vector
<TileInfo
> tilelist
;
69 void removeTile128 (int index
);
70 void removeTile256 (int index
);
72 bool setTile128 (int tile
, const std::string
& name
, NL3D::CTile::TBitmap type
);
73 bool setTile256 (int tile
, const std::string
& name
, NL3D::CTile::TBitmap type
);
74 bool setTileTransition (int tile
, const std::string
& name
, NL3D::CTile::TBitmap type
);
75 bool setTileTransitionAlpha (int tile
, const std::string
& name
, int rot
);
76 bool setDisplacement (int tile
, const std::string
& name
, NL3D::CTile::TBitmap type
);
78 void clearTile128 (int index
, NL3D::CTile::TBitmap bitmap
);
79 void clearTile256 (int index
, NL3D::CTile::TBitmap bitmap
);
80 void clearTransition (int index
, NL3D::CTile::TBitmap bitmap
);
81 void clearDisplacement (int index
, NL3D::CTile::TBitmap bitmap
);
83 void Reload(int first
, int last
, TileType n
);
86 tilelist::iterator
GetFirst(int n
);
87 tilelist::iterator
GetLast(int n
);
88 tilelist::iterator
Get(int i
, int n
);
92 #define theList128 theList[0]
93 #define theList256 theList[1]
94 #define theListTransition theList[2]
95 #define theListDisplacement theList[3]