Author |
Message |
metachief
![](http://compsci.ca/v3/uploads/user_avatars/59969875948ed1e6be9fb0.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
gitoxa
![](http://compsci.ca/v3/uploads/user_avatars/125344263047f801d546bcb.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: 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 Mr. Green](http://compsci.ca/v3/images/smiles/icon_mrgreen.gif) |
|
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
metachief
![](http://compsci.ca/v3/uploads/user_avatars/59969875948ed1e6be9fb0.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
metachief
![](http://compsci.ca/v3/uploads/user_avatars/59969875948ed1e6be9fb0.jpg)
|
Posted: Thu Nov 06, 2008 4:07 pm Post subject: RE:Is it possible to change resolution in Turing? |
|
|
Oh, alright thanks. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
pavol
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
|