random_utils Namespace Reference

Contains various utility classes used by vrsode and random_racer. More...


Classes

class  AutoLocker
 Automatically locks a ThreadSafeObject for the life time of this object. More...
class  LogManager
class  SleepyObject
 Objects extending this class can be put into sleep after every update loop. More...
class  ThreadSafeCanvas
 class sitting atop of GlutCanvas to enable thread safety. More...
class  ThreadSafeObject
 This class gives you objects on which you can call lock() and unlock() to lock or unlock a mutex which is used for syncing. More...
class  TimeableObject
 A object which uses GLUT timers to call itself back after a given amount of time. More...

Functions

template<typename T>
inRange (T min, T value, T max)
 Returns you value but if it is smaller than min, it will return min and if its bigger than max it will return max.


Detailed Description

Contains various utility classes used by vrsode and random_racer.

Function Documentation

template<typename T>
T random_utils::inRange ( min,
value,
max 
) [inline]

Returns you value but if it is smaller than min, it will return min and if its bigger than max it will return max.

Definition at line 12 of file Macros.h.

Referenced by random_racer::MainApplication::fovCommand(), random_racer::MainApplication::keyEvent(), and random_racer::ThirdPersonCameraHelper::setSmoothing().

Here is the caller graph for this function:


Generated on Fri May 11 21:02:14 2007 for Random Racer by  doxygen 1.5.1