ParticleAPI 3.0.0
Performant particle system API in C++ for interactive graphics
pDeclarations.h
Go to the documentation of this file.
1/// PDeclarations.h
2///
3/// Copyright 1997-2007, 2022 by David K. McAllister
4///
5/// Include this file in all applications that use the Particle System API.
6
7#ifndef particle_declarations_h
8#define particle_declarations_h
9
10#include "Particle/pVec.h"
11
12namespace PAPI {
13/// This is the version number of this release of the API.
14const int P_VERSION = 300;
15
16typedef unsigned int pdata_t;
17
18/// A very large float value used as a default arg passed into functions
19const float P_MAXFLOAT = 1.0e16f; // Actually this must be < sqrt(MAXFLOAT) since we store this value squared.
20
21/// A very small float value added to some physical calculations to dampen them and improve stability
22const float P_EPS = 1e-3f;
23
24/// This is the type of the particle birth and death callback functions that you can register.
25typedef void (*P_PARTICLE_CALLBACK)(struct Particle_t& particle, const pdata_t data);
26
27/// This is the type of the callback functions that you can register for the Callback() action.
28typedef void (*P_PARTICLE_CALLBACK_ACTION)(struct Particle_t& particle, const pdata_t data, const float dt);
29}; // namespace PAPI
30
31#endif
PAPIClasses.h.
Definition: pAPIContext.h:16
const float P_MAXFLOAT
A very large float value used as a default arg passed into functions.
Definition: pDeclarations.h:19
void(* P_PARTICLE_CALLBACK_ACTION)(struct Particle_t &particle, const pdata_t data, const float dt)
This is the type of the callback functions that you can register for the Callback() action.
Definition: pDeclarations.h:28
unsigned int pdata_t
Definition: pDeclarations.h:16
const float P_EPS
A very small float value added to some physical calculations to dampen them and improve stability.
Definition: pDeclarations.h:22
const int P_VERSION
This is the version number of this release of the API.
Definition: pDeclarations.h:14
Definition: pParticle.h:18