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