MeVisLab Toolbox Reference
HiDPIExtender

Functions

double SoResolutionIndependentViewerProxy::getDevicePixelRatio () override
 Returns the ratio between physical pixels and device-independent pixels for the viewer.
 
MLOPENGL_EXPORT GLfloat setGLHiDPIScaleFactor (GLfloat factor)
 Sets the scale factor that is applied to size parameters of GL functions.
 
MLOPENGL_EXPORT GLfloat getGLHiDPIScaleFactor ()
 Returns 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.
 

Detailed Description

Function Documentation

◆ getDevicePixelRatio()

double SoResolutionIndependentViewerProxy::getDevicePixelRatio ( )
overridevirtual

Returns the ratio between physical pixels and device-independent pixels for the viewer.

Reimplemented from SoViewerProxy.

◆ getGLHiDPIScaleFactor()

MLOPENGL_EXPORT GLfloat getGLHiDPIScaleFactor ( )

Returns the scale factor that is applied to size parameters of GL functions.

◆ popGLHiDPIScaleFactor()

MLOPENGL_EXPORT void popGLHiDPIScaleFactor ( )

Restores the previous scale factor from the scale factor stack.

◆ pushAndSetGLHiDPIScaleFactor()

MLOPENGL_EXPORT void pushAndSetGLHiDPIScaleFactor ( GLfloat factor)

Pushes the current scale factor onto the scale factor stack and sets the given scale factor.

◆ setGLHiDPIScaleFactor()

MLOPENGL_EXPORT GLfloat setGLHiDPIScaleFactor ( GLfloat factor)

Sets the scale factor that is applied to size parameters of GL functions.

Returns the previous scale factor.