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.

34 lines
869 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef PHYSICS_MATERIAL_H
  8. #define PHYSICS_MATERIAL_H
  9. #pragma once
  10. #include "vphysics_interface.h"
  11. class IVP_Material;
  12. class IVP_Material_Manager;
  13. class IPhysicsSurfacePropsInternal : public IPhysicsSurfaceProps
  14. {
  15. public:
  16. virtual IVP_Material *GetIVPMaterial( int materialIndex ) = 0;
  17. virtual int GetIVPMaterialIndex( const IVP_Material *pIVP ) const = 0;
  18. virtual IVP_Material_Manager *GetIVPManager( void ) = 0;
  19. virtual int RemapIVPMaterialIndex( int ivpMaterialIndex ) const = 0;
  20. };
  21. extern IPhysicsSurfacePropsInternal *physprops;
  22. // Special material indices outside of the normal system
  23. enum
  24. {
  25. MATERIAL_INDEX_SHADOW = 0xF000,
  26. };
  27. #endif // PHYSICS_MATERIAL_H