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.
14 const int P_VERSION = 300;
15
16 typedef unsigned int pdata_t;
17
18/// A very large float value used as a default arg passed into functions
19 const 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
22 const float P_EPS = 1e-3f;
23
24/// This is the type of the particle birth and death callback functions that you can register.
25 typedef 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.
28 typedef void (*P_PARTICLE_CALLBACK_ACTION)(struct Particle_t& particle, const pdata_t data, const float dt);
29}; // namespace PAPI
30
31#endif
PAPI
PAPIClasses.h.
Definition: pAPIContext.h:16
PAPI::P_MAXFLOAT
const float P_MAXFLOAT
A very large float value used as a default arg passed into functions.
Definition: pDeclarations.h:19
PAPI::P_PARTICLE_CALLBACK_ACTION
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
PAPI::pdata_t
unsigned int pdata_t
Definition: pDeclarations.h:16
PAPI::P_EPS
const float P_EPS
A very small float value added to some physical calculations to dampen them and improve stability.
Definition: pDeclarations.h:22
PAPI::P_VERSION
const int P_VERSION
This is the version number of this release of the API.
Definition: pDeclarations.h:14
PAPI::Particle_t
Definition: pParticle.h:18