@nativescript/canvas 2.0.0-alpha.48 → 2.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +72 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +72 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +1 -1
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +10 -7
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +28 -5
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +240 -194
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +811 -5
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
#include "WebGLRenderingContext.h"
|
|
6
6
|
#include "OneByteStringResource.h"
|
|
7
7
|
|
|
8
|
+
v8::CFunction WebGLRenderingContext::fast_disable_(
|
|
9
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDisable));
|
|
10
|
+
|
|
11
|
+
v8::CFunction WebGLRenderingContext::fast_resized_(
|
|
12
|
+
v8::CFunction::Make(WebGLRenderingContext::__FastResized));
|
|
13
|
+
|
|
14
|
+
v8::CFunction WebGLRenderingContext::fast_start_raf_(
|
|
15
|
+
v8::CFunction::Make(WebGLRenderingContext::__FastStartRaf));
|
|
16
|
+
|
|
17
|
+
v8::CFunction WebGLRenderingContext::fast_stop_raf_(
|
|
18
|
+
v8::CFunction::Make(WebGLRenderingContext::__FastStopRaf));
|
|
8
19
|
|
|
9
20
|
v8::CFunction WebGLRenderingContext::fast_active_texture_(
|
|
10
21
|
v8::CFunction::Make(WebGLRenderingContext::FastActiveTexture));
|
|
@@ -57,6 +68,12 @@ v8::CFunction WebGLRenderingContext::fast_uniform4i_(
|
|
|
57
68
|
v8::CFunction WebGLRenderingContext::fast_draw_arrays_(
|
|
58
69
|
v8::CFunction::Make(WebGLRenderingContext::FastDrawArrays));
|
|
59
70
|
|
|
71
|
+
v8::CFunction WebGLRenderingContext::fast_clear_depth_(
|
|
72
|
+
v8::CFunction::Make(WebGLRenderingContext::FastClearDepth));
|
|
73
|
+
|
|
74
|
+
v8::CFunction WebGLRenderingContext::fast_clear_stencil_(
|
|
75
|
+
v8::CFunction::Make(WebGLRenderingContext::FastClearStencil));
|
|
76
|
+
|
|
60
77
|
v8::CFunction WebGLRenderingContext::fast_clear_(
|
|
61
78
|
v8::CFunction::Make(WebGLRenderingContext::FastClear));
|
|
62
79
|
|
|
@@ -210,7 +227,7 @@ const v8::CFunction uniform_4fv_overloads_[] = {
|
|
|
210
227
|
WebGLRenderingContext::fast_uniform_4fv_array_
|
|
211
228
|
};
|
|
212
229
|
|
|
213
|
-
v8::CFunction WebGLRenderingContext::
|
|
230
|
+
v8::CFunction WebGLRenderingContext::fast_vertex_attrib_pointer_(
|
|
214
231
|
v8::CFunction::Make(WebGLRenderingContext::FastVertexAttribPointer));
|
|
215
232
|
|
|
216
233
|
|
|
@@ -278,6 +295,162 @@ v8::CFunction WebGLRenderingContext::fast_vertex_attrib_4fv_(
|
|
|
278
295
|
v8::CFunction::Make(WebGLRenderingContext::FastVertexAttrib4fv));
|
|
279
296
|
|
|
280
297
|
|
|
298
|
+
v8::CFunction WebGLRenderingContext::fast_blend_color_(
|
|
299
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBlendColor));
|
|
300
|
+
|
|
301
|
+
v8::CFunction WebGLRenderingContext::fast_blend_equation_separate_(
|
|
302
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBlendEquationSeparate));
|
|
303
|
+
|
|
304
|
+
v8::CFunction WebGLRenderingContext::fast_blend_equation_(
|
|
305
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBlendEquation));
|
|
306
|
+
|
|
307
|
+
v8::CFunction WebGLRenderingContext::fast_blend_func_separate_(
|
|
308
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBlendFuncSeparate));
|
|
309
|
+
|
|
310
|
+
v8::CFunction WebGLRenderingContext::fast_blend_func_(
|
|
311
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBlendFunc));
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_os_(
|
|
315
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataOS));
|
|
316
|
+
|
|
317
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_target_usage_(
|
|
318
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataTargetUsage));
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
/*
|
|
322
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_u8_(
|
|
323
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataU8));
|
|
324
|
+
|
|
325
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_i8_(
|
|
326
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataI8));
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_u16_(
|
|
330
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataU16));
|
|
331
|
+
|
|
332
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_i16_(
|
|
333
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataI16));
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_u32_(
|
|
338
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataU32));
|
|
339
|
+
|
|
340
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_i32_(
|
|
341
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataI32));
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_f32_(
|
|
345
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataF32));
|
|
346
|
+
|
|
347
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_data_f64_(
|
|
348
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferDataF64));
|
|
349
|
+
//
|
|
350
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_data_array_buffer_(
|
|
351
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferDataArrayBuffer));
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
const v8::CFunction fast_buffer_data_overloads_[] = {
|
|
355
|
+
WebGLRenderingContext::fast_buffer_data_os_,
|
|
356
|
+
//WebGLRenderingContext::fast_buffer_data_u8_,
|
|
357
|
+
// WebGLRenderingContext::fast_buffer_data_i8_,
|
|
358
|
+
// WebGLRenderingContext::fast_buffer_data_u16_,
|
|
359
|
+
// WebGLRenderingContext::fast_buffer_data_i16_,
|
|
360
|
+
WebGLRenderingContext::fast_buffer_data_u32_,
|
|
361
|
+
WebGLRenderingContext::fast_buffer_data_i32_,
|
|
362
|
+
WebGLRenderingContext::fast_buffer_data_f32_,
|
|
363
|
+
WebGLRenderingContext::fast_buffer_data_f64_,
|
|
364
|
+
// WebGLRenderingContext::fast_buffer_data_array_buffer_,
|
|
365
|
+
WebGLRenderingContext::fast_buffer_data_target_usage_,
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_target_offset_(
|
|
370
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataTargetOffset));
|
|
371
|
+
|
|
372
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_u8_(
|
|
373
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataU8));
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_i8_(
|
|
377
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataI8));
|
|
378
|
+
//
|
|
379
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_u16_(
|
|
380
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataU16));
|
|
381
|
+
//
|
|
382
|
+
//
|
|
383
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_i16_(
|
|
384
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataI16));
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_u32_(
|
|
388
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataU32));
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_i32_(
|
|
392
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataI32));
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_f32_(
|
|
396
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataF32));
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_f64_(
|
|
400
|
+
v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataF64));
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
//v8::CFunction WebGLRenderingContext::fast_buffer_sub_data_array_buffer_(
|
|
404
|
+
// v8::CFunction::Make(WebGLRenderingContext::FastBufferSubDataArrayBuffer));
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
const v8::CFunction fast_buffer_sub_data_overloads_[] = {
|
|
409
|
+
// WebGLRenderingContext::fast_buffer_sub_data_u8_,
|
|
410
|
+
WebGLRenderingContext::fast_buffer_sub_data_u32_,
|
|
411
|
+
WebGLRenderingContext::fast_buffer_sub_data_i32_,
|
|
412
|
+
WebGLRenderingContext::fast_buffer_sub_data_f32_,
|
|
413
|
+
WebGLRenderingContext::fast_buffer_sub_data_f64_,
|
|
414
|
+
// WebGLRenderingContext::fast_buffer_sub_data_array_buffer_,
|
|
415
|
+
WebGLRenderingContext::fast_buffer_sub_data_target_offset_
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
v8::CFunction WebGLRenderingContext::fast_check_framebuffer_status_(
|
|
420
|
+
v8::CFunction::Make(WebGLRenderingContext::FastCheckFramebufferStatus));
|
|
421
|
+
|
|
422
|
+
v8::CFunction WebGLRenderingContext::fast_validate_program_(
|
|
423
|
+
v8::CFunction::Make(WebGLRenderingContext::FastValidateProgram));
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
v8::CFunction WebGLRenderingContext::fast_delete_buffer_(
|
|
427
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteBuffer));
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
v8::CFunction WebGLRenderingContext::fast_delete_buffer_framebuffer_(
|
|
431
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteFramebuffer));
|
|
432
|
+
|
|
433
|
+
v8::CFunction WebGLRenderingContext::fast_delete_program_(
|
|
434
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteProgram));
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
v8::CFunction WebGLRenderingContext::fast_delete_renderbuffer_(
|
|
438
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteFramebuffer));
|
|
439
|
+
|
|
440
|
+
v8::CFunction WebGLRenderingContext::fast_delete_shader_(
|
|
441
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteFramebuffer));
|
|
442
|
+
|
|
443
|
+
v8::CFunction WebGLRenderingContext::fast_delete_texture_(
|
|
444
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteTexture));
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
v8::CFunction WebGLRenderingContext::fast_compile_shader_(
|
|
448
|
+
v8::CFunction::Make(WebGLRenderingContext::FastCompileShader));
|
|
449
|
+
|
|
450
|
+
v8::CFunction WebGLRenderingContext::fast_framebuffer_texture_2d_(
|
|
451
|
+
v8::CFunction::Make(WebGLRenderingContext::FastFramebufferTexture2D));
|
|
452
|
+
|
|
453
|
+
|
|
281
454
|
WebGLRenderingContext::WebGLRenderingContext(WebGLState *state)
|
|
282
455
|
: WebGLRenderingContextBase(state, WebGLRenderingVersion::V1) {
|
|
283
456
|
|
|
@@ -1544,6 +1717,7 @@ void WebGLRenderingContext::CullFace(const v8::FunctionCallbackInfo<v8::Value> &
|
|
|
1544
1717
|
|
|
1545
1718
|
}
|
|
1546
1719
|
|
|
1720
|
+
|
|
1547
1721
|
void WebGLRenderingContext::DeleteBuffer(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1548
1722
|
WebGLRenderingContext *ptr = GetPointer(args.This());
|
|
1549
1723
|
if (ptr == nullptr) {
|
|
@@ -5987,21 +6161,26 @@ void WebGLRenderingContext::SetProps(v8::Isolate *isolate,
|
|
|
5987
6161
|
void
|
|
5988
6162
|
WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::ObjectTemplate> &tmpl) {
|
|
5989
6163
|
|
|
5990
|
-
tmpl->Set(ConvertToV8String(isolate, "__resized"),
|
|
5991
|
-
v8::FunctionTemplate::New(isolate, &__Resized));
|
|
5992
|
-
tmpl->Set(ConvertToV8String(isolate, "__startRaf"),
|
|
5993
|
-
v8::FunctionTemplate::New(isolate, &__StartRaf));
|
|
5994
|
-
tmpl->Set(ConvertToV8String(isolate, "__stopRaf"),
|
|
5995
|
-
v8::FunctionTemplate::New(isolate, &__StopRaf));
|
|
5996
6164
|
|
|
6165
|
+
SetFastMethod(isolate, tmpl, "__resized", __Resized, &fast_resized_,
|
|
6166
|
+
v8::Local<v8::Value>());
|
|
6167
|
+
|
|
6168
|
+
SetFastMethod(isolate, tmpl, "__startRaf", __StartRaf, &fast_start_raf_,
|
|
6169
|
+
v8::Local<v8::Value>());
|
|
6170
|
+
|
|
6171
|
+
SetFastMethod(isolate, tmpl, "__stopRaf", __StopRaf, &fast_stop_raf_,
|
|
6172
|
+
v8::Local<v8::Value>());
|
|
6173
|
+
|
|
6174
|
+
|
|
6175
|
+
// todo
|
|
5997
6176
|
tmpl->Set(ConvertToV8String(isolate, "__toDataURL"),
|
|
5998
6177
|
v8::FunctionTemplate::New(isolate, &__ToDataURL));
|
|
5999
6178
|
|
|
6179
|
+
// todo
|
|
6000
6180
|
tmpl->Set(ConvertToV8String(isolate, "__getSupportedExtensions"),
|
|
6001
6181
|
v8::FunctionTemplate::New(isolate, &__GetSupportedExtensions));
|
|
6002
6182
|
|
|
6003
6183
|
|
|
6004
|
-
|
|
6005
6184
|
SetFastMethod(isolate, tmpl, "activeTexture", ActiveTexture, &fast_active_texture_,
|
|
6006
6185
|
v8::Local<v8::Value>());
|
|
6007
6186
|
|
|
@@ -6009,6 +6188,7 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6009
6188
|
SetFastMethod(isolate, tmpl, "attachShader", AttachShader, &fast_attach_shader_,
|
|
6010
6189
|
v8::Local<v8::Value>());
|
|
6011
6190
|
|
|
6191
|
+
// todo
|
|
6012
6192
|
tmpl->Set(
|
|
6013
6193
|
ConvertToV8String(isolate, "bindAttribLocation"),
|
|
6014
6194
|
v8::FunctionTemplate::New(isolate, &BindAttribLocation)
|
|
@@ -6017,90 +6197,58 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6017
6197
|
SetFastMethodWithOverLoads(isolate, tmpl, "bindBuffer", BindBuffer,
|
|
6018
6198
|
bind_buffer_overloads_, v8::Local<v8::Value>());
|
|
6019
6199
|
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
6200
|
SetFastMethodWithOverLoads(isolate, tmpl, "bindFramebuffer", BindFramebuffer,
|
|
6023
6201
|
fast_bind_frame_buffer_overloads_, v8::Local<v8::Value>());
|
|
6024
6202
|
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
6203
|
SetFastMethodWithOverLoads(isolate, tmpl, "bindRenderbuffer", BindRenderbuffer,
|
|
6028
6204
|
fast_bind_render_buffer_overloads_, v8::Local<v8::Value>());
|
|
6029
6205
|
|
|
6030
6206
|
|
|
6031
|
-
tmpl->Set(
|
|
6032
|
-
ConvertToV8String(isolate, "bindTexture"),
|
|
6033
|
-
v8::FunctionTemplate::New(isolate, &BindTexture)
|
|
6034
|
-
);
|
|
6035
|
-
|
|
6036
6207
|
SetFastMethodWithOverLoads(isolate, tmpl, "bindTexture", BindTexture,
|
|
6037
6208
|
fast_bind_texture_overloads_, v8::Local<v8::Value>());
|
|
6038
6209
|
|
|
6210
|
+
SetFastMethod(isolate, tmpl, "blendColor", BlendColor, &fast_blend_color_,
|
|
6211
|
+
v8::Local<v8::Value>());
|
|
6039
6212
|
|
|
6213
|
+
SetFastMethod(isolate, tmpl, "blendEquationSeparate", BlendEquationSeparate,
|
|
6214
|
+
&fast_blend_equation_separate_,
|
|
6215
|
+
v8::Local<v8::Value>());
|
|
6040
6216
|
|
|
6041
|
-
tmpl
|
|
6042
|
-
|
|
6043
|
-
v8::FunctionTemplate::New(isolate, &BlendColor)
|
|
6044
|
-
);
|
|
6217
|
+
SetFastMethod(isolate, tmpl, "blendEquation", BlendEquation, &fast_blend_equation_,
|
|
6218
|
+
v8::Local<v8::Value>());
|
|
6045
6219
|
|
|
6046
|
-
tmpl->Set(
|
|
6047
|
-
ConvertToV8String(isolate, "blendEquationSeparate"),
|
|
6048
|
-
v8::FunctionTemplate::New(isolate, &BlendEquationSeparate)
|
|
6049
|
-
);
|
|
6050
6220
|
|
|
6051
|
-
tmpl
|
|
6052
|
-
|
|
6053
|
-
v8::FunctionTemplate::New(isolate, &BlendEquation)
|
|
6054
|
-
);
|
|
6221
|
+
SetFastMethod(isolate, tmpl, "blendFuncSeparate", BlendFuncSeparate, &fast_blend_func_separate_,
|
|
6222
|
+
v8::Local<v8::Value>());
|
|
6055
6223
|
|
|
6056
|
-
tmpl->Set(
|
|
6057
|
-
ConvertToV8String(isolate, "blendFuncSeparate"),
|
|
6058
|
-
v8::FunctionTemplate::New(isolate, &BlendFuncSeparate)
|
|
6059
|
-
);
|
|
6060
6224
|
|
|
6225
|
+
SetFastMethod(isolate, tmpl, "blendFunc", BlendFunc, &fast_blend_func_,
|
|
6226
|
+
v8::Local<v8::Value>());
|
|
6061
6227
|
|
|
6062
|
-
tmpl->Set(
|
|
6063
|
-
ConvertToV8String(isolate, "blendFunc"),
|
|
6064
|
-
v8::FunctionTemplate::New(isolate, &BlendFunc)
|
|
6065
|
-
);
|
|
6066
6228
|
|
|
6067
|
-
tmpl
|
|
6068
|
-
|
|
6069
|
-
v8::FunctionTemplate::New(isolate, &BufferData)
|
|
6070
|
-
);
|
|
6229
|
+
SetFastMethodWithOverLoads(isolate, tmpl, "bufferData", BufferData,
|
|
6230
|
+
fast_buffer_data_overloads_, v8::Local<v8::Value>());
|
|
6071
6231
|
|
|
6072
|
-
tmpl->Set(
|
|
6073
|
-
ConvertToV8String(isolate, "bufferSubData"),
|
|
6074
|
-
v8::FunctionTemplate::New(isolate, &BufferSubData)
|
|
6075
|
-
);
|
|
6076
6232
|
|
|
6077
|
-
tmpl
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6233
|
+
SetFastMethodWithOverLoads(isolate, tmpl, "bufferSubData", BufferSubData,
|
|
6234
|
+
fast_buffer_sub_data_overloads_, v8::Local<v8::Value>());
|
|
6235
|
+
|
|
6236
|
+
|
|
6237
|
+
SetFastMethod(isolate, tmpl, "checkFramebufferStatus", CheckFramebufferStatus,
|
|
6238
|
+
&fast_check_framebuffer_status_,
|
|
6239
|
+
v8::Local<v8::Value>());
|
|
6081
6240
|
|
|
6082
|
-
// tmpl->Set(
|
|
6083
|
-
// ConvertToV8String(isolate, "clearColor"),
|
|
6084
|
-
// v8::FunctionTemplate::New(isolate, &ClearColor)
|
|
6085
|
-
// );
|
|
6086
6241
|
|
|
6087
6242
|
SetFastMethod(isolate, tmpl, "clearColor", ClearColor, &fast_clear_color_,
|
|
6088
6243
|
v8::Local<v8::Value>());
|
|
6089
6244
|
|
|
6090
|
-
tmpl->Set(
|
|
6091
|
-
ConvertToV8String(isolate, "clearDepth"),
|
|
6092
|
-
v8::FunctionTemplate::New(isolate, &ClearDepth)
|
|
6093
|
-
);
|
|
6094
6245
|
|
|
6095
|
-
tmpl
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
);
|
|
6246
|
+
SetFastMethod(isolate, tmpl, "clearDepth", ClearDepth, &fast_clear_depth_,
|
|
6247
|
+
v8::Local<v8::Value>());
|
|
6248
|
+
|
|
6099
6249
|
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
// v8::FunctionTemplate::New(isolate, &Clear)
|
|
6103
|
-
// );
|
|
6250
|
+
SetFastMethod(isolate, tmpl, "clearStencil", ClearStencil, &fast_clear_stencil_,
|
|
6251
|
+
v8::Local<v8::Value>());
|
|
6104
6252
|
|
|
6105
6253
|
|
|
6106
6254
|
SetFastMethod(isolate, tmpl, "clear", Clear, &fast_clear_, v8::Local<v8::Value>());
|
|
@@ -6113,10 +6261,11 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6113
6261
|
ConvertToV8String(isolate, "commit"),
|
|
6114
6262
|
v8::FunctionTemplate::New(isolate, &Commit)
|
|
6115
6263
|
);
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6264
|
+
|
|
6265
|
+
SetFastMethod(isolate, tmpl, "compileShader", CompileShader, &fast_compile_shader_,
|
|
6266
|
+
v8::Local<v8::Value>());
|
|
6267
|
+
|
|
6268
|
+
|
|
6120
6269
|
tmpl->Set(
|
|
6121
6270
|
ConvertToV8String(isolate, "compressedTexImage2D"),
|
|
6122
6271
|
v8::FunctionTemplate::New(isolate, &CompressedTexImage2D)
|
|
@@ -6170,36 +6319,25 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6170
6319
|
v8::FunctionTemplate::New(isolate, &CullFace)
|
|
6171
6320
|
);
|
|
6172
6321
|
|
|
6173
|
-
tmpl->Set(
|
|
6174
|
-
ConvertToV8String(isolate, "deleteBuffer"),
|
|
6175
|
-
v8::FunctionTemplate::New(isolate, &DeleteBuffer)
|
|
6176
|
-
);
|
|
6177
6322
|
|
|
6323
|
+
SetFastMethod(isolate, tmpl, "deleteBuffer", DeleteBuffer, &fast_delete_buffer_,
|
|
6324
|
+
v8::Local<v8::Value>());
|
|
6178
6325
|
|
|
6179
|
-
tmpl
|
|
6180
|
-
|
|
6181
|
-
v8::FunctionTemplate::New(isolate, &DeleteFramebuffer)
|
|
6182
|
-
);
|
|
6326
|
+
SetFastMethod(isolate, tmpl, "deleteFramebuffer", DeleteFramebuffer,
|
|
6327
|
+
&fast_delete_buffer_framebuffer_, v8::Local<v8::Value>());
|
|
6183
6328
|
|
|
6184
|
-
tmpl
|
|
6185
|
-
|
|
6186
|
-
v8::FunctionTemplate::New(isolate, &DeleteProgram)
|
|
6187
|
-
);
|
|
6329
|
+
SetFastMethod(isolate, tmpl, "deleteProgram", DeleteProgram, &fast_delete_program_,
|
|
6330
|
+
v8::Local<v8::Value>());
|
|
6188
6331
|
|
|
6189
|
-
tmpl
|
|
6190
|
-
|
|
6191
|
-
v8::FunctionTemplate::New(isolate, &DeleteRenderbuffer)
|
|
6192
|
-
);
|
|
6332
|
+
SetFastMethod(isolate, tmpl, "deleteRenderbuffer", DeleteRenderbuffer,
|
|
6333
|
+
&fast_delete_renderbuffer_, v8::Local<v8::Value>());
|
|
6193
6334
|
|
|
6194
|
-
tmpl
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6335
|
+
SetFastMethod(isolate, tmpl, "deleteShader", DeleteShader, &fast_delete_shader_,
|
|
6336
|
+
v8::Local<v8::Value>());
|
|
6337
|
+
|
|
6338
|
+
SetFastMethod(isolate, tmpl, "deleteTexture", DeleteTexture, &fast_delete_texture_,
|
|
6339
|
+
v8::Local<v8::Value>());
|
|
6198
6340
|
|
|
6199
|
-
tmpl->Set(
|
|
6200
|
-
ConvertToV8String(isolate, "deleteTexture"),
|
|
6201
|
-
v8::FunctionTemplate::New(isolate, &DeleteTexture)
|
|
6202
|
-
);
|
|
6203
6341
|
|
|
6204
6342
|
tmpl->Set(
|
|
6205
6343
|
ConvertToV8String(isolate, "depthFunc"),
|
|
@@ -6226,37 +6364,20 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6226
6364
|
v8::FunctionTemplate::New(isolate, &DisableVertexAttribArray)
|
|
6227
6365
|
);
|
|
6228
6366
|
|
|
6229
|
-
tmpl
|
|
6230
|
-
|
|
6231
|
-
v8::FunctionTemplate::New(isolate, &Disable)
|
|
6232
|
-
);
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
// tmpl->Set(
|
|
6236
|
-
// ConvertToV8String(isolate, "drawArrays"),
|
|
6237
|
-
// v8::FunctionTemplate::New(isolate, &DrawArrays)
|
|
6238
|
-
// );
|
|
6367
|
+
SetFastMethod(isolate, tmpl, "disable", Disable, &fast_disable_,
|
|
6368
|
+
v8::Local<v8::Value>());
|
|
6239
6369
|
|
|
6240
6370
|
SetFastMethod(isolate, tmpl, "drawArrays", DrawArrays, &fast_draw_arrays_,
|
|
6241
6371
|
v8::Local<v8::Value>());
|
|
6242
6372
|
|
|
6243
6373
|
|
|
6244
|
-
|
|
6245
6374
|
SetFastMethod(isolate, tmpl, "drawElements", DrawElements, &fast_draw_elements_,
|
|
6246
6375
|
v8::Local<v8::Value>());
|
|
6247
6376
|
|
|
6248
6377
|
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
6378
|
SetFastMethod(isolate, tmpl, "enableVertexAttribArray", EnableVertexAttribArray,
|
|
6252
6379
|
&fast_enable_vertex_attrib_array_, v8::Local<v8::Value>());
|
|
6253
6380
|
|
|
6254
|
-
|
|
6255
|
-
// tmpl->Set(
|
|
6256
|
-
// ConvertToV8String(isolate, "enable"),
|
|
6257
|
-
// v8::FunctionTemplate::New(isolate, &Enable)
|
|
6258
|
-
// );
|
|
6259
|
-
|
|
6260
6381
|
SetFastMethod(isolate, tmpl, "enable", Enable, &fast_enable_, v8::Local<v8::Value>());
|
|
6261
6382
|
|
|
6262
6383
|
tmpl->Set(
|
|
@@ -6269,16 +6390,15 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6269
6390
|
v8::FunctionTemplate::New(isolate, &Flush)
|
|
6270
6391
|
);
|
|
6271
6392
|
|
|
6272
|
-
|
|
6273
6393
|
tmpl->Set(
|
|
6274
6394
|
ConvertToV8String(isolate, "framebufferRenderbuffer"),
|
|
6275
6395
|
v8::FunctionTemplate::New(isolate, &FramebufferRenderbuffer)
|
|
6276
6396
|
);
|
|
6277
6397
|
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6398
|
+
|
|
6399
|
+
SetFastMethod(isolate, tmpl, "framebufferTexture2D", FramebufferTexture2D,
|
|
6400
|
+
&fast_framebuffer_texture_2d_, v8::Local<v8::Value>());
|
|
6401
|
+
|
|
6282
6402
|
|
|
6283
6403
|
tmpl->Set(
|
|
6284
6404
|
ConvertToV8String(isolate, "frontFace"),
|
|
@@ -6595,7 +6715,7 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6595
6715
|
|
|
6596
6716
|
|
|
6597
6717
|
SetFastMethod(isolate, tmpl, "vertexAttribPointer", VertexAttribPointer,
|
|
6598
|
-
&
|
|
6718
|
+
&fast_vertex_attrib_pointer_, v8::Local<v8::Value>());
|
|
6599
6719
|
|
|
6600
6720
|
|
|
6601
6721
|
SetFastMethod(isolate, tmpl, "uniform1f", Uniform1f, &fast_uniform1f_, v8::Local<v8::Value>());
|
|
@@ -6605,7 +6725,6 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6605
6725
|
uniform_1iv_overloads_, v8::Local<v8::Value>());
|
|
6606
6726
|
|
|
6607
6727
|
|
|
6608
|
-
|
|
6609
6728
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniform1fv", Uniform1fv,
|
|
6610
6729
|
uniform_1fv_overloads_, v8::Local<v8::Value>());
|
|
6611
6730
|
|
|
@@ -6613,7 +6732,6 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6613
6732
|
SetFastMethod(isolate, tmpl, "uniform1i", Uniform1i, &fast_uniform1i_, v8::Local<v8::Value>());
|
|
6614
6733
|
|
|
6615
6734
|
|
|
6616
|
-
|
|
6617
6735
|
SetFastMethod(isolate, tmpl, "uniform2f", Uniform2f, &fast_uniform2f_, v8::Local<v8::Value>());
|
|
6618
6736
|
|
|
6619
6737
|
|
|
@@ -6625,97 +6743,39 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6625
6743
|
uniform_2fv_overloads_, v8::Local<v8::Value>());
|
|
6626
6744
|
|
|
6627
6745
|
|
|
6628
|
-
|
|
6629
6746
|
SetFastMethod(isolate, tmpl, "uniform2i", Uniform2i, &fast_uniform2i_, v8::Local<v8::Value>());
|
|
6630
6747
|
|
|
6631
|
-
// tmpl->Set(
|
|
6632
|
-
// ConvertToV8String(isolate, "uniform3f"),
|
|
6633
|
-
// v8::FunctionTemplate::New(isolate, &Uniform3f)
|
|
6634
|
-
// );
|
|
6635
6748
|
|
|
6636
6749
|
SetFastMethod(isolate, tmpl, "uniform3f", Uniform3f, &fast_uniform3f_, v8::Local<v8::Value>());
|
|
6637
6750
|
|
|
6638
|
-
// tmpl->Set(
|
|
6639
|
-
// ConvertToV8String(isolate, "uniform3iv"),
|
|
6640
|
-
// v8::FunctionTemplate::New(isolate, &Uniform3iv)
|
|
6641
|
-
// );
|
|
6642
6751
|
|
|
6643
6752
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniform3iv", Uniform3iv,
|
|
6644
6753
|
uniform_3iv_overloads_, v8::Local<v8::Value>());
|
|
6645
6754
|
|
|
6646
|
-
// tmpl->Set(
|
|
6647
|
-
// ConvertToV8String(isolate, "uniform3fv"),
|
|
6648
|
-
// v8::FunctionTemplate::New(isolate, &Uniform3fv)
|
|
6649
|
-
// );
|
|
6650
6755
|
|
|
6651
6756
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniform3fv", Uniform3fv,
|
|
6652
6757
|
uniform_3fv_overloads_, v8::Local<v8::Value>());
|
|
6653
6758
|
|
|
6654
|
-
// tmpl->Set(
|
|
6655
|
-
// ConvertToV8String(isolate, "uniform3i"),
|
|
6656
|
-
// v8::FunctionTemplate::New(isolate, &Uniform3i)
|
|
6657
|
-
// );
|
|
6658
|
-
|
|
6659
6759
|
SetFastMethod(isolate, tmpl, "uniform3i", Uniform3i, &fast_uniform3i_, v8::Local<v8::Value>());
|
|
6660
6760
|
|
|
6661
|
-
// tmpl->Set(
|
|
6662
|
-
// ConvertToV8String(isolate, "uniform4f"),
|
|
6663
|
-
// v8::FunctionTemplate::New(isolate, &Uniform4f)
|
|
6664
|
-
// );
|
|
6665
6761
|
|
|
6666
6762
|
SetFastMethod(isolate, tmpl, "uniform4f", Uniform4f, &fast_uniform4f_, v8::Local<v8::Value>());
|
|
6667
6763
|
|
|
6668
|
-
// tmpl->Set(
|
|
6669
|
-
// ConvertToV8String(isolate, "uniform4iv"),
|
|
6670
|
-
// v8::FunctionTemplate::New(isolate, &Uniform4iv)
|
|
6671
|
-
// );
|
|
6672
|
-
|
|
6673
6764
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniform4iv", Uniform4iv,
|
|
6674
6765
|
uniform_4iv_overloads_, v8::Local<v8::Value>());
|
|
6675
6766
|
|
|
6676
6767
|
|
|
6677
|
-
// tmpl->Set(
|
|
6678
|
-
// ConvertToV8String(isolate, "uniform4fv"),
|
|
6679
|
-
// v8::FunctionTemplate::New(isolate, &Uniform4fv)
|
|
6680
|
-
// );
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
6768
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniform4fv", Uniform4fv,
|
|
6684
6769
|
uniform_4fv_overloads_, v8::Local<v8::Value>());
|
|
6685
6770
|
|
|
6686
|
-
|
|
6687
|
-
// tmpl->Set(
|
|
6688
|
-
// ConvertToV8String(isolate, "uniform4i"),
|
|
6689
|
-
// v8::FunctionTemplate::New(isolate, &Uniform4i)
|
|
6690
|
-
// );
|
|
6691
|
-
|
|
6692
6771
|
SetFastMethod(isolate, tmpl, "uniform4i", Uniform4i, &fast_uniform4i_, v8::Local<v8::Value>());
|
|
6693
6772
|
|
|
6694
|
-
|
|
6695
|
-
// tmpl->Set(
|
|
6696
|
-
// ConvertToV8String(isolate, "uniformMatrix2fv"),
|
|
6697
|
-
// v8::FunctionTemplate::New(isolate, &UniformMatrix2fv)
|
|
6698
|
-
// );
|
|
6699
|
-
|
|
6700
6773
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniformMatrix2fv", UniformMatrix2fv,
|
|
6701
6774
|
uniform_matrix2fv_overloads_, v8::Local<v8::Value>());
|
|
6702
6775
|
|
|
6703
|
-
|
|
6704
|
-
// tmpl->Set(
|
|
6705
|
-
// ConvertToV8String(isolate, "uniformMatrix3fv"),
|
|
6706
|
-
// v8::FunctionTemplate::New(isolate, &UniformMatrix3fv)
|
|
6707
|
-
// );
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
6776
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniformMatrix3fv", UniformMatrix3fv,
|
|
6711
6777
|
uniform_matrix3fv_overloads_, v8::Local<v8::Value>());
|
|
6712
6778
|
|
|
6713
|
-
|
|
6714
|
-
// tmpl->Set(
|
|
6715
|
-
// ConvertToV8String(isolate, "uniformMatrix4fv"),
|
|
6716
|
-
// v8::FunctionTemplate::New(isolate, &UniformMatrix4fv)
|
|
6717
|
-
// );
|
|
6718
|
-
|
|
6719
6779
|
SetFastMethodWithOverLoads(isolate, tmpl, "uniformMatrix4fv", UniformMatrix4fv,
|
|
6720
6780
|
uniform_matrix4fv_overloads_, v8::Local<v8::Value>());
|
|
6721
6781
|
|
|
@@ -6723,22 +6783,8 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6723
6783
|
fast_use_overloads_, v8::Local<v8::Value>());
|
|
6724
6784
|
|
|
6725
6785
|
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
// v8::FunctionTemplate::New(isolate, &UseProgram)
|
|
6729
|
-
// );
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
tmpl->Set(
|
|
6733
|
-
ConvertToV8String(isolate, "validateProgram"),
|
|
6734
|
-
v8::FunctionTemplate::New(isolate, &ValidateProgram)
|
|
6735
|
-
);
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
// tmpl->Set(
|
|
6739
|
-
// ConvertToV8String(isolate, "viewport"),
|
|
6740
|
-
// v8::FunctionTemplate::New(isolate, &Viewport)
|
|
6741
|
-
// );
|
|
6786
|
+
SetFastMethod(isolate, tmpl, "validateProgram", ValidateProgram, &fast_validate_program_,
|
|
6787
|
+
v8::Local<v8::Value>());
|
|
6742
6788
|
|
|
6743
6789
|
|
|
6744
6790
|
SetFastMethod(isolate, tmpl, "viewport", Viewport, &fast_viewport_, v8::Local<v8::Value>());
|