void MemoryFromRoot::drawMemory()const { static const Font font; drawRoot(contentName_m); //オブジェクトを描く auto drawCircle = [this](int address) { if (!memory_m.hasExpired(address)) { Circle c = Circle(memory_m.access(address).getCenter(), MEMORY_RADIUS); c.draw(Color(Palette::Red, 128)).drawFrame(0.0, 3.0, Palette::Darkred); parties_m[address - 1]->draw(c.center); } }; for (int i(1); i < memory_m.size(); ++i) { drawCircle(i); } }
void CustomCallbackApp::draw() { gl::clear( gBackgroundColor ); mCircle.draw(); }