add comment about definition of viewport
This commit is contained in:
parent
1b00d3448a
commit
b5fc3d2a7e
@ -230,6 +230,8 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
|
|||||||
if viewport is None:
|
if viewport is None:
|
||||||
glViewport(*self.getViewport())
|
glViewport(*self.getViewport())
|
||||||
else:
|
else:
|
||||||
|
# note: the following code means that we have defined "viewport"
|
||||||
|
# to be in device pixels.
|
||||||
glViewport(*viewport)
|
glViewport(*viewport)
|
||||||
self.setProjection(region=region)
|
self.setProjection(region=region)
|
||||||
self.setModelview()
|
self.setModelview()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user