#include "Particles.h"
Functions | |
float | GetRandomFloat (float lowBound, float highBound) |
Returns random float between given bounds. | |
void | GetRandomVector (D3DXVECTOR3 *out, D3DXVECTOR3 *min, D3DXVECTOR3 *max) |
Returns random 3D vector between given vector bounds. | |
void | GetRandomVectorCircle (D3DXVECTOR3 *out, float radius) |
Returns random 3D vector in the circle on the floor with given radius. | |
void | GetRandomVectorRing (D3DXVECTOR3 *out, float min_radius, float max_radius) |
Returns random 3D vector in the ring on the floor within min and max radius. | |
void | GetRandomVectorRingPart (D3DXVECTOR3 *out, float min_radius, float max_radius, int ringpart) |
Returns random 3D vector in the ring on the floor within min and max radius. This baby is recursive until random value in given bounds is drawn. |
Particle class CGun takes care of rendering and animating gun bullets that come out of turtle. CGun inherits PSystem, which can easilly be used to render snow or other particle systems
float GetRandomFloat | ( | float | lowBound, | |
float | highBound | |||
) |
Returns random float between given bounds.
void GetRandomVector | ( | D3DXVECTOR3 * | out, | |
D3DXVECTOR3 * | min, | |||
D3DXVECTOR3 * | max | |||
) |
Returns random 3D vector between given vector bounds.
void GetRandomVectorCircle | ( | D3DXVECTOR3 * | out, | |
float | radius | |||
) |
Returns random 3D vector in the circle on the floor with given radius.
void GetRandomVectorRing | ( | D3DXVECTOR3 * | out, | |
float | min_radius, | |||
float | max_radius | |||
) |
Returns random 3D vector in the ring on the floor within min and max radius.
void GetRandomVectorRingPart | ( | D3DXVECTOR3 * | out, | |
float | min_radius, | |||
float | max_radius, | |||
int | ringpart | |||
) |
Returns random 3D vector in the ring on the floor within min and max radius. This baby is recursive until random value in given bounds is drawn.
ringpart | 1 represent upper ring part, other valued represent lower ring part. |