bgfx/3rdparty/glsl-optimizer/src/node/compiler.h

28 lines
484 B
C
Raw Normal View History

2014-02-11 02:06:13 -05:00
#ifndef COMPILER_H
#define COMPILER_H
#include <node.h>
2014-10-11 15:32:43 -04:00
#include <nan.h>
2014-02-11 02:06:13 -05:00
#include <glsl_optimizer.h>
class Compiler : public node::ObjectWrap {
public:
static void Init(v8::Handle<v8::Object> exports);
inline glslopt_ctx* getBinding() const { return _binding; }
void release();
private:
2014-10-11 15:32:43 -04:00
Compiler(glslopt_target target);
2014-02-11 02:06:13 -05:00
~Compiler();
glslopt_ctx* _binding;
2014-10-11 15:32:43 -04:00
static NAN_METHOD(New);
static NAN_METHOD(Dispose);
static v8::Persistent<v8::Function> constructor;
2014-02-11 02:06:13 -05:00
};
#endif