#ifndef COMPILER_H #define COMPILER_H #include #include class Compiler : public node::ObjectWrap { public: static void Init(v8::Handle exports); inline glslopt_ctx* getBinding() const { return _binding; } void release(); private: Compiler(bool essl); ~Compiler(); glslopt_ctx* _binding; static v8::Handle New(const v8::Arguments& args); static v8::Handle Dispose(const v8::Arguments& args); }; #endif