MeVisLabToolboxReference
HiDPIExtender

Functions

double SoResolutionIndependentViewerProxy::getDevicePixelRatio () override
 Returns the ratio between physical pixels and device-independent pixels for the viewer. More...
 
MLOPENGL_EXPORT GLfloat setGLHiDPIScaleFactor (GLfloat factor)
 Sets the scale factor that is applied to size parameters of GL functions. More...
 
MLOPENGL_EXPORT GLfloat getGLHiDPIScaleFactor ()
 Returns the scale factor that is applied to size parameters of GL functions. More...
 
MLOPENGL_EXPORT void pushAndSetGLHiDPIScaleFactor (GLfloat factor)
 Pushes the current scale factor onto the scale factor stack and sets the given scale factor. More...
 
MLOPENGL_EXPORT void popGLHiDPIScaleFactor ()
 Restores the previous scale factor from the scale factor stack. More...
 

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.

Referenced by GLHiDPIScale().

◆ 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.