mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-22 08:44:51 +00:00
Add some texture-related GE accessors.
This commit is contained in:
parent
4c74cafa51
commit
01824e44ae
@ -212,8 +212,17 @@ struct GPUgstate
|
||||
bool isDitherEnabled() const { return ditherEnable & 1; }
|
||||
bool isAlphaTestEnabled() const { return alphaTestEnable & 1; }
|
||||
bool isColorTestEnabled() const { return colorTestEnable & 1; }
|
||||
bool isTextureMapEnabled() const { return textureMapEnable & 1; }
|
||||
|
||||
// Texturing
|
||||
bool isTextureMapEnabled() const { return textureMapEnable & 1; }
|
||||
int getTextureFunction() const { return texfunc & 0x7; }
|
||||
bool isColorDoublingEnabled() const { return (texfunc & 0x10000) != 0; }
|
||||
|
||||
int getTextureEnvColR() const { return texenvcolor&0xFF; }
|
||||
int getTextureEnvColG() const { return (texenvcolor>>8)&0xFF; }
|
||||
int getTextureEnvColB() const { return (texenvcolor>>16)&0xFF; }
|
||||
|
||||
// Lighting
|
||||
bool isLightingEnabled() const { return lightingEnable & 1; }
|
||||
bool isLightChanEnabled(int chan) const { return lightEnable[chan] & 1;}
|
||||
bool isUsingPoweredDiffuseLight(int chan) const { return (ltype[chan] & 0x3) == 0x2; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user