plugin.cpp 748 Bytes
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1
2
3
#include "plugin.h"

#include <GL/glew.h>
Sylvain Thery's avatar
Sylvain Thery committed
4
5
#include <QTextStream>
#include "schnapps.h"
Sylvain Thery's avatar
Sylvain Thery committed
6
7
8
9
10
11
12
13
14

namespace CGoGN
{

namespace SCHNApps
{

Plugin::Plugin() : m_schnapps(NULL)
{
15
	glewExperimental = GL_TRUE; // needed for GL Core Profile 3.3
Sylvain Thery's avatar
Sylvain Thery committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
	glewInit();
}

Plugin::~Plugin()
{}


//const QString& Plugin::getName() const
//{ /*return m_name; */return QString("pipo");}

QString Plugin::getName()
{ return m_name; }

QString Plugin::getFilePath()
{ return m_filePath; }

SCHNApps* Plugin::getSCHNApps()
{ return m_schnapps; }


void Plugin::setName(const QString& name)
{ m_name = name; }

void Plugin::setFilePath(const QString& f)
{ m_filePath = f; }

void Plugin::setSCHNApps(SCHNApps* s)
{ m_schnapps = s; }

Sylvain Thery's avatar
Sylvain Thery committed
45

Sylvain Thery's avatar
Sylvain Thery committed
46
47
48
} // namespace SCHNApps

} // namespace CGoGN