From 282d072793b3d286492675943fc47bc369c213a8 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 20 Aug 2013 21:28:16 +0800 Subject: [PATCH] Add isTextureAlphaUsed() --- GPU/GPUState.h | 1 + 1 file changed, 1 insertion(+) diff --git a/GPU/GPUState.h b/GPU/GPUState.h index ea5e265c2..3721fec64 100644 --- a/GPU/GPUState.h +++ b/GPU/GPUState.h @@ -277,6 +277,7 @@ struct GPUgstate bool isTextureMapEnabled() const { return textureMapEnable & 1; } GETexFunc getTextureFunction() const { return static_cast(texfunc & 0x7); } bool isColorDoublingEnabled() const { return (texfunc & 0x10000) != 0; } + bool isTextureAlphaUsed() const { return (texfunc & 0x100) != 0; } GETextureFormat getTextureFormat() const { return static_cast(texformat & 0xF); } bool isTextureFormatIndexed() const { return (texformat & 4) != 0; } // GE_TFMT_CLUT4 - GE_TFMT_CLUT32 are 0b1xx. int getTextureEnvColR() const { return texenvcolor&0xFF; }