Game Development Community

Get Window Size in TGEA

by Kerry Enfinger · in Torque Game Engine Advanced · 07/20/2009 (12:00 am) · 1 replies

How do you get the window size in TGEA by using code? You could use Platform::getWindowSize() in TGE but that function has been eliminated in TGEA. I'm trying to use the window size to set the extents of a customer GUI.

About the author

Owner of Altered Reality Software -- Bachelors Degree in Game and Simulation Programming -- Masters Degree in Database Management -- Currently working on Ph.D. in Computer Science


#1
07/24/2009 (9:14 am)
Are you working in Source? If you have a reference to the current Canvas you can call the getPlatformWindow method.