mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-13 10:24:39 +00:00
Add u16 getTextureDimension(int level)
This commit is contained in:
parent
de1264d239
commit
f6c41bfa13
@ -278,6 +278,7 @@ struct GPUgstate
|
||||
// Texturing
|
||||
int getTextureWidth(int level) const { return 1 << (texsize[level] & 0xf);}
|
||||
int getTextureHeight(int level) const { return 1 << ((texsize[level] >> 8) & 0xf);}
|
||||
u16 getTextureDimension(int level) const { return texsize[level] & 0xf0f;}
|
||||
bool isTextureMapEnabled() const { return textureMapEnable & 1; }
|
||||
GETexFunc getTextureFunction() const { return static_cast<GETexFunc>(texfunc & 0x7); }
|
||||
bool isColorDoublingEnabled() const { return (texfunc & 0x10000) != 0; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user