This commit is contained in:
parent
51e8f52d9b
commit
6c5c1fba9b
9 changed files with 116 additions and 11 deletions
|
@ -27,3 +27,26 @@ CExport::~CExport()
|
|||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CExport::BuildColTable(CTile &ThisTile)
|
||||
{
|
||||
u8 *RGB=ThisTile.GetGBTexRGB();
|
||||
int Width=ThisTile.GetGBTexW();
|
||||
int Height=ThisTile.GetGBTexH();
|
||||
|
||||
int X,Y;
|
||||
ColTable.resize(Width);
|
||||
|
||||
for (X=0; X<Width; X++)
|
||||
{
|
||||
for (Y=Height; Y ; Y--)
|
||||
{
|
||||
int Ofs=X+((Y-1)*Width);
|
||||
u8 R=RGB[(Ofs*3)+0];
|
||||
u8 G=RGB[(Ofs*3)+1];
|
||||
u8 B=RGB[(Ofs*3)+2];
|
||||
if (R==255 && G==255 && B==255) break;
|
||||
}
|
||||
ColTable[X]=Y-1;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue