#include <rm/rm.h>
#include <rm/rmaux.h>

#if defined(Q_WS_X11) || defined(Q_WS_MAC)
#include <GL/glx.h>
#endif

extern "C" float     RM_DEFAULT_SPECULAR_EXPONENT;
extern "C" RMcolor4D RM_DEFAULT_AMBIENT_COLOR,
                     RM_DEFAULT_DIFFUSE_COLOR, 
                     RM_DEFAULT_SPECULAR_COLOR, 
                     RM_DEFAULT_UNLIT_COLOR;



/*inline float 
pixel_to_float (float pixel, int dimension, int scale)
{
    return ((pixel - .5 * (dimension - scale)) - (scale >> 1)) / (scale >> 1);
}//*/

inline float 
pixel_to_float (float pixel, int dimension, int scale)
{
    return (2. * pixel - dimension) / scale;
}//*/

const double mouse_scaling_increment = 1.;

