From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/obj_part.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/parsec/include/obj_part.h (limited to 'src/parsec/include/obj_part.h') diff --git a/src/parsec/include/obj_part.h b/src/parsec/include/obj_part.h new file mode 100644 index 0000000..cee0be3 --- /dev/null +++ b/src/parsec/include/obj_part.h @@ -0,0 +1,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_ + + -- cgit v1.2.3