| 76 | } |
| 77 | |
| 78 | void _TBOX_PREFIX_App::draw() |
| 79 | { |
| 80 | gl::clear(); |
| 81 | |
| 82 | gl::color( 1, 0.5f, 0.25f ); |
| 83 | for( const auto &box : mBoxes ) { |
| 84 | gl::pushModelMatrix(); |
| 85 | gl::translate( box->GetPosition().x, box->GetPosition().y ); |
| 86 | gl::rotate( box->GetAngle() ); |
| 87 | |
| 88 | gl::drawSolidRect( Rectf( -BOX_SIZE, -BOX_SIZE, BOX_SIZE, BOX_SIZE ) ); |
| 89 | |
| 90 | gl::popModelMatrix(); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | CINDER_APP( _TBOX_PREFIX_App, RendererGl ) |
nothing calls this directly
no test coverage detected