diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /vphysics/physics_material.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'vphysics/physics_material.h')
| -rw-r--r-- | vphysics/physics_material.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vphysics/physics_material.h b/vphysics/physics_material.h new file mode 100644 index 0000000..679d638 --- /dev/null +++ b/vphysics/physics_material.h @@ -0,0 +1,34 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef PHYSICS_MATERIAL_H +#define PHYSICS_MATERIAL_H +#pragma once + +#include "vphysics_interface.h" +class IVP_Material; +class IVP_Material_Manager; + +class IPhysicsSurfacePropsInternal : public IPhysicsSurfaceProps +{ +public: + virtual IVP_Material *GetIVPMaterial( int materialIndex ) = 0; + + virtual int GetIVPMaterialIndex( const IVP_Material *pIVP ) const = 0; + virtual IVP_Material_Manager *GetIVPManager( void ) = 0; + virtual int RemapIVPMaterialIndex( int ivpMaterialIndex ) const = 0; +}; + +extern IPhysicsSurfacePropsInternal *physprops; + +// Special material indices outside of the normal system +enum +{ + MATERIAL_INDEX_SHADOW = 0xF000, +}; + +#endif // PHYSICS_MATERIAL_H |