mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
add texture helper functions
This commit is contained in:
parent
242cddac2d
commit
69a44a5d5f
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue