This commit is contained in:
Daveo 2001-01-24 22:35:11 +00:00
parent 51e8f52d9b
commit 6c5c1fba9b
9 changed files with 116 additions and 11 deletions

View file

@ -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;
}
}