Ejemplo n.º 1
0
void GraphDrawer::initFbo(ci::Area newWindowSize)
{
    auto format = ci::gl::Fbo::Format().samples(8);    
    
    edgeFbo = ci::gl::Fbo::create(newWindowSize.getWidth(), newWindowSize.getHeight(), format);
    labelFbo = ci::gl::Fbo::create(newWindowSize.getWidth(), newWindowSize.getHeight(), format);
}
void TwoWindowScreenSaverApp::draw()
{
  gl::clear( mBackgroundColor );
  glColor3f( mColor );

  // General getWindowCenter() doesn't work anymore because that
  // calculation is done before our resize stuff happens. This is
  // why we keep track of mMainArea.

  gl::drawSolidCircle( ci::Vec2f( mMainArea.getWidth() / 2.f, mMainArea.getHeight() / 2.f ), mRadius );
}