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    );
1626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1639b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglInitialize ( EGLDisplay dpy, EGLint *major, EGLint *minor )
1646b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglInitialize(
1666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] major,
1686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int majorOffset,
1696b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] minor,
1706b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int minorOffset
1716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1739b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglTerminate ( EGLDisplay dpy )
1746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglTerminate(
1766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy
1776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1796b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    // C function const char * eglQueryString ( EGLDisplay dpy, EGLint name )
1806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native String eglQueryString(
1826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int name
1846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1859b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglGetConfigs ( EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config )
1866b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglGetConfigs(
1886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
1896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig[] configs,
1906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int configsOffset,
1916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int config_size,
1926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] num_config,
1936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int num_configOffset
1946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
1956b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1969b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglChooseConfig ( EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config )
1976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
1986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglChooseConfig(
1996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attrib_listOffset,
2026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig[] configs,
2036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int configsOffset,
2046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int config_size,
2056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] num_config,
2066b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int num_configOffset
2076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2099b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglGetConfigAttrib ( EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value )
2106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2116b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglGetConfigAttrib(
2126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
2156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
2166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    // C function EGLSurface eglCreateWindowSurface ( EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list )
2206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2216b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    private static native EGLSurface _eglCreateWindowSurface(
2226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2266b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    private static native EGLSurface _eglCreateWindowSurfaceTexture(
2306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy,
2386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Object win,
2406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    ){
2436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        Surface sur = null;
2446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        if (win instanceof SurfaceView) {
2456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            SurfaceView surfaceView = (SurfaceView)win;
2466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            sur = surfaceView.getHolder().getSurface();
2476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else if (win instanceof SurfaceHolder) {
2486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            SurfaceHolder holder = (SurfaceHolder)win;
2496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            sur = holder.getSurface();
2501296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown        } else if (win instanceof Surface) {
2511296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown            sur = (Surface) win;
2526b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        }
2536b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2546b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface;
2556b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        if (sur != null) {
2566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
2576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else if (win instanceof SurfaceTexture) {
2586b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            surface = _eglCreateWindowSurfaceTexture(dpy, config,
2596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                    win, attrib_list, offset);
2606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        } else {
2616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer            throw new java.lang.UnsupportedOperationException(
2626b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                "eglCreateWindowSurface() can only be called with an instance of " +
2631296c63bf14af034a90d5579ff301d1a2b70e34aJeff Brown                "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
2646b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer                "this will be fixed later.");
2656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        }
2666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        return surface;
2686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    }
2699b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePbufferSurface ( EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list )
2706b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePbufferSurface(
2726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2789b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list )
2796b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePixmapSurface(
2816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
2836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int pixmap,
2846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
2856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
2866b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2889b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface )
2896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglDestroySurface(
2916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface
2936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
2946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2959b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value )
2966b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
2976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglQuerySurface(
2986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
2996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3006b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
3016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
3026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3059b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglBindAPI ( EGLenum api )
3066b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglBindAPI(
3086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int api
3096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3119b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLenum eglQueryAPI ( void )
3126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native int eglQueryAPI(
3146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3169b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitClient ( void )
3176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitClient(
3196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3219b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglReleaseThread ( void )
3226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglReleaseThread(
3246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3269b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list )
3276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglCreatePbufferFromClientBuffer(
3296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buftype,
3316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer,
3326b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
3336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
3346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3379b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value )
3386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3396b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSurfaceAttrib(
3406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
3436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int value
3446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3469b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
3476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3486b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglBindTexImage(
3496b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3506b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3516b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer
3526b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3536b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3549b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
3556b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3566b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglReleaseTexImage(
3576b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3586b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
3596b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int buffer
3606b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3616b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3629b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSwapInterval ( EGLDisplay dpy, EGLint interval )
3636b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3646b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSwapInterval(
3656b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3666b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int interval
3676b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3686b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3699b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLContext eglCreateContext ( EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list )
3706b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3716b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLContext eglCreateContext(
3726b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3736b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLConfig config,
3746b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext share_context,
3756b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] attrib_list,
3766b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
3776b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3786b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3799b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglDestroyContext ( EGLDisplay dpy, EGLContext ctx )
3806b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3816b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglDestroyContext(
3826b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3836b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx
3846b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3856b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3869b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglMakeCurrent ( EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx )
3876b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3886b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglMakeCurrent(
3896b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
3906b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface draw,
3916b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface read,
3926b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx
3936b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3946b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3959b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLContext eglGetCurrentContext ( void )
3966b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
3976b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLContext eglGetCurrentContext(
3986b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
3996b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4009b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLSurface eglGetCurrentSurface ( EGLint readdraw )
4016b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4026b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLSurface eglGetCurrentSurface(
4036b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int readdraw
4046b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4056b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4069b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLDisplay eglGetCurrentDisplay ( void )
4076b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4086b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native EGLDisplay eglGetCurrentDisplay(
4096b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4106b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4119b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglQueryContext ( EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value )
4126b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4136b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglQueryContext(
4146b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4156b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLContext ctx,
4166b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int attribute,
4176b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int[] value,
4186b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int offset
4196b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4206b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4219b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitGL ( void )
4226b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4236b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitGL(
4246b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4256b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4269b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglWaitNative ( EGLint engine )
4276b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4286b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglWaitNative(
4296b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int engine
4306b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4316b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4329b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface )
4336b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4346b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglSwapBuffers(
4356b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4366b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface
4376b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4386b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4399b18b515909354d7b48c8ebc33ec38e2c6bbdf37Thomas Tafertshofer    // C function EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
4406b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4416b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    public static native boolean eglCopyBuffers(
4426b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLDisplay dpy,
4436b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        EGLSurface surface,
4446b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer        int target
4456b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer    );
4466b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer
4476b1e838fc16d397359f82c3a4f5700f1ed7dd910Thomas Tafertshofer}
448