mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +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;
|
return 32 << h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PolyHeader::TexSmoothU()
|
||||||
|
{
|
||||||
|
return (header[3] & 0x80) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PolyHeader::TexSmoothV()
|
||||||
|
{
|
||||||
|
return (header[3] & 0x40) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// header 4
|
// header 4
|
||||||
//
|
//
|
||||||
|
|
|
@ -114,6 +114,8 @@ public:
|
||||||
// header 3
|
// header 3
|
||||||
int TexWidth();
|
int TexWidth();
|
||||||
int TexHeight();
|
int TexHeight();
|
||||||
|
bool TexSmoothU();
|
||||||
|
bool TexSmoothV();
|
||||||
|
|
||||||
//header 4
|
//header 4
|
||||||
void Color(UINT8& r, UINT8& g, UINT8& b);
|
void Color(UINT8& r, UINT8& g, UINT8& b);
|
||||||
|
|
Loading…
Reference in a new issue