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.

30 lines
796 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IVGUIMATINFO_H
  8. #define IVGUIMATINFO_H
  9. #include "IVguiMatInfoVar.h"
  10. // wrapper for IMaterial
  11. class IVguiMatInfo
  12. {
  13. public:
  14. // Add a virtual destructor to silence the clang warning.
  15. // This is harmless but not important since the only derived class
  16. // doesn't have a destructor.
  17. virtual ~IVguiMatInfo() {}
  18. // make sure to delete the returned object after use!
  19. virtual IVguiMatInfoVar* FindVarFactory ( const char *varName, bool *found ) = 0;
  20. virtual int GetNumAnimationFrames ( ) = 0;
  21. // todo: if you need to add more IMaterial functions add them here
  22. };
  23. #endif //IVGUIMATINFO_H