Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is it possible to change resolution in Turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
metachief




PostPosted: Wed Nov 05, 2008 11:48 pm   Post subject: Is it possible to change resolution in Turing?

Does anyone know how to change the resolution of a Turing run window? I'm not quite sure how that would work in any case. If not, then could someone explain how resolution is changed in games.
Sponsor
Sponsor
Sponsor
sponsor
gitoxa




PostPosted: Thu Nov 06, 2008 8:17 am   Post subject: RE:Is it possible to change resolution in Turing?

code:
View.Set("graphics:<width>;<height>")


Width and height are in pixels, i think the default is something like 600x400
ecookman




PostPosted: Thu Nov 06, 2008 8:20 am   Post subject: Re: Is it possible to change resolution in Turing?

yes! you can

the code is quite obvious once you see it lol


Turing:

var win : int := Window.Open ("graphics:[put a number];[put a number]")


now to break it down

you have your variable and you set that as an integer
then you tell the computer that the variable=open the window at....

where i have put [put a number] quite simple put in two sets of numbers for the resolution
if you want the window to be fullscreen put where it says [put a number].....("graphics: max ; max ")


if you want to get rig of the button bar your code will look like...

Turing:

View.Set ("graphics:max,max,nobuttonbar")




lol not so complicated once you see it right Mr. Green
ecookman




PostPosted: Thu Nov 06, 2008 8:22 am   Post subject: RE:Is it possible to change resolution in Turing?

grrrrr gitoxa you took my post as i went to the bathroommm cheep shot






gitoxa
Tony




PostPosted: Thu Nov 06, 2008 11:12 am   Post subject: RE:Is it possible to change resolution in Turing?

Hey guys, setting width and height is just that -- width and height of the window.

Resolution is the density of pixels. The number of pixels you can render in an inch of the physical screen. That involves hardware level graphics, so no, you can't do that in Turing.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
metachief




PostPosted: Thu Nov 06, 2008 3:48 pm   Post subject: RE:Is it possible to change resolution in Turing?

Oh, ok that's too bad. By the way, what language supports that? To everyone except Tony... View.Set("graphics:<width>;<height>") is pretty damn obvious, but that's not to change the resolution. If you increase the window size, it doesn't mean the things that you are displaing are going to increase as well, duh.
Tony




PostPosted: Thu Nov 06, 2008 4:06 pm   Post subject: Re: RE:Is it possible to change resolution in Turing?

metachief @ Thu Nov 06, 2008 3:48 pm wrote:
By the way, what language supports that?

Typically that would be done by a rendering engine such as OpenGL or DirectX. OpenGL comes with a load of bindings for various languages, which you can use.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
metachief




PostPosted: Thu Nov 06, 2008 4:07 pm   Post subject: RE:Is it possible to change resolution in Turing?

Oh, alright thanks.
Sponsor
Sponsor
Sponsor
sponsor
pavol




PostPosted: Thu Nov 06, 2008 4:58 pm   Post subject: RE:Is it possible to change resolution in Turing?

VB also has some APIs you can call to change the resolution for you. I don't remember what they are (I could check if you want) but you could always just make a small program like that and run it using Turing
Tony




PostPosted: Thu Nov 06, 2008 5:32 pm   Post subject: RE:Is it possible to change resolution in Turing?

likely Win32 API calls -- not VB specific, anything that can interact with Windows OS can change some system settings.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ecookman




PostPosted: Fri Nov 07, 2008 8:34 am   Post subject: RE:Is it possible to change resolution in Turing?

ooh srry i thought he ment the rendering size oops sorry
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: