@@ -91,7 +91,6 @@ var LibraryEGL = {
91
91
92
92
// EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id);
93
93
eglGetDisplay__proxy: 'sync' ,
94
- eglGetDisplay__sig : 'ii' ,
95
94
eglGetDisplay : function ( nativeDisplayType ) {
96
95
EGL . setErrorCode ( 0x3000 /* EGL_SUCCESS */ ) ;
97
96
// Note: As a 'conformant' implementation of EGL, we would prefer to init here only if the user
@@ -110,7 +109,6 @@ var LibraryEGL = {
110
109
111
110
// EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
112
111
eglInitialize__proxy : 'sync' ,
113
- eglInitialize__sig : 'iiii' ,
114
112
eglInitialize : function ( display , majorVersion , minorVersion ) {
115
113
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
116
114
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -129,7 +127,6 @@ var LibraryEGL = {
129
127
130
128
// EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy);
131
129
eglTerminate__proxy : 'sync' ,
132
- eglTerminate__sig : 'ii' ,
133
130
eglTerminate : function ( display ) {
134
131
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
135
132
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -145,21 +142,18 @@ var LibraryEGL = {
145
142
146
143
// EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
147
144
eglGetConfigs__proxy : 'sync' ,
148
- eglGetConfigs__sig : 'iiiii' ,
149
145
eglGetConfigs : function ( display , configs , config_size , numConfigs ) {
150
146
return EGL . chooseConfig ( display , 0 , configs , config_size , numConfigs ) ;
151
147
} ,
152
148
153
149
// EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
154
150
eglChooseConfig__proxy : 'sync' ,
155
- eglChooseConfig__sig : 'iiiiii' ,
156
151
eglChooseConfig : function ( display , attrib_list , configs , config_size , numConfigs ) {
157
152
return EGL . chooseConfig ( display , attrib_list , configs , config_size , numConfigs ) ;
158
153
} ,
159
154
160
155
// EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
161
156
eglGetConfigAttrib__proxy : 'sync' ,
162
- eglGetConfigAttrib__sig : 'iiiii' ,
163
157
eglGetConfigAttrib : function ( display , config , attribute , value ) {
164
158
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
165
159
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -277,7 +271,6 @@ var LibraryEGL = {
277
271
278
272
// EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
279
273
eglCreateWindowSurface__proxy : 'sync' ,
280
- eglCreateWindowSurface__sig : 'iiiii' ,
281
274
eglCreateWindowSurface : function ( display , config , win , attrib_list ) {
282
275
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
283
276
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -297,7 +290,6 @@ var LibraryEGL = {
297
290
298
291
// EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay display, EGLSurface surface);
299
292
eglDestroySurface__proxy : 'sync' ,
300
- eglDestroySurface__sig : 'iii' ,
301
293
eglDestroySurface : function ( display , surface ) {
302
294
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
303
295
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -321,7 +313,6 @@ var LibraryEGL = {
321
313
322
314
// EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
323
315
eglCreateContext__proxy : 'sync' ,
324
- eglCreateContext__sig : 'iiiii' ,
325
316
eglCreateContext : function ( display , config , hmm , contextAttribs ) {
326
317
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
327
318
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -386,7 +377,6 @@ var LibraryEGL = {
386
377
387
378
// EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext context);
388
379
eglDestroyContext__proxy : 'sync' ,
389
- eglDestroyContext__sig : 'iii' ,
390
380
eglDestroyContext : function ( display , context ) {
391
381
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
392
382
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -407,7 +397,6 @@ var LibraryEGL = {
407
397
408
398
// EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
409
399
eglQuerySurface__proxy : 'sync' ,
410
- eglQuerySurface__sig : 'iiiii' ,
411
400
eglQuerySurface : function ( display , surface , attribute , value ) {
412
401
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
413
402
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -474,7 +463,6 @@ var LibraryEGL = {
474
463
475
464
// EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
476
465
eglQueryContext__proxy : 'sync' ,
477
- eglQueryContext__sig : 'iiiii' ,
478
466
eglQueryContext : function ( display , context , attribute , value ) {
479
467
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
480
468
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -514,15 +502,13 @@ var LibraryEGL = {
514
502
515
503
// EGLAPI EGLint EGLAPIENTRY eglGetError(void);
516
504
eglGetError__proxy : 'sync' ,
517
- eglGetError__sig : 'i' ,
518
505
eglGetError : function ( ) {
519
506
return EGL . errorCode ;
520
507
} ,
521
508
522
509
// EGLAPI const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name);
523
510
eglQueryString__deps : [ '$stringToNewUTF8' ] ,
524
511
eglQueryString__proxy : 'sync' ,
525
- eglQueryString__sig : 'iii' ,
526
512
eglQueryString : function ( display , name ) {
527
513
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
528
514
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -547,7 +533,6 @@ var LibraryEGL = {
547
533
548
534
// EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api);
549
535
eglBindAPI__proxy : 'sync' ,
550
- eglBindAPI__sig : 'ii' ,
551
536
eglBindAPI : function ( api ) {
552
537
if ( api == 0x30A0 /* EGL_OPENGL_ES_API */ ) {
553
538
EGL . setErrorCode ( 0x3000 /* EGL_SUCCESS */ ) ;
@@ -560,23 +545,20 @@ var LibraryEGL = {
560
545
561
546
// EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(void);
562
547
eglQueryAPI__proxy : 'sync' ,
563
- eglQueryAPI__sig : 'i' ,
564
548
eglQueryAPI : function ( ) {
565
549
EGL . setErrorCode ( 0x3000 /* EGL_SUCCESS */ ) ;
566
550
return 0x30A0 ; // EGL_OPENGL_ES_API
567
551
} ,
568
552
569
553
// EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(void);
570
554
eglWaitClient__proxy : 'sync' ,
571
- eglWaitClient__sig : 'i' ,
572
555
eglWaitClient : function ( ) {
573
556
EGL . setErrorCode ( 0x3000 /* EGL_SUCCESS */ ) ;
574
557
return 1 ;
575
558
} ,
576
559
577
560
// EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine);
578
561
eglWaitNative__proxy : 'sync' ,
579
- eglWaitNative__sig : 'ii' ,
580
562
eglWaitNative : function ( nativeEngineId ) {
581
563
EGL . setErrorCode ( 0x3000 /* EGL_SUCCESS */ ) ;
582
564
return 1 ;
@@ -589,7 +571,6 @@ var LibraryEGL = {
589
571
// EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval);
590
572
eglSwapInterval__deps : [ 'emscripten_set_main_loop_timing' ] ,
591
573
eglSwapInterval__proxy : 'sync' ,
592
- eglSwapInterval__sig : 'iii' ,
593
574
eglSwapInterval : function ( display , interval ) {
594
575
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
595
576
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -605,7 +586,6 @@ var LibraryEGL = {
605
586
// EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
606
587
eglMakeCurrent__deps : [ '$GL' ] ,
607
588
eglMakeCurrent__proxy : 'sync' ,
608
- eglMakeCurrent__sig : 'iiiii' ,
609
589
eglMakeCurrent : function ( display , draw , read , context ) {
610
590
if ( display != 62000 /* Magic ID for Emscripten 'default display' */ ) {
611
591
EGL . setErrorCode ( 0x3008 /* EGL_BAD_DISPLAY */ ) ;
@@ -632,14 +612,12 @@ var LibraryEGL = {
632
612
633
613
// EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(void);
634
614
eglGetCurrentContext__proxy : 'sync' ,
635
- eglGetCurrentContext__sig : 'i' ,
636
615
eglGetCurrentContext : function ( ) {
637
616
return EGL . currentContext ;
638
617
} ,
639
618
640
619
// EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw);
641
620
eglGetCurrentSurface__proxy : 'sync' ,
642
- eglGetCurrentSurface__sig : 'ii' ,
643
621
eglGetCurrentSurface : function ( readdraw ) {
644
622
if ( readdraw == 0x305A /* EGL_READ */ ) {
645
623
return EGL . currentReadSurface ;
@@ -653,15 +631,13 @@ var LibraryEGL = {
653
631
654
632
// EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(void);
655
633
eglGetCurrentDisplay__proxy : 'sync' ,
656
- eglGetCurrentDisplay__sig : 'i' ,
657
634
eglGetCurrentDisplay : function ( ) {
658
635
return EGL . currentContext ? 62000 /* Magic ID for Emscripten 'default display' */ : 0 ;
659
636
} ,
660
637
661
638
// EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
662
639
eglSwapBuffers__proxy : 'sync' ,
663
- eglSwapBuffers__sig : 'iii' ,
664
- eglSwapBuffers : function ( ) {
640
+ eglSwapBuffers : function ( dpy , surface ) {
665
641
#if PROXY_TO_WORKER
666
642
if ( Browser . doSwapBuffers ) Browser . doSwapBuffers ( ) ;
667
643
#endif
@@ -684,7 +660,6 @@ var LibraryEGL = {
684
660
} ,
685
661
686
662
eglReleaseThread__proxy : 'sync' ,
687
- eglReleaseThread__sig : 'i' ,
688
663
eglReleaseThread : function ( ) {
689
664
// Equivalent to eglMakeCurrent with EGL_NO_CONTEXT and EGL_NO_SURFACE.
690
665
EGL . currentContext = 0 ;
0 commit comments