MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setWindowSize

Method setWindowSize

Engine/source/windowManager/platformInterface.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86//------------------------------------------------------------------------------
87
88void Platform::setWindowSize(U32 newWidth, U32 newHeight, bool fullScreen )
89{
90 AssertISV(gWindow, "Platform::setWindowSize - no window present!");
91
92 // Grab the curent video settings and diddle them with the new values.
93 GFXVideoMode vm = gWindow->getVideoMode();
94 vm.resolution.set(newWidth, newHeight);
95 vm.fullScreen = fullScreen;
96 gWindow->setVideoMode(vm);
97}
98
99void Platform::setWindowLocked(bool locked)
100{

Callers

nothing calls this directly

Calls 2

setVideoModeMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected