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.

57 lines
1.1 KiB

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