void MinigameBbAnt::drawSprites2() { DrawList drawList; buildDrawList2(drawList); _vm->_screen->drawDrawList(drawList, _spriteModule); drawMagnifyingGlass(drawList); _vm->_screen->drawDrawList(drawList, _spriteModule); _vm->_screen->copyToScreen(); }
// -------------------------------------------------------- void ShiftWidgetRenderer::paint( GLResourceContainer * container, int pass, TouchWidgetRenderer * to_texture_renderer ) const { Q_UNUSED(to_texture_renderer); if(pass == 0) { Q_ASSERT(controller()->magnifyingGlasses().size() == 2); const MagnifyingGlass * mg = controller()->magnifyingGlasses().back(); drawMagnifyingGlass(container, mg); drawCross(container, mg->dstCenter()); drawCross(container, mg->srcCenter()); //drawWhiteCircle(container, mg->srcCenter(), mg->srcRadius()); //drawMagnifyingGlass(container, controller()->magnifyingGlasses().front()); } }
// -------------------------------------------------------- void DualFingerStretchWidgetRenderer::paint( GLResourceContainer * container, int pass, TouchWidgetRenderer * to_texture_renderer ) const { Q_UNUSED(to_texture_renderer); if(pass == 0) { const MagnifyingGlass * mg = controller()->magnifyingGlass(); drawResizers(container, controller()->resizingPoint(), mg->dstCenter(), mg->dstRadius(), mg->dstCenter()-QPointF(1,0), _resizer_angles); float alpha = 1.0f; if(fabsf(mg->ratio()-1.0f) < 0.01f) alpha = 0.5f; drawMagnifyingGlass(container, mg, alpha); } }