forked from tmpvar/node-ogl
/
common.h
38 lines (33 loc) · 795 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2010 Elijah Insua
#ifndef NODE_ADDON_SRC_COMMON_H_
#define NODE_ADDON_SRC_COMMON_H_
// Node Includes
#include <node.h>
#include <node_events.h>
#include <node_object_wrap.h>
#include <node_buffer.h>
#include <v8.h>
#include <node.h>
#include <sys/time.h>
// OpenGL Includes
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else // Other than __APPLE__
#include <GL/gl.h>
#include <GL/glu.h>
#endif
// Binding includes
#include "gl.h"
#include "glfw.h"
#include "glu.h"
namespace node {
class glConstants {
public:
static void Initialize (v8::Handle<v8::Object> target) {
glConstants::value_symbol = v8::Persistent<v8::String>::New(v8::String::NewSymbol("value"));
}
static v8::Persistent<v8::String> value_symbol;
};
}
#endif