MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DrawModuleOnMinimap

Method DrawModuleOnMinimap

Source/Minimap.cpp:151–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void Minimap::DrawModuleOnMinimap(ofRectangle& boundingBox, IDrawableModule* module)
152{
153 ofRectangle moduleRect = module->GetRect();
154 ofColor moduleColor(IDrawableModule::GetColor(module->GetModuleCategory()));
155 if (!module->GetChildren().empty())
156 moduleColor.a = 127;
157 ofSetColor(moduleColor);
158 ofFill();
159 ofRect(CoordsToMinimap(boundingBox, moduleRect));
160}
161
162void Minimap::RectUnion(ofRectangle& target, ofRectangle& unionRect)
163{

Callers

nothing calls this directly

Calls 7

ofSetColorFunction · 0.85
ofFillFunction · 0.85
ofRectFunction · 0.85
emptyMethod · 0.80
GetChildrenMethod · 0.80
GetRectMethod · 0.45
GetModuleCategoryMethod · 0.45

Tested by

no test coverage detected