69 return static_cast<T>(
static_cast<GLfloat>(x) * ML_OPENGL_NAMESPACE::getGLHiDPIScaleFactor());
MLOPENGL_EXPORT GLfloat getGLHiDPIScaleFactor()
Returns the scale factor that is applied to size parameters of GL functions.
MLOPENGL_EXPORT GLfloat setGLHiDPIScaleFactor(GLfloat factor)
Sets the scale factor that is applied to size parameters of GL functions.
MLOPENGL_EXPORT void pushAndSetGLHiDPIScaleFactor(GLfloat factor)
Pushes the current scale factor onto the scale factor stack and sets the given scale factor.
MLOPENGL_EXPORT void popGLHiDPIScaleFactor()
Restores the previous scale factor from the scale factor stack.
MLOPENGL_EXPORT void glPointSizeScaled(GLfloat size)
Sets the diameter of rasterized points.
MLOPENGL_EXPORT void glLineStippleScaled(GLint factor, GLushort pattern)
Sets the line stipple pattern.
ML_OPENGL_START_NAMESPACE MLOPENGL_EXPORT void glLineWidthScaled(GLfloat width)
Sets the width of rasterized lines.
ML_OPENGL_END_NAMESPACE T GLHiDPIScale(T x)
Convenience template function to scale a value.
#define ML_OPENGL_END_NAMESPACE
Closes the namespace for all ML stuff after the usage of ML_UTILS_START_NAMESPACE.
#define ML_OPENGL_START_NAMESPACE
Macro to put all following stuff into the namespace ML_NAMESPACE to avoid collisions with symbols of ...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.