SHARE
TWEET

Untitled

a guest May 31st, 2014 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define OBJECT_NAME "MyObject"
  2.  
  3. #include <node.h>
  4. #include "../libgt2d.h"
  5.  
  6. class MyObject : public node::ObjectWrap
  7. {
  8. public:
  9.     static void Init(v8::Handle<v8::Object> exports);
  10.  
  11. private:
  12.     libgt2d lib;
  13.  
  14.     explicit MyObject();
  15.     ~MyObject();
  16.  
  17.     static v8::Handle<v8::Value> New(const v8::Arguments& args);
  18.  
  19.     static v8::Handle<v8::Value> Start_Lib(const v8::Arguments& args);
  20.     static v8::Handle<v8::Value> Stop_Lib(const v8::Arguments& args);
  21.     static v8::Persistent<v8::Function> constructor;
  22. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top