Here''s the code for my glTexImage2D():
Graphics::TBitmap* TextureImage[1];TextureImage[0] = new Graphics::TBitmap;TextureImage[0]->LoadFromFile("NeHe.bmp");...glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage[0]->Width, TextureImage[0]->Height, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->ScanLine[TextureImage[0]->Width-1]);