CGFXSpec.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // CGFXSpec - [2020-04-13 11:57:46]
  2. #ifndef _CGFXSPEC_H_
  3. #define _CGFXSPEC_H_
  4. #include "CFTTXmlReaderNode.h"
  5. #include "CFTTAndroidGraphicsSettings.h"
  6. #include "CPitchShader.h"
  7. #include "CPlayerShader.h"
  8. /*
  9. 0018E728 CGFXSpec::Initialise()
  10. 0018E878 CGFXSpec::Platform_InspectDevice()
  11. 0018EEF4 CGFXSpec::UpdateGraphicsFromConfig(CFTTXmlReaderNode *)
  12. 0018F41C CGFXSpec::ApplyResolutionClamp(CFTTXmlReaderNode *)
  13. */
  14. struct GFXSPEC_Specification {
  15. int dFPS_0;
  16. float fLODMultGame_4;
  17. float fLODMultNIS_8;
  18. float fRTTScaleFactorX_C;
  19. float fRTTScaleFactorY_10;
  20. int iAtlasWidth_14;
  21. int iAtlasHeight_18;
  22. int iKitTexFormat_1C;
  23. int iKitDims_20;
  24. bool bSoftShadows_24;
  25. bool bEnvObjectShadows_25;
  26. bool bGameplayStadium_26;
  27. bool bCrowdAnimated_27;
  28. bool bDropTexMips_28;
  29. bool field_29;
  30. bool field_2A;
  31. bool field_2B;
  32. int eEnableDOF_2C;
  33. bool bEnableDepthFog_30;
  34. bool bEnableReflection_31;
  35. bool bEnableGodRays_32;
  36. bool bHighQualityNet_33;
  37. uchar uy_34;
  38. uchar uy_35;
  39. uchar uy_36;
  40. uchar uy_37;
  41. const char *pVHSShader_38;
  42. bool bHighQualityGroundShadows_3C;
  43. bool b3DGrass_3D;
  44. bool bFloatEnvMap_3E;
  45. bool bDynNormMap_3F;
  46. int eAntiAliasing_40;
  47. EPlayerShader_Quality ePlayerLightingQuality_44;
  48. EPitchShader_Quality eHighQualityGrass_48;
  49. int eCrowdQuality_4C;
  50. int iMinMaxResolution_50;
  51. bool bForce16Bit_54;
  52. bool b_55;
  53. bool b_56;
  54. bool b_57;
  55. };
  56. extern GFXSPEC_Specification *GFXSPEC_pSpecification;
  57. class CGFXSpec {
  58. public:
  59. static void Initialise(); // 0018E728
  60. static void Platform_InspectDevice(); // 0018E878
  61. static void UpdateGraphicsFromConfig(CFTTXmlReaderNode *pXmlNode); // 0018EEF4
  62. static void ApplyResolutionClamp(CFTTXmlReaderNode *pXmlNode); // 0018F41C
  63. static char s_cDeviceReport[0x1000];
  64. static char s_cDeviceAnalyticsString[512];
  65. };
  66. #endif //_CGFXSPEC_H_