Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hook up v8-typed-array to v8-gl.

  • Loading branch information...
commit ef34aef627d902c8541dd40bdadf28b76fefbc0a 1 parent 7cf4523
C. Scott Ananian authored December 04, 2011
3  Makefile
@@ -10,7 +10,8 @@ BUILD_GLES_BINDINGS=1
10 10
 BUILD_GLU_BINDINGS=1
11 11
 BUILD_GLUT_BINDINGS=1
12 12
 
13  
-SRCS = main.cpp imageloader.cpp utils.cpp v8-gl.cpp
  13
+SRCS = main.cpp imageloader.cpp utils.cpp v8-gl.cpp \
  14
+	v8-typed-array/typed-array.cc
14 15
 
15 16
 ifdef BUILD_GL_BINDINGS
16 17
 SRCS += glbindings/glbind.cpp
5  v8-gl.cpp
@@ -9,6 +9,9 @@
9 9
 #include <string>
10 10
 #include <string.h>
11 11
 
  12
+extern "C" void
  13
+v8_typed_array_init (Handle<Object> target);
  14
+
12 15
 Persistent<Context> V8GL::context;
13 16
 
14 17
 //UTILITY FUNCTIONS
@@ -204,6 +207,8 @@ bool V8GL::initialize(int* pargc, char** argv, string scriptname) {
204 207
 	  // Enter the new context so all the following operations take place
205 208
 	  // within it.
206 209
 	  Context::Scope context_scope(context);
  210
+	  // hook up typed array support
  211
+	  v8_typed_array_init(context->Global());
207 212
 
208 213
 	  //Append *this* as Gl static variable so we can do dot-this-dot-that stuff
209 214
 #ifdef BUILD_GL_BINDINGS
2  v8-typed-array/typed-array.cc
@@ -177,7 +177,7 @@ DEFINE_ARRAY_BUFFER_VIEW(Float32Array, kExternalFloatArray, sizeof(float));
177 177
 // DEFINE_ARRAY_BUFFER_VIEW(PixelArray, kExternalPixelArray, sizeof(uint8_t));
178 178
 
179 179
 extern "C" void
180  
-init (Handle<Object> target) {
  180
+v8_typed_array_init (Handle<Object> target) {
181 181
     HandleScope scope;
182 182
 
183 183
     {

0 notes on commit ef34aef

Please sign in to comment.
Something went wrong with that request. Please try again.