1. Replaced demo

Much nicer and a whole lot simpler, I think

http://rosettacode.org/wiki/Draw_a_rotating_cube#Phix

Comments welcome

Pete

new topic     » topic index » view message » categorize

2. Re: Replaced demo

atom res = IupGetDouble(NULL, "SCREENDPI")/25.4 

What is the significance of 25.4 here?

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Replaced demo

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Replaced demo

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu