2010-11-11 12:01:37 +01:00
|
|
|
#ifndef GLSLENGINE_H
|
|
|
|
|
#define GLSLENGINE_H
|
|
|
|
|
|
|
|
|
|
#include "glsl.h"
|
2010-11-11 15:05:42 +01:00
|
|
|
#include "glslmemorypool.h"
|
2010-11-18 15:57:44 +10:00
|
|
|
#include <QtCore/qstring.h>
|
|
|
|
|
#include <QtCore/qset.h>
|
2010-11-11 12:01:37 +01:00
|
|
|
|
|
|
|
|
namespace GLSL {
|
|
|
|
|
|
|
|
|
|
class GLSL_EXPORT Engine
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Engine();
|
|
|
|
|
~Engine();
|
|
|
|
|
|
2010-11-18 15:57:44 +10:00
|
|
|
const QString *identifier(const QString &s);
|
|
|
|
|
const QString *identifier(const char *s, int n);
|
2010-11-11 12:01:37 +01:00
|
|
|
|
2010-11-11 15:05:42 +01:00
|
|
|
MemoryPool *pool();
|
|
|
|
|
|
2010-11-11 12:01:37 +01:00
|
|
|
private:
|
2010-11-18 15:57:44 +10:00
|
|
|
QSet<QString> _identifiers;
|
2010-11-11 15:05:42 +01:00
|
|
|
MemoryPool _pool;
|
2010-11-11 12:01:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace GLSL
|
|
|
|
|
|
|
|
|
|
#endif // GLSLENGINE_H
|