mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
Revisited example
This commit is contained in:
parent
5269e26dfb
commit
f72eb4e896
@ -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)
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
#include <meshlab/glarea.h>
|
||||
|
||||
|
||||
class DummyPlugin : public QObject, public MeshRenderInterface
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user