public
Description: A Toolkit for creating Desktop Hardware Accelerated Graphics with JS.
Homepage:
Clone URL: git://github.com/philogb/v8-gl.git
v8-gl / v8-gl.h
100755 30 lines (21 sloc) 0.501 kb
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
/*
* v8-gl.h
*/
 
#ifndef V8GL_H_
#define V8GL_H_
 
#include <v8-debug.h>
 
#include "utils.h"
#include "glbindings/glbind.h"
#include "glesbindings/glesbind.h"
#include "glubindings/glubind.h"
#include "glutbindings/glutbind.h"
 
using namespace std;
using namespace v8;
 
class V8GL {
 
public:
bool initialize(int* pargc, char** argv, string scriptname);
bool executeScript(string scriptname);
 
//keep a reference to the global context.
static Persistent<Context> context;
};
 
#endif /* V8GL_H_ */