1. Replaced demo
- Posted by petelomax Aug 25, 2017
- 1655 views
Much nicer and a whole lot simpler, I think
http://rosettacode.org/wiki/Draw_a_rotating_cube#Phix
Comments welcome
Pete
2. Re: Replaced demo
- Posted by ghaberek (admin) Aug 28, 2017
- 1470 views
atom res = IupGetDouble(NULL, "SCREENDPI")/25.4
What is the significance of 25.4 here?
-Greg
3. Re: Replaced demo
- Posted by Spock Aug 28, 2017
- 1456 views
ghaberek said...
atom res = IupGetDouble(NULL, "SCREENDPI")/25.4
What is the significance of 25.4 here?
-Greg
The formula seems to be conversion of inches to mm which would ultimately evaluate to the number of Dots Per Millimetre of the screen. Pete?
Spock
4. Re: Replaced demo
- Posted by petelomax Aug 28, 2017
- 1479 views
Spock is correct. The CD_GL driver is expecting a resolution in pixels/mm (http://webserver2.tecgraf.puc-rio.br/cd/en/drv/gl.html) whereas the global attribute SCREENDPI is held in pixels/inch.
I have noted that page has not been included in phix.chm (and thus searches cannot possibly find it).
Pete