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-11 12:01:37 +01:00
|
|
|
#include <set>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace GLSL {
|
|
|
|
|
|
|
|
|
|
class GLSL_EXPORT Engine
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Engine();
|
|
|
|
|
~Engine();
|
|
|
|
|
|
|
|
|
|
const std::string *identifier(const std::string &s);
|
|
|
|
|
const std::string *identifier(const char *s, int n);
|
|
|
|
|
|
2010-11-11 15:05:42 +01:00
|
|
|
MemoryPool *pool();
|
|
|
|
|
|
2010-11-11 12:01:37 +01:00
|
|
|
private:
|
|
|
|
|
std::set<std::string> _identifiers;
|
2010-11-11 15:05:42 +01:00
|
|
|
MemoryPool _pool;
|
2010-11-11 12:01:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace GLSL
|
|
|
|
|
|
|
|
|
|
#endif // GLSLENGINE_H
|