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.

29 lines
958 B

  1. //========= Copyright � 1996-2013, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Provide interface to custom material manager
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef I_CUSTOM_MATERIAL_MANAGER_H
  8. #define I_CUSTOM_MATERIAL_MANAGER_H
  9. #include "materialsystem/icustommaterial.h"
  10. #include "materialsystem/icompositetexturegenerator.h"
  11. class IVisualsDataCompare;
  12. class KeyValues;
  13. class ICustomMaterialManager
  14. {
  15. public:
  16. virtual bool Process() = 0;
  17. // get or create a custom material with the given attributes
  18. virtual ICustomMaterial *GetOrCreateCustomMaterial( KeyValues *pKeyValues, const CUtlVector< SCompositeTextureInfo > &vecTextureInfos, bool bIgnorePicMip = false ) = 0;
  19. virtual int DebugGetNumActiveCustomMaterials() = 0;
  20. virtual bool GetVMTKeyValues( const char *pszVMTName, KeyValues **ppVMTKeyValues ) = 0;
  21. };
  22. #endif // I_CUSTOM_MATERIAL_MANAGER_H