aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/obj_part.h
blob: cee0be3d3df46b8c2e6628718e0f4a2d4053ee63 (plain)
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
/*
 * PARSEC HEADER: obj_part.h
 */

#ifndef _OBJ_PART_H_
#define _OBJ_PART_H_


// render modes for attached particles

enum {

	PARTICLE_RENDERMODE_POSLIGHT,
	PARTICLE_RENDERMODE_THRUST,
	PARTICLE_RENDERMODE_MISSILE
};


// function pointer type for particle attachment
typedef void (*attach_particles_fpt)( GenObject *obj );


// external functions

void	OBJ_AttachClassParticles( GenObject *obj );
void	OBJ_ResetRegisteredClassParticles( dword objclass );
int		OBJ_RegisterClassParticle( dword objclass, const char *pdefname, float refz, int rendmode, Vector3 *pos );


#endif // _OBJ_PART_H_