GLUS
|
#include "GL/glus.h"
Macros | |
#define | GLUS_UNIFORM_RANDOM_BIAS 0.0000001f |
Functions | |
GLUSvoid GLUSAPIENTRY | glusRandomSetSeed (const GLUSuint seed) |
Initializes the random generator. More... | |
GLUSfloat GLUSAPIENTRY | glusRandomUniformf (const GLUSfloat start, const GLUSfloat end) |
Returns a uniform distributed random floating point value in the given range. More... | |
GLUSfloat GLUSAPIENTRY | glusRandomNormalf (const GLUSfloat mean, const GLUSfloat standardDeviation) |
Returns a normal distributed random floating point value. More... | |
GLUSboolean GLUSAPIENTRY | glusRandomHammersleyf (GLUSfloat result[2], const GLUSuint sample, const GLUSubyte m) |
Samples two floating point values from a Hammersley point set. More... | |
#define GLUS_UNIFORM_RANDOM_BIAS 0.0000001f |
GLUSboolean GLUSAPIENTRY glusRandomHammersleyf | ( | GLUSfloat | result[2], |
const GLUSuint | sample, | ||
const GLUSubyte | m | ||
) |
Samples two floating point values from a Hammersley point set.
result | The resulting random values. |
sample | The sample to take. Has to be in the range 0 <= sample < 2^m. |
m | Order m, which allows 2^m samples. Has to be in the range 0 < m <= 32. |
GLUSfloat GLUSAPIENTRY glusRandomNormalf | ( | const GLUSfloat | mean, |
const GLUSfloat | standardDeviation | ||
) |
Returns a normal distributed random floating point value.
mean | Mean. |
standardDeviation | Standard deviation. |
GLUSvoid GLUSAPIENTRY glusRandomSetSeed | ( | const GLUSuint | seed | ) |
Initializes the random generator.
seed | Number for initializing the pseudo-random number generator. |
GLUSfloat GLUSAPIENTRY glusRandomUniformf | ( | const GLUSfloat | start, |
const GLUSfloat | end | ||
) |
Returns a uniform distributed random floating point value in the given range.
start | Smallest possible generated value (inclusive). |
end | Largest possible generated value (inclusive). |