28 #include <unordered_map> 85 void setSeed(
unsigned int _value );
100 Colour getRandomColourAndAlpha();
104 Vec4 getRandomVec4();
108 Vec4 getRandomNormalizedVec4();
112 Vec3 getRandomVec3();
116 Vec3 getRandomNormalizedVec3();
120 Vec2 getRandomVec2();
124 Vec2 getRandomNormalizedVec2();
133 Vec3 getRandomPoint(
Real _xRange=1.0,
Real _yRange=1.0,
Real _zRange=1.0 );
147 Real randomPositiveNumber(
Real _mult=1 );
simple Vec2 encapsulates a 3 float object like glsl Vec2 but not maths use the Vec2 class for maths a...
simple class to hold colour information and set the basic opengl colour state. also has overloaded me...
simple Vector class for OpenGL graphics, contains overloaded operators for most math functions...
a simple colour class for RGBA colour
wrapper for std random and distribution functions, it will generate two basic random functions for Ra...
simple Vec3 encapsulates a 3 float object like glsl vec3 but not maths use the Vec3 class for maths a...
implementation files for RibExport class
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
encapsulates a 4d Homogenous Point / Vector object
std::unordered_map< std::string, std::uniform_real_distribution< Real > > m_floatGenerators
our map to hold the generator data basically we are going to hold a name / function pair...
std::mt19937 m_generator
the generator for rng class where all funcs and distribs are added. all we need to do is replace this...
a simple singleton template inherited by other classes
GLsizei const GLchar *const * string
RANDDIST
enumerated list of the different distributions we can add to the generator,
Singleton template added to NGL framework 20/04/10 by jmacey.