Correct management of source<->destionation interaction using signals/slots

This commit is contained in:
Tats
2013-11-24 09:27:28 -05:00
parent 4310f297d1
commit 54c199f8fd
8 changed files with 62 additions and 31 deletions
+10
View File
@@ -24,6 +24,16 @@ DestinationGLCanvas::DestinationGLCanvas(QWidget* parent, const QGLWidget * shar
{
}
Quad& DestinationGLCanvas::getQuad() {
std::tr1::shared_ptr<TextureMapping> textureMapping = std::tr1::static_pointer_cast<TextureMapping>(Common::currentMapping);
Q_CHECK_PTR(textureMapping);
std::tr1::shared_ptr<Quad> quad = std::tr1::static_pointer_cast<Quad>(Common::currentMapping->getShape());
Q_CHECK_PTR(quad);
return (*quad);
}
void DestinationGLCanvas::doDraw() {
// TODO: Ceci est un hack necessaire car tout est en fonction de la width/height de la texture.
// Il faut changer ca.