Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3 KiB

  1. #include "shaderlib/cshader.h"
  2. class lightmappedreflective_vs20_Static_Index
  3. {
  4. private:
  5. int m_nBASETEXTURE;
  6. #ifdef _DEBUG
  7. bool m_bBASETEXTURE;
  8. #endif
  9. public:
  10. void SetBASETEXTURE( int i )
  11. {
  12. Assert( i >= 0 && i <= 1 );
  13. m_nBASETEXTURE = i;
  14. #ifdef _DEBUG
  15. m_bBASETEXTURE = true;
  16. #endif
  17. }
  18. void SetBASETEXTURE( bool i )
  19. {
  20. m_nBASETEXTURE = i ? 1 : 0;
  21. #ifdef _DEBUG
  22. m_bBASETEXTURE = true;
  23. #endif
  24. }
  25. public:
  26. lightmappedreflective_vs20_Static_Index( )
  27. {
  28. #ifdef _DEBUG
  29. m_bBASETEXTURE = false;
  30. #endif // _DEBUG
  31. m_nBASETEXTURE = 0;
  32. }
  33. int GetIndex()
  34. {
  35. // Asserts to make sure that we aren't using any skipped combinations.
  36. // Asserts to make sure that we are setting all of the combination vars.
  37. #ifdef _DEBUG
  38. bool bAllStaticVarsDefined = m_bBASETEXTURE;
  39. Assert( bAllStaticVarsDefined );
  40. #endif // _DEBUG
  41. return ( 1 * m_nBASETEXTURE ) + 0;
  42. }
  43. };
  44. #define shaderStaticTest_lightmappedreflective_vs20 vsh_forgot_to_set_static_BASETEXTURE + 0
  45. class lightmappedreflective_vs20_Dynamic_Index
  46. {
  47. public:
  48. lightmappedreflective_vs20_Dynamic_Index()
  49. {
  50. }
  51. int GetIndex()
  52. {
  53. // Asserts to make sure that we aren't using any skipped combinations.
  54. // Asserts to make sure that we are setting all of the combination vars.
  55. #ifdef _DEBUG
  56. #endif // _DEBUG
  57. return 0;
  58. }
  59. };
  60. #define shaderDynamicTest_lightmappedreflective_vs20 0