aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/particles_localspace.h
blob: 8b2a5a4b005967796bd7b9cb2697118f081f4126 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef PARTICLES_LOCALSPACE_H
#define PARTICLES_LOCALSPACE_H
#ifdef _WIN32
#pragma once
#endif

#include "particles_simple.h"

#define	FLE_VIEWMODEL	0x00000001

class CLocalSpaceEmitter : public CSimpleEmitter
{
public:

	DECLARE_CLASS( CLocalSpaceEmitter, CParticleEffect );
	
	static CSmartPtr<CLocalSpaceEmitter> Create( const char *pDebugName, ClientEntityHandle_t hEntity, int nAttachment, int flags = 0 );

	virtual void RenderParticles( CParticleRenderIterator *pIterator );
	virtual void SimulateParticles( CParticleSimulateIterator *pIterator );

	virtual void SetupTransformMatrix( void );
	virtual void Update( float flTimeDelta );

	const matrix3x4_t& GetTransformMatrix() const;	

protected:

	CLocalSpaceEmitter( const char *pDebugName );

	ClientEntityHandle_t m_hEntity;
	int	m_nAttachment;
	int m_fFlags;

private:

	CLocalSpaceEmitter( const CLocalSpaceEmitter & ); // not defined, not accessible

	// This is stored in the ParticleEffectBinding now.
	//matrix3x4_t	m_matTransform;

	//FIXME: Bones here as well...
};

#endif // PARTICLES_LOCALSPACE_H