mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Correct management of source<->destionation interaction using signals/slots
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user