T3D Obtain Screen Resolution
by Walker Twyman · in Torque 3D Professional · 09/28/2011 (12:53 pm) · 3 replies
I'm sure this is a ridiculously simple question for people that have dealt with the source regularly. I'm more of an artist than a coder, and I would like a small amount of assistance with determining the player's screen resolution.
Right now, I have tried using:
GuiCanvas gcanvas;
Point 2I guiRes = gcanvas.GetWindowSize();
guiRes has an x and y value, but they are way different from my screen resolution. The x and y value doesn't change at all when I change my resolution and restart the game. Any help would be much appreciated.
-Walker
Right now, I have tried using:
GuiCanvas gcanvas;
Point 2I guiRes = gcanvas.GetWindowSize();
guiRes has an x and y value, but they are way different from my screen resolution. The x and y value doesn't change at all when I change my resolution and restart the game. Any help would be much appreciated.
-Walker
About the author
Torque Owner Netwyrm
Canopic Games
Because of the enormous variety of screen shapes, this can lead to more or less area displayed onscreen during runtime, so the GUI manager uses a "standard" screen for designers to target and then forces it to fit the actual display.
There is a popup listing the available screen targets near the top center of the GUI editor.
There is a fairly lengthy section in the documentation, "GUI Editor", here:
docs.garagegames.com/torque-3d/official/content/documentation/GUI%20Editor/Overv...
Unrelated to resolution, this series has some useful nuggets on GUI elements:
www.garagegames.com/community/resources/view/14868