Revisited example

This commit is contained in:
Paolo Cignoni cignoni 2005-12-03 16:10:19 +00:00
parent 5269e26dfb
commit f72eb4e896
3 changed files with 25 additions and 1 deletions

View File

@ -20,12 +20,34 @@
****************************************************************************/
#include <QtGui>
#include <meshlab/meshmodel.h>
#include <meshlab/interfaces.h>
#include <meshlab/glarea.h>
#include "dummy.h"
using namespace vcg;
void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla)
{
if(a->text() == "action 1")
{
rm.drawColor = GLW::CMNone;
return;
}
if(a->text() == "action 2")
{
rm.drawColor = GLW::CMPerVert;
return;
}
if(a->text() == "action 2")
{
rm.drawColor = GLW::CMPerFace;
return;
}
}
Q_EXPORT_PLUGIN(DummyPlugin)

View File

@ -28,6 +28,7 @@
#include <meshlab/meshmodel.h>
#include <meshlab/interfaces.h>
#include <meshlab/glarea.h>
class DummyPlugin : public QObject, public MeshRenderInterface

View File

@ -1,9 +1,10 @@
TEMPLATE = lib
CONFIG += plugin
CONFIG += qt plugin
INCLUDEPATH += ../.. ../../../../sf ../../../../code/lib/glew/include
HEADERS = dummy.h
SOURCES = dummy.cpp
TARGET = dummy
QT += opengl
DESTDIR = ../../meshlab/plugins
# the following line is needed to avoid mismatch between
# the awful min/max macros of windows and the limits max