Chris correctly suggested that I use wd'qscreen' to find
the state of the current monitor screen and directed me
to the link
https://code.jsoftware.com/wiki/Guides/Window_Driver/Command_Reference
Furthermore, I found wd'qscreen' used in a couple of
addons.
But I don't understand how to use this information in
my case. Let me be more specific.
If I launch jqt and execute the following 4 commands
on 2 different computers I get different results.
_4]\". wd'qscreen'
install'github:zerowords/tgsjo'
load'zerowords/tgsjo'
createTurtle 0 0 0
On computer *A* I see this.
_4]\". wd'qscreen'
*474 266 1344 756*
72 72 24 1
256 72 72 101
On computer *B* I see this.
_4]\". wd'qscreen'
361 225 1024 640
72 72 24 1
256 72 72 101
According to the link referenced above, the differing
first 4 values of qscreen are as follows.
horzsize width in millimeters
vertsize height in millimeters
horzres width in pixels
vertres height in raster lines (pixels)
On computer A the graphics screen is 21cmX21cm
and the nose of the turtle is positioned at
10.5cm from the bottom and 10.5cm from the left
(*in the center*).
On computer B the graphics screen is 16.7cmX16.7cm
and the nose of the turtle is positioned at
4.2cm from the bottom and 4.2cm from the left
(*near bottom left*).
How can the differing qscreen values be used to
compute or explain the different turtle positions?
And how can that be used in openGL to make common
graphics on different screens?
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm