wxWidgets/samples/opengl
tm f6cc8ff52c Add GetOpenGLScaleFactor() to abstract OpenGL coordinates scaling
The fix for OpenGL coordinates when using high DPI in b134589cbb (Fix
OpenGL samples when using HiDPI displays, 2019-08-06) did fix it for GTK
3 and macOS, but broke it for MSW and other platforms not using pixel
scaling, as window coordinates are the same as OpenGL ones there, while
GetContentScaleFactor() can still return values > 1 even on these
platforms.

Provide new GetOpenGLScaleFactor() function abstracting this platform
difference and use it in all OpenGL samples to make them work correctly
in high DPI under all platforms.

Closes https://github.com/wxWidgets/wxWidgets/pull/1944

Closes #17391.
2020-07-12 22:28:29 +02:00
..
cube Add GetOpenGLScaleFactor() to abstract OpenGL coordinates scaling 2020-07-12 22:28:29 +02:00
isosurf Add GetOpenGLScaleFactor() to abstract OpenGL coordinates scaling 2020-07-12 22:28:29 +02:00
penguin Add GetOpenGLScaleFactor() to abstract OpenGL coordinates scaling 2020-07-12 22:28:29 +02:00
pyramid Add GetOpenGLScaleFactor() to abstract OpenGL coordinates scaling 2020-07-12 22:28:29 +02:00
makefile.bcc Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
makefile.gcc Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
Makefile.in Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
makefile.unx Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
makefile.vc Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
opengl_samples.bkl Add a new OpenGL pyramid sample 2016-02-23 01:04:25 +01:00