add texture helper functions

This commit is contained in:
Ian Curtis 2016-05-07 18:57:06 +00:00
parent 242cddac2d
commit 69a44a5d5f
2 changed files with 12 additions and 0 deletions

View file

@ -208,6 +208,16 @@ int PolyHeader::TexHeight()
return 32 << h;
}
bool PolyHeader::TexSmoothU()
{
return (header[3] & 0x80) > 0;
}
bool PolyHeader::TexSmoothV()
{
return (header[3] & 0x40) > 0;
}
//
// header 4
//

View file

@ -114,6 +114,8 @@ public:
// header 3
int TexWidth();
int TexHeight();
bool TexSmoothU();
bool TexSmoothV();
//header 4
void Color(UINT8& r, UINT8& g, UINT8& b);