MeVisLab Resolution Independence API
mlGLHiDPI.h File Reference
#include "mlOpenGLSystem.h"
#include "mlOpenGL.h"

Go to the source code of this file.

Namespaces

namespace  ml
 Platform independent interface class to manage an OpenGL context.
 

Functions

void ml::glLineWidthScaled (GLfloat width)
 Sets the width of rasterized lines.
 
void ml::glPointSizeScaled (GLfloat size)
 Sets the diameter of rasterized points.
 
void ml::glLineStippleScaled (GLint factor, GLushort pattern)
 Sets the line stipple pattern.
 
GLfloat ml::setGLHiDPIScaleFactor (GLfloat factor)
 Sets the scale factor that is applied to size parameters of GL functions.
 
GLfloat ml::getGLHiDPIScaleFactor ()
 Returns the scale factor that is applied to size parameters of GL functions.
 
void ml::pushAndSetGLHiDPIScaleFactor (GLfloat factor)
 Pushes the current scale factor onto the scale factor stack and sets the given scale factor.
 
void ml::popGLHiDPIScaleFactor ()
 Restores the previous scale factor from the scale factor stack.
 
template<class T >
T GLHiDPIScale (T x)
 Convenience template function to scale a value.