Add u16 getTextureDimension(int level)

This commit is contained in:
raven02 2013-09-08 16:09:40 +08:00
parent de1264d239
commit f6c41bfa13

View File

@ -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; }