I thought the width and height were returned in a table, so I tried this :
Code: Select all
dim = celestia:getscreendimension()
width = dim[1]
height = dim[2]
Then, I had a look into Harald Schmidt's celx tutorial :
So I tried several syntaxes like :/x, y/ celestia:getscreendimension()
Returns width and height of Celestia-window.
Code: Select all
width = dim.x
height = dim.y
width = dim(x)
height = dim(y)
width = dim[x]
height = dim[y]
width = dim.width
height = dim.height
But none of them worked...
I also made a search on the forum, but that gave me no result... Does anybody have a clue about how to get both the width and height of the Celestia-window ?