MCPcopy Create free account
hub / github.com/cinder/Cinder / populateMonitors

Method populateMonitors

test/DisplayTest/src/DisplayTestApp.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44void DisplayTestApp::populateMonitors()
45{
46 mMonitors.clear();
47 mGlobalBounds = Rectf(0, 0, 0, 0);
48 float hueDelta = 1.0f / (Display::getDisplays().size() + 3);
49 float hue = 0;
50 bool mainDisplay = true;
51 for( auto &display : Display::getDisplays()) {
52 mGlobalBounds.include(display->getBounds());
53 mMonitors.push_back( Monitor( display, Colorf(CM_HSV, hue, 1, 0.4f), mainDisplay ) );
54 hue += hueDelta;
55 mainDisplay = false;
56 }
57}
58
59void DisplayTestApp::setup()
60{

Callers

nothing calls this directly

Calls 6

MonitorClass · 0.85
clearMethod · 0.45
sizeMethod · 0.45
includeMethod · 0.45
getBoundsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected