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.

49 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Header: $
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #ifndef SHADERDLL_H
  9. #define SHADERDLL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include <materialsystem/IShader.h>
  14. //-----------------------------------------------------------------------------
  15. // forward declarations
  16. //-----------------------------------------------------------------------------
  17. class IShader;
  18. class ICvar;
  19. //-----------------------------------------------------------------------------
  20. // The standard implementation of CShaderDLL
  21. //-----------------------------------------------------------------------------
  22. class IShaderDLL
  23. {
  24. public:
  25. // Adds a shader to the list of shaders
  26. virtual void InsertShader( IShader *pShader ) = 0;
  27. };
  28. //-----------------------------------------------------------------------------
  29. // Singleton interface
  30. //-----------------------------------------------------------------------------
  31. IShaderDLL *GetShaderDLL();
  32. //-----------------------------------------------------------------------------
  33. // Singleton interface for CVars
  34. //-----------------------------------------------------------------------------
  35. ICvar *GetCVar();
  36. #endif // SHADERDLL_H