Counter Strike : Global Offensive Source Code
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.

39 lines
746 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MAT_STUB_H
  8. #define MAT_STUB_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class IMaterialSystem;
  13. // To stub out the material system in a block of code (if mat_stub is 1),
  14. // make an instance of this class. You can unstub it by calling End() or
  15. // it will automatically unstub in its destructor.
  16. class CMatStubHandler
  17. {
  18. public:
  19. CMatStubHandler();
  20. ~CMatStubHandler();
  21. void End();
  22. public:
  23. IMaterialSystem *m_pOldMaterialSystem;
  24. };
  25. // Returns true if mat_stub is 1.
  26. bool IsMatStubEnabled();
  27. #endif // MAT_STUB_H