GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Fills in monitor functions in PlatformWindowManagerSDL #2284

Closed OTHGMars closed 5 years ago

OTHGMars commented 6 years ago

Adds the sdl implementation for all used PlatformWindowManager monitor functions. This unit test will now pass for the SDL platform. Here is the equivalent in TorqueScript to test the functions via the Canvas object: //Canvas.listDisplays(); function Canvas::listDisplays(%this) { %count = %this.getMonitorCount(); echo(%count SPC "monitor(s) detected."); for (%i = 0; %i < %count; %i++) { echo("Monitor #" @ (%i + 1) SPC %this.getMonitorName(%i) @ ": " @ %this.getMonitorRect(%i)); } } edited to correct formatting.