-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathv8-gl.h
More file actions
executable file
·40 lines (32 loc) · 770 Bytes
/
v8-gl.h
File metadata and controls
executable file
·40 lines (32 loc) · 770 Bytes
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
39
40
/*
* v8-gl.h
*/
#ifndef V8GL_H_
#define V8GL_H_
#include <string>
#include <v8-debug.h>
#include "utils.h"
#ifdef BUILD_GL_BINDINGS
#include "glbindings/glbind.h"
#endif
#ifdef BUILD_GLES_BINDINGS
#include "glesbindings/glesbind.h"
#endif
#ifdef BUILD_GLU_BINDINGS
#include "glubindings/glubind.h"
#endif
#ifdef BUILD_GLUT_BINDINGS
#include "glutbindings/glutbind.h"
#endif
using namespace std;
using namespace v8;
class V8GL {
public:
bool initialize(int* pargc, char** argv, string scriptname);
bool executeScript(string scriptname);
static const char* ToCString(const v8::String::Utf8Value& value);
static void ReportException(TryCatch* try_catch);
//keep a reference to the global context.
static Persistent<Context> context;
};
#endif /* V8GL_H_ */