MCPcopy Create free account
hub / github.com/axmolengine/axmol / commandResolution

Method commandResolution

core/base/Console.cpp:1102–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100}
1101
1102void Console::commandResolution(socket_native_type /*fd*/, std::string_view args)
1103{
1104 int policy;
1105 float width, height;
1106 std::stringstream stream;
1107 stream << args;
1108 stream >> width >> height >> policy;
1109
1110 Scheduler* sched = Director::getInstance()->getScheduler();
1111 sched->runOnAxmolThread([=]() {
1112 Director::getInstance()->getRenderView()->setDesignResolutionSize(width, height,
1113 static_cast<ResolutionPolicy>(policy));
1114 });
1115}
1116
1117void Console::commandResolutionSubCommandEmpty(socket_native_type fd, std::string_view /*args*/)
1118{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
runOnAxmolThreadMethod · 0.80

Tested by

no test coverage detected