mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 20:07:01 -05:00
27 lines
484 B
C++
27 lines
484 B
C++
#ifndef COMPILER_H
|
|
#define COMPILER_H
|
|
|
|
#include <node.h>
|
|
#include <nan.h>
|
|
#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:
|
|
Compiler(glslopt_target target);
|
|
~Compiler();
|
|
|
|
glslopt_ctx* _binding;
|
|
|
|
static NAN_METHOD(New);
|
|
static NAN_METHOD(Dispose);
|
|
static v8::Persistent<v8::Function> constructor;
|
|
};
|
|
|
|
#endif
|