16b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer/*
26b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer**
36b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** Copyright 2012, The Android Open Source Project
46b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer**
56b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** Licensed under the Apache License, Version 2.0 (the "License");
66b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** you may not use this file except in compliance with the License.
76b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** You may obtain a copy of the License at
86b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer**
96b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer**     http://www.apache.org/licenses/LICENSE-2.0
106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer**
116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** Unless required by applicable law or agreed to in writing, software
126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** distributed under the License is distributed on an "AS IS" BASIS,
136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** See the License for the specific language governing permissions and
156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer** limitations under the License.
166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer*/
176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer// This source file is automatically generated
196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpackage android.opengl;
216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferimport android.graphics.SurfaceTexture;
236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferimport android.view.Surface;
246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferimport android.view.SurfaceView;
256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferimport android.view.SurfaceHolder;
266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer/**
289b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer * EGL 1.4
299b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer *
309b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer */
316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic class EGL14 {
326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_DEFAULT_DISPLAY            = 0;
346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static EGLContext EGL_NO_CONTEXT                = null;
356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static EGLDisplay EGL_NO_DISPLAY                = null;
366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static EGLSurface EGL_NO_SURFACE                = null;
376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_FALSE                          = 0;
396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRUE                           = 1;
406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SUCCESS                        = 0x3000;
416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NOT_INITIALIZED                = 0x3001;
426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_ACCESS                     = 0x3002;
436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_ALLOC                      = 0x3003;
446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_ATTRIBUTE                  = 0x3004;
456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_CONFIG                     = 0x3005;
466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_CONTEXT                    = 0x3006;
476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_CURRENT_SURFACE            = 0x3007;
486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_DISPLAY                    = 0x3008;
496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_MATCH                      = 0x3009;
506b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_NATIVE_PIXMAP              = 0x300A;
516b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_NATIVE_WINDOW              = 0x300B;
526b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_PARAMETER                  = 0x300C;
536b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BAD_SURFACE                    = 0x300D;
546b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONTEXT_LOST                   = 0x300E;
556b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BUFFER_SIZE                    = 0x3020;
566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_ALPHA_SIZE                     = 0x3021;
576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BLUE_SIZE                      = 0x3022;
586b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_GREEN_SIZE                     = 0x3023;
596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_RED_SIZE                       = 0x3024;
606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_DEPTH_SIZE                     = 0x3025;
616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_STENCIL_SIZE                   = 0x3026;
626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONFIG_CAVEAT                  = 0x3027;
636b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONFIG_ID                      = 0x3028;
646b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_LEVEL                          = 0x3029;
656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MAX_PBUFFER_HEIGHT             = 0x302A;
666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MAX_PBUFFER_PIXELS             = 0x302B;
676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MAX_PBUFFER_WIDTH              = 0x302C;
686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NATIVE_RENDERABLE              = 0x302D;
696b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NATIVE_VISUAL_ID               = 0x302E;
706b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NATIVE_VISUAL_TYPE             = 0x302F;
716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SAMPLES                        = 0x3031;
726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SAMPLE_BUFFERS                 = 0x3032;
736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SURFACE_TYPE                   = 0x3033;
746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRANSPARENT_TYPE               = 0x3034;
756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRANSPARENT_BLUE_VALUE         = 0x3035;
766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRANSPARENT_GREEN_VALUE        = 0x3036;
776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRANSPARENT_RED_VALUE          = 0x3037;
786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NONE                           = 0x3038;
796b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BIND_TO_TEXTURE_RGB            = 0x3039;
806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BIND_TO_TEXTURE_RGBA           = 0x303A;
816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MIN_SWAP_INTERVAL              = 0x303B;
826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MAX_SWAP_INTERVAL              = 0x303C;
836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_LUMINANCE_SIZE                 = 0x303D;
846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_ALPHA_MASK_SIZE                = 0x303E;
856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_COLOR_BUFFER_TYPE              = 0x303F;
866b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_RENDERABLE_TYPE                = 0x3040;
876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MATCH_NATIVE_PIXMAP            = 0x3041;
886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONFORMANT                     = 0x3042;
896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SLOW_CONFIG                    = 0x3050;
906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NON_CONFORMANT_CONFIG          = 0x3051;
916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TRANSPARENT_RGB                = 0x3052;
926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_RGB_BUFFER                     = 0x308E;
936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_LUMINANCE_BUFFER               = 0x308F;
946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_NO_TEXTURE                     = 0x305C;
956b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TEXTURE_RGB                    = 0x305D;
966b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TEXTURE_RGBA                   = 0x305E;
976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TEXTURE_2D                     = 0x305F;
986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_PBUFFER_BIT                    = 0x0001;
996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_PIXMAP_BIT                     = 0x0002;
1006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_WINDOW_BIT                     = 0x0004;
1016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_COLORSPACE_LINEAR_BIT       = 0x0020;
1026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_ALPHA_FORMAT_PRE_BIT        = 0x0040;
1036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MULTISAMPLE_RESOLVE_BOX_BIT    = 0x0200;
1046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SWAP_BEHAVIOR_PRESERVED_BIT    = 0x0400;
1056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENGL_ES_BIT                  = 0x0001;
1066b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENVG_BIT                     = 0x0002;
1076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENGL_ES2_BIT                 = 0x0004;
1086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENGL_BIT                     = 0x0008;
1096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VENDOR                         = 0x3053;
1106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VERSION                        = 0x3054;
1116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_EXTENSIONS                     = 0x3055;
1126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CLIENT_APIS                    = 0x308D;
1136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_HEIGHT                         = 0x3056;
1146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_WIDTH                          = 0x3057;
1156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_LARGEST_PBUFFER                = 0x3058;
1166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TEXTURE_FORMAT                 = 0x3080;
1176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_TEXTURE_TARGET                 = 0x3081;
1186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MIPMAP_TEXTURE                 = 0x3082;
1196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MIPMAP_LEVEL                   = 0x3083;
1206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_RENDER_BUFFER                  = 0x3086;
1216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_COLORSPACE                  = 0x3087;
1226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_ALPHA_FORMAT                = 0x3088;
1236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_HORIZONTAL_RESOLUTION          = 0x3090;
1246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VERTICAL_RESOLUTION            = 0x3091;
1256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_PIXEL_ASPECT_RATIO             = 0x3092;
1266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SWAP_BEHAVIOR                  = 0x3093;
1276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MULTISAMPLE_RESOLVE            = 0x3099;
1286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BACK_BUFFER                    = 0x3084;
1296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_SINGLE_BUFFER                  = 0x3085;
1306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_COLORSPACE_sRGB             = 0x3089;
1316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_COLORSPACE_LINEAR           = 0x308A;
1326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_ALPHA_FORMAT_NONPRE         = 0x308B;
1336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_VG_ALPHA_FORMAT_PRE            = 0x308C;
1346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_DISPLAY_SCALING                = 10000;
1356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BUFFER_PRESERVED               = 0x3094;
1366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_BUFFER_DESTROYED               = 0x3095;
1376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENVG_IMAGE                   = 0x3096;
1386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONTEXT_CLIENT_TYPE            = 0x3097;
1396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CONTEXT_CLIENT_VERSION         = 0x3098;
1406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MULTISAMPLE_RESOLVE_DEFAULT    = 0x309A;
1416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_MULTISAMPLE_RESOLVE_BOX        = 0x309B;
1426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENGL_ES_API                  = 0x30A0;
1436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENVG_API                     = 0x30A1;
1446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_OPENGL_API                     = 0x30A2;
1456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_DRAW                           = 0x3059;
1466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_READ                           = 0x305A;
1476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshoferpublic static final int EGL_CORE_NATIVE_ENGINE             = 0x305B;
1486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    native private static void _nativeClassInit();
1506b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    static {
1516b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        _nativeClassInit();
1526b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    }
1539b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLint eglGetError ( void )
1546b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1556b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native int eglGetError(
1566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1589b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id )
1596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLDisplay eglGetDisplay(
1616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int display_id
1626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1636b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1649b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglInitialize ( EGLDisplay dpy, EGLint *major, EGLint *minor )
1656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglInitialize(
1676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] major,
1696b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int majorOffset,
1706b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] minor,
1716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int minorOffset
1726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1749b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglTerminate ( EGLDisplay dpy )
1756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglTerminate(
1776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy
1786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1796b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    // C function const char * eglQueryString ( EGLDisplay dpy, EGLint name )
1816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native String eglQueryString(
1836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int name
1856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1869b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglGetConfigs ( EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config )
1876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglGetConfigs(
1896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig[] configs,
1916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int configsOffset,
1926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int config_size,
1936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] num_config,
1946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int num_configOffset
1956b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1966b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1979b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglChooseConfig ( EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config )
1986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglChooseConfig(
2006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attrib_listOffset,
2036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig[] configs,
2046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int configsOffset,
2056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int config_size,
2066b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] num_config,
2076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int num_configOffset
2086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2109b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglGetConfigAttrib ( EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value )
2116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglGetConfigAttrib(
2136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
2166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
2176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    // C function EGLSurface eglCreateWindowSurface ( EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list )
2216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    private static native EGLSurface _eglCreateWindowSurface(
2236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    private static native EGLSurface _eglCreateWindowSurfaceTexture(
2316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy,
2396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    ){
2446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Surface sur = null;
2456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        if (win instanceof SurfaceView) {
2466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            SurfaceView surfaceView = (SurfaceView)win;
2476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            sur = surfaceView.getHolder().getSurface();
2486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else if (win instanceof SurfaceHolder) {
2496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            SurfaceHolder holder = (SurfaceHolder)win;
2506b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            sur = holder.getSurface();
2511296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown        } else if (win instanceof Surface) {
2521296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown            sur = (Surface) win;
2536b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        }
2546b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2556b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface;
2566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        if (sur != null) {
2576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
2586b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else if (win instanceof SurfaceTexture) {
2596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            surface = _eglCreateWindowSurfaceTexture(dpy, config,
2606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                    win, attrib_list, offset);
2616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else {
2626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            throw new java.lang.UnsupportedOperationException(
2636b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                "eglCreateWindowSurface() can only be called with an instance of " +
2641296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown                "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
2656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                "this will be fixed later.");
2666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        }
2676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        return surface;
2696b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    }
2709b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePbufferSurface ( EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list )
2716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePbufferSurface(
2736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2799b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list )
2806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePixmapSurface(
2826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int pixmap,
2856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2866b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2899b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface )
2906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglDestroySurface(
2926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface
2946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2956b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2969b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value )
2976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglQuerySurface(
2996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
3026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
3036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3069b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglBindAPI ( EGLenum api )
3076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglBindAPI(
3096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int api
3106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3129b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLenum eglQueryAPI ( void )
3136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native int eglQueryAPI(
3156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3179b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitClient ( void )
3186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitClient(
3206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3229b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglReleaseThread ( void )
3236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglReleaseThread(
3256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3279b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list )
3286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePbufferFromClientBuffer(
3306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buftype,
3326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer,
3336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
3346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
3356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3389b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value )
3396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSurfaceAttrib(
3416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
3446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int value
3456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3479b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
3486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglBindTexImage(
3506b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3516b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3526b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer
3536b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3546b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3559b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
3566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglReleaseTexImage(
3586b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer
3616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3639b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSwapInterval ( EGLDisplay dpy, EGLint interval )
3646b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSwapInterval(
3666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int interval
3686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3696b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3709b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLContext eglCreateContext ( EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list )
3716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLContext eglCreateContext(
3736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
3756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext share_context,
3766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
3776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3796b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3809b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglDestroyContext ( EGLDisplay dpy, EGLContext ctx )
3816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglDestroyContext(
3836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx
3856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3866b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3879b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglMakeCurrent ( EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx )
3886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglMakeCurrent(
3906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface draw,
3926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface read,
3936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx
3946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3956b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3969b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLContext eglGetCurrentContext ( void )
3976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLContext eglGetCurrentContext(
3996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4019b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglGetCurrentSurface ( EGLint readdraw )
4026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglGetCurrentSurface(
4046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int readdraw
4056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4066b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4079b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLDisplay eglGetCurrentDisplay ( void )
4086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLDisplay eglGetCurrentDisplay(
4106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4129b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglQueryContext ( EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value )
4136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglQueryContext(
4156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx,
4176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
4186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
4196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
4206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4229b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitGL ( void )
4236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitGL(
4256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4279b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitNative ( EGLint engine )
4286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitNative(
4306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int engine
4316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4339b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface )
4346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSwapBuffers(
4366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface
4386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4409b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
4416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglCopyBuffers(
4436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
4456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int target
4466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer}
449