File: smoke.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (40 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (6)
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
/*
                          Smoke Puffs & Sparks Creation
 */

#ifndef SMOKE_H
#define SMOKE_H

#include "v3dtex.h"
#include "obj.h"


extern int SmokeCreate(
	sar_scene_struct *scene,
	sar_object_struct ***ptr, int *total,
	sar_smoke_type smoke_type,
	const sar_position_struct *pos,
	const sar_position_struct *respawn_offset,
	float radius_start,            /* In meters. */
	float radius_max,              /* In meters. */
	float radius_rate,             /* In meters per second. */
	int hide_at_max,
	int total_units,                /* Max smoke units in trail. */
	time_t respawn_int,		/* In ms. */
	const char *tex_name,
	int ref_object,                 /* Can be -1 for none. */
	time_t life_span
);

extern int SmokeCreateSparks(
	sar_scene_struct *scene,
	sar_object_struct ***ptr, int *total,
	const sar_position_struct *pos,
	const sar_position_struct *respawn_offset,
	float sparks_distance,		/* How far should sparks fly */
	int ref_object,
	time_t life_span
);


#endif	/* SMOKE_H */