summaryrefslogtreecommitdiff
path: root/vphysics/physics_material.h
blob: 679d63834d7bfe07ebd10422454fed79cd02d232 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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