blob: 80e64e01559a2f90b08e51008e94423384a23fe9 [file] [log] [blame]
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -07001/*
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -07002** Copyright 2012, The Android Open Source Project
3**
4** Licensed under the Apache License, Version 2.0 (the "License");
5** you may not use this file except in compliance with the License.
6** You may obtain a copy of the License at
7**
8** http://www.apache.org/licenses/LICENSE-2.0
9**
10** Unless required by applicable law or agreed to in writing, software
11** distributed under the License is distributed on an "AS IS" BASIS,
12** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13** See the License for the specific language governing permissions and
14** limitations under the License.
15*/
16
17// This source file is automatically generated
18
19package android.opengl;
20
Artur Satayev53ada2a2019-12-10 17:47:56 +000021import android.compat.annotation.UnsupportedAppUsage;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070022import android.graphics.SurfaceTexture;
Mathew Inwood5d123b62020-11-04 09:29:36 +000023import android.os.Build;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070024import android.view.Surface;
Austin Wanga63a2c02019-12-19 06:38:19 +000025import android.view.SurfaceHolder;
Artur Satayev53ada2a2019-12-10 17:47:56 +000026import android.view.SurfaceView;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070027
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070028/**
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -070029 * EGL 1.4
30 *
31 */
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070032public class EGL14 {
33
34public static final int EGL_DEFAULT_DISPLAY = 0;
35public static EGLContext EGL_NO_CONTEXT = null;
36public static EGLDisplay EGL_NO_DISPLAY = null;
37public static EGLSurface EGL_NO_SURFACE = null;
38
39public static final int EGL_FALSE = 0;
40public static final int EGL_TRUE = 1;
41public static final int EGL_SUCCESS = 0x3000;
42public static final int EGL_NOT_INITIALIZED = 0x3001;
43public static final int EGL_BAD_ACCESS = 0x3002;
44public static final int EGL_BAD_ALLOC = 0x3003;
45public static final int EGL_BAD_ATTRIBUTE = 0x3004;
46public static final int EGL_BAD_CONFIG = 0x3005;
47public static final int EGL_BAD_CONTEXT = 0x3006;
48public static final int EGL_BAD_CURRENT_SURFACE = 0x3007;
49public static final int EGL_BAD_DISPLAY = 0x3008;
50public static final int EGL_BAD_MATCH = 0x3009;
51public static final int EGL_BAD_NATIVE_PIXMAP = 0x300A;
52public static final int EGL_BAD_NATIVE_WINDOW = 0x300B;
53public static final int EGL_BAD_PARAMETER = 0x300C;
54public static final int EGL_BAD_SURFACE = 0x300D;
55public static final int EGL_CONTEXT_LOST = 0x300E;
56public static final int EGL_BUFFER_SIZE = 0x3020;
57public static final int EGL_ALPHA_SIZE = 0x3021;
58public static final int EGL_BLUE_SIZE = 0x3022;
59public static final int EGL_GREEN_SIZE = 0x3023;
60public static final int EGL_RED_SIZE = 0x3024;
61public static final int EGL_DEPTH_SIZE = 0x3025;
62public static final int EGL_STENCIL_SIZE = 0x3026;
63public static final int EGL_CONFIG_CAVEAT = 0x3027;
64public static final int EGL_CONFIG_ID = 0x3028;
65public static final int EGL_LEVEL = 0x3029;
66public static final int EGL_MAX_PBUFFER_HEIGHT = 0x302A;
67public static final int EGL_MAX_PBUFFER_PIXELS = 0x302B;
68public static final int EGL_MAX_PBUFFER_WIDTH = 0x302C;
69public static final int EGL_NATIVE_RENDERABLE = 0x302D;
70public static final int EGL_NATIVE_VISUAL_ID = 0x302E;
71public static final int EGL_NATIVE_VISUAL_TYPE = 0x302F;
72public static final int EGL_SAMPLES = 0x3031;
73public static final int EGL_SAMPLE_BUFFERS = 0x3032;
74public static final int EGL_SURFACE_TYPE = 0x3033;
75public static final int EGL_TRANSPARENT_TYPE = 0x3034;
76public static final int EGL_TRANSPARENT_BLUE_VALUE = 0x3035;
77public static final int EGL_TRANSPARENT_GREEN_VALUE = 0x3036;
78public static final int EGL_TRANSPARENT_RED_VALUE = 0x3037;
79public static final int EGL_NONE = 0x3038;
80public static final int EGL_BIND_TO_TEXTURE_RGB = 0x3039;
81public static final int EGL_BIND_TO_TEXTURE_RGBA = 0x303A;
82public static final int EGL_MIN_SWAP_INTERVAL = 0x303B;
83public static final int EGL_MAX_SWAP_INTERVAL = 0x303C;
84public static final int EGL_LUMINANCE_SIZE = 0x303D;
85public static final int EGL_ALPHA_MASK_SIZE = 0x303E;
86public static final int EGL_COLOR_BUFFER_TYPE = 0x303F;
87public static final int EGL_RENDERABLE_TYPE = 0x3040;
88public static final int EGL_MATCH_NATIVE_PIXMAP = 0x3041;
89public static final int EGL_CONFORMANT = 0x3042;
90public static final int EGL_SLOW_CONFIG = 0x3050;
91public static final int EGL_NON_CONFORMANT_CONFIG = 0x3051;
92public static final int EGL_TRANSPARENT_RGB = 0x3052;
93public static final int EGL_RGB_BUFFER = 0x308E;
94public static final int EGL_LUMINANCE_BUFFER = 0x308F;
95public static final int EGL_NO_TEXTURE = 0x305C;
96public static final int EGL_TEXTURE_RGB = 0x305D;
97public static final int EGL_TEXTURE_RGBA = 0x305E;
98public static final int EGL_TEXTURE_2D = 0x305F;
99public static final int EGL_PBUFFER_BIT = 0x0001;
100public static final int EGL_PIXMAP_BIT = 0x0002;
101public static final int EGL_WINDOW_BIT = 0x0004;
102public static final int EGL_VG_COLORSPACE_LINEAR_BIT = 0x0020;
103public static final int EGL_VG_ALPHA_FORMAT_PRE_BIT = 0x0040;
104public static final int EGL_MULTISAMPLE_RESOLVE_BOX_BIT = 0x0200;
105public static final int EGL_SWAP_BEHAVIOR_PRESERVED_BIT = 0x0400;
106public static final int EGL_OPENGL_ES_BIT = 0x0001;
107public static final int EGL_OPENVG_BIT = 0x0002;
108public static final int EGL_OPENGL_ES2_BIT = 0x0004;
109public static final int EGL_OPENGL_BIT = 0x0008;
110public static final int EGL_VENDOR = 0x3053;
111public static final int EGL_VERSION = 0x3054;
112public static final int EGL_EXTENSIONS = 0x3055;
113public static final int EGL_CLIENT_APIS = 0x308D;
114public static final int EGL_HEIGHT = 0x3056;
115public static final int EGL_WIDTH = 0x3057;
116public static final int EGL_LARGEST_PBUFFER = 0x3058;
117public static final int EGL_TEXTURE_FORMAT = 0x3080;
118public static final int EGL_TEXTURE_TARGET = 0x3081;
119public static final int EGL_MIPMAP_TEXTURE = 0x3082;
120public static final int EGL_MIPMAP_LEVEL = 0x3083;
121public static final int EGL_RENDER_BUFFER = 0x3086;
122public static final int EGL_VG_COLORSPACE = 0x3087;
123public static final int EGL_VG_ALPHA_FORMAT = 0x3088;
124public static final int EGL_HORIZONTAL_RESOLUTION = 0x3090;
125public static final int EGL_VERTICAL_RESOLUTION = 0x3091;
126public static final int EGL_PIXEL_ASPECT_RATIO = 0x3092;
127public static final int EGL_SWAP_BEHAVIOR = 0x3093;
128public static final int EGL_MULTISAMPLE_RESOLVE = 0x3099;
129public static final int EGL_BACK_BUFFER = 0x3084;
130public static final int EGL_SINGLE_BUFFER = 0x3085;
131public static final int EGL_VG_COLORSPACE_sRGB = 0x3089;
132public static final int EGL_VG_COLORSPACE_LINEAR = 0x308A;
133public static final int EGL_VG_ALPHA_FORMAT_NONPRE = 0x308B;
134public static final int EGL_VG_ALPHA_FORMAT_PRE = 0x308C;
135public static final int EGL_DISPLAY_SCALING = 10000;
136public static final int EGL_BUFFER_PRESERVED = 0x3094;
137public static final int EGL_BUFFER_DESTROYED = 0x3095;
138public static final int EGL_OPENVG_IMAGE = 0x3096;
139public static final int EGL_CONTEXT_CLIENT_TYPE = 0x3097;
140public static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
141public static final int EGL_MULTISAMPLE_RESOLVE_DEFAULT = 0x309A;
142public static final int EGL_MULTISAMPLE_RESOLVE_BOX = 0x309B;
143public static final int EGL_OPENGL_ES_API = 0x30A0;
144public static final int EGL_OPENVG_API = 0x30A1;
145public static final int EGL_OPENGL_API = 0x30A2;
146public static final int EGL_DRAW = 0x3059;
147public static final int EGL_READ = 0x305A;
148public static final int EGL_CORE_NATIVE_ENGINE = 0x305B;
149
150 native private static void _nativeClassInit();
151 static {
152 _nativeClassInit();
153 }
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700154 // C function EGLint eglGetError ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700155
156 public static native int eglGetError(
157 );
158
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700159 // C function EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700160
161 public static native EGLDisplay eglGetDisplay(
162 int display_id
163 );
Ashok Bhat64d38d92014-02-26 10:00:48 +0000164
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000165 /**
166 * {@hide}
167 */
Mathew Inwood5d123b62020-11-04 09:29:36 +0000168 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000169 public static native EGLDisplay eglGetDisplay(
170 long display_id
171 );
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700172
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700173 // C function EGLBoolean eglInitialize ( EGLDisplay dpy, EGLint *major, EGLint *minor )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700174
175 public static native boolean eglInitialize(
176 EGLDisplay dpy,
177 int[] major,
178 int majorOffset,
179 int[] minor,
180 int minorOffset
181 );
182
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700183 // C function EGLBoolean eglTerminate ( EGLDisplay dpy )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700184
185 public static native boolean eglTerminate(
186 EGLDisplay dpy
187 );
188
189 // C function const char * eglQueryString ( EGLDisplay dpy, EGLint name )
190
191 public static native String eglQueryString(
192 EGLDisplay dpy,
193 int name
194 );
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700195 // C function EGLBoolean eglGetConfigs ( EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700196
197 public static native boolean eglGetConfigs(
198 EGLDisplay dpy,
199 EGLConfig[] configs,
200 int configsOffset,
201 int config_size,
202 int[] num_config,
203 int num_configOffset
204 );
205
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700206 // C function EGLBoolean eglChooseConfig ( EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700207
208 public static native boolean eglChooseConfig(
209 EGLDisplay dpy,
210 int[] attrib_list,
211 int attrib_listOffset,
212 EGLConfig[] configs,
213 int configsOffset,
214 int config_size,
215 int[] num_config,
216 int num_configOffset
217 );
218
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700219 // C function EGLBoolean eglGetConfigAttrib ( EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700220
221 public static native boolean eglGetConfigAttrib(
222 EGLDisplay dpy,
223 EGLConfig config,
224 int attribute,
225 int[] value,
226 int offset
227 );
228
229 // C function EGLSurface eglCreateWindowSurface ( EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list )
230
231 private static native EGLSurface _eglCreateWindowSurface(
232 EGLDisplay dpy,
233 EGLConfig config,
234 Object win,
235 int[] attrib_list,
236 int offset
237 );
238
239 private static native EGLSurface _eglCreateWindowSurfaceTexture(
240 EGLDisplay dpy,
241 EGLConfig config,
242 Object win,
243 int[] attrib_list,
244 int offset
245 );
246
247 public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy,
248 EGLConfig config,
249 Object win,
250 int[] attrib_list,
251 int offset
252 ){
253 Surface sur = null;
254 if (win instanceof SurfaceView) {
255 SurfaceView surfaceView = (SurfaceView)win;
256 sur = surfaceView.getHolder().getSurface();
257 } else if (win instanceof SurfaceHolder) {
258 SurfaceHolder holder = (SurfaceHolder)win;
259 sur = holder.getSurface();
Jeff Brown1296c632012-08-08 01:47:28 -0700260 } else if (win instanceof Surface) {
261 sur = (Surface) win;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700262 }
263
264 EGLSurface surface;
265 if (sur != null) {
266 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
267 } else if (win instanceof SurfaceTexture) {
268 surface = _eglCreateWindowSurfaceTexture(dpy, config,
269 win, attrib_list, offset);
270 } else {
271 throw new java.lang.UnsupportedOperationException(
272 "eglCreateWindowSurface() can only be called with an instance of " +
Jeff Brown1296c632012-08-08 01:47:28 -0700273 "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700274 "this will be fixed later.");
275 }
276
277 return surface;
278 }
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700279 // C function EGLSurface eglCreatePbufferSurface ( EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700280
281 public static native EGLSurface eglCreatePbufferSurface(
282 EGLDisplay dpy,
283 EGLConfig config,
284 int[] attrib_list,
285 int offset
286 );
287
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700288 // C function EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700289
Romain Guy1f071dd2016-11-30 10:20:29 -0800290 @Deprecated
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700291 public static native EGLSurface eglCreatePixmapSurface(
292 EGLDisplay dpy,
293 EGLConfig config,
294 int pixmap,
295 int[] attrib_list,
296 int offset
297 );
298
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700299 // C function EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700300
301 public static native boolean eglDestroySurface(
302 EGLDisplay dpy,
303 EGLSurface surface
304 );
305
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700306 // C function EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700307
308 public static native boolean eglQuerySurface(
309 EGLDisplay dpy,
310 EGLSurface surface,
311 int attribute,
312 int[] value,
313 int offset
314 );
315
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700316 // C function EGLBoolean eglBindAPI ( EGLenum api )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700317
318 public static native boolean eglBindAPI(
319 int api
320 );
321
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700322 // C function EGLenum eglQueryAPI ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700323
324 public static native int eglQueryAPI(
325 );
326
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700327 // C function EGLBoolean eglWaitClient ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700328
329 public static native boolean eglWaitClient(
330 );
331
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700332 // C function EGLBoolean eglReleaseThread ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700333
334 public static native boolean eglReleaseThread(
335 );
336
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700337 // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list )
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000338 // TODO Deprecate the below method
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700339 public static native EGLSurface eglCreatePbufferFromClientBuffer(
340 EGLDisplay dpy,
341 int buftype,
342 int buffer,
343 EGLConfig config,
344 int[] attrib_list,
345 int offset
346 );
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000347 // TODO Unhide the below method
348 /**
349 * {@hide}
350 */
351 public static native EGLSurface eglCreatePbufferFromClientBuffer(
352 EGLDisplay dpy,
353 int buftype,
354 long buffer,
355 EGLConfig config,
356 int[] attrib_list,
357 int offset
358 );
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700359
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700360 // C function EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700361
362 public static native boolean eglSurfaceAttrib(
363 EGLDisplay dpy,
364 EGLSurface surface,
365 int attribute,
366 int value
367 );
368
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700369 // C function EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700370
371 public static native boolean eglBindTexImage(
372 EGLDisplay dpy,
373 EGLSurface surface,
374 int buffer
375 );
376
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700377 // C function EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700378
379 public static native boolean eglReleaseTexImage(
380 EGLDisplay dpy,
381 EGLSurface surface,
382 int buffer
383 );
384
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700385 // C function EGLBoolean eglSwapInterval ( EGLDisplay dpy, EGLint interval )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700386
387 public static native boolean eglSwapInterval(
388 EGLDisplay dpy,
389 int interval
390 );
391
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700392 // C function EGLContext eglCreateContext ( EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700393
394 public static native EGLContext eglCreateContext(
395 EGLDisplay dpy,
396 EGLConfig config,
397 EGLContext share_context,
398 int[] attrib_list,
399 int offset
400 );
401
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700402 // C function EGLBoolean eglDestroyContext ( EGLDisplay dpy, EGLContext ctx )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700403
404 public static native boolean eglDestroyContext(
405 EGLDisplay dpy,
406 EGLContext ctx
407 );
408
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700409 // C function EGLBoolean eglMakeCurrent ( EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700410
411 public static native boolean eglMakeCurrent(
412 EGLDisplay dpy,
413 EGLSurface draw,
414 EGLSurface read,
415 EGLContext ctx
416 );
417
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700418 // C function EGLContext eglGetCurrentContext ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700419
420 public static native EGLContext eglGetCurrentContext(
421 );
422
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700423 // C function EGLSurface eglGetCurrentSurface ( EGLint readdraw )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700424
425 public static native EGLSurface eglGetCurrentSurface(
426 int readdraw
427 );
428
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700429 // C function EGLDisplay eglGetCurrentDisplay ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700430
431 public static native EGLDisplay eglGetCurrentDisplay(
432 );
433
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700434 // C function EGLBoolean eglQueryContext ( EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700435
436 public static native boolean eglQueryContext(
437 EGLDisplay dpy,
438 EGLContext ctx,
439 int attribute,
440 int[] value,
441 int offset
442 );
443
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700444 // C function EGLBoolean eglWaitGL ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700445
446 public static native boolean eglWaitGL(
447 );
448
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700449 // C function EGLBoolean eglWaitNative ( EGLint engine )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700450
451 public static native boolean eglWaitNative(
452 int engine
453 );
454
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700455 // C function EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700456
457 public static native boolean eglSwapBuffers(
458 EGLDisplay dpy,
459 EGLSurface surface
460 );
461
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700462 // C function EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700463
464 public static native boolean eglCopyBuffers(
465 EGLDisplay dpy,
466 EGLSurface surface,
467 int target
468 );
469
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700470}