blob: 90b46fd5901a56d2d5ff2c1f3f2789a71863f98b [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 Satayev2ebb31c2020-01-08 12:24:36 +000021import android.compat.annotation.UnsupportedAppUsage;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070022import android.graphics.SurfaceTexture;
23import android.view.Surface;
Austin Wanga63a2c02019-12-19 06:38:19 +000024import android.view.SurfaceHolder;
Artur Satayev2ebb31c2020-01-08 12:24:36 +000025import android.view.SurfaceView;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070026
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070027/**
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -070028 * EGL 1.4
29 *
30 */
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -070031public class EGL14 {
32
33public static final int EGL_DEFAULT_DISPLAY = 0;
34public static EGLContext EGL_NO_CONTEXT = null;
35public static EGLDisplay EGL_NO_DISPLAY = null;
36public static EGLSurface EGL_NO_SURFACE = null;
37
38public static final int EGL_FALSE = 0;
39public static final int EGL_TRUE = 1;
40public static final int EGL_SUCCESS = 0x3000;
41public static final int EGL_NOT_INITIALIZED = 0x3001;
42public static final int EGL_BAD_ACCESS = 0x3002;
43public static final int EGL_BAD_ALLOC = 0x3003;
44public static final int EGL_BAD_ATTRIBUTE = 0x3004;
45public static final int EGL_BAD_CONFIG = 0x3005;
46public static final int EGL_BAD_CONTEXT = 0x3006;
47public static final int EGL_BAD_CURRENT_SURFACE = 0x3007;
48public static final int EGL_BAD_DISPLAY = 0x3008;
49public static final int EGL_BAD_MATCH = 0x3009;
50public static final int EGL_BAD_NATIVE_PIXMAP = 0x300A;
51public static final int EGL_BAD_NATIVE_WINDOW = 0x300B;
52public static final int EGL_BAD_PARAMETER = 0x300C;
53public static final int EGL_BAD_SURFACE = 0x300D;
54public static final int EGL_CONTEXT_LOST = 0x300E;
55public static final int EGL_BUFFER_SIZE = 0x3020;
56public static final int EGL_ALPHA_SIZE = 0x3021;
57public static final int EGL_BLUE_SIZE = 0x3022;
58public static final int EGL_GREEN_SIZE = 0x3023;
59public static final int EGL_RED_SIZE = 0x3024;
60public static final int EGL_DEPTH_SIZE = 0x3025;
61public static final int EGL_STENCIL_SIZE = 0x3026;
62public static final int EGL_CONFIG_CAVEAT = 0x3027;
63public static final int EGL_CONFIG_ID = 0x3028;
64public static final int EGL_LEVEL = 0x3029;
65public static final int EGL_MAX_PBUFFER_HEIGHT = 0x302A;
66public static final int EGL_MAX_PBUFFER_PIXELS = 0x302B;
67public static final int EGL_MAX_PBUFFER_WIDTH = 0x302C;
68public static final int EGL_NATIVE_RENDERABLE = 0x302D;
69public static final int EGL_NATIVE_VISUAL_ID = 0x302E;
70public static final int EGL_NATIVE_VISUAL_TYPE = 0x302F;
71public static final int EGL_SAMPLES = 0x3031;
72public static final int EGL_SAMPLE_BUFFERS = 0x3032;
73public static final int EGL_SURFACE_TYPE = 0x3033;
74public static final int EGL_TRANSPARENT_TYPE = 0x3034;
75public static final int EGL_TRANSPARENT_BLUE_VALUE = 0x3035;
76public static final int EGL_TRANSPARENT_GREEN_VALUE = 0x3036;
77public static final int EGL_TRANSPARENT_RED_VALUE = 0x3037;
78public static final int EGL_NONE = 0x3038;
79public static final int EGL_BIND_TO_TEXTURE_RGB = 0x3039;
80public static final int EGL_BIND_TO_TEXTURE_RGBA = 0x303A;
81public static final int EGL_MIN_SWAP_INTERVAL = 0x303B;
82public static final int EGL_MAX_SWAP_INTERVAL = 0x303C;
83public static final int EGL_LUMINANCE_SIZE = 0x303D;
84public static final int EGL_ALPHA_MASK_SIZE = 0x303E;
85public static final int EGL_COLOR_BUFFER_TYPE = 0x303F;
86public static final int EGL_RENDERABLE_TYPE = 0x3040;
87public static final int EGL_MATCH_NATIVE_PIXMAP = 0x3041;
88public static final int EGL_CONFORMANT = 0x3042;
89public static final int EGL_SLOW_CONFIG = 0x3050;
90public static final int EGL_NON_CONFORMANT_CONFIG = 0x3051;
91public static final int EGL_TRANSPARENT_RGB = 0x3052;
92public static final int EGL_RGB_BUFFER = 0x308E;
93public static final int EGL_LUMINANCE_BUFFER = 0x308F;
94public static final int EGL_NO_TEXTURE = 0x305C;
95public static final int EGL_TEXTURE_RGB = 0x305D;
96public static final int EGL_TEXTURE_RGBA = 0x305E;
97public static final int EGL_TEXTURE_2D = 0x305F;
98public static final int EGL_PBUFFER_BIT = 0x0001;
99public static final int EGL_PIXMAP_BIT = 0x0002;
100public static final int EGL_WINDOW_BIT = 0x0004;
101public static final int EGL_VG_COLORSPACE_LINEAR_BIT = 0x0020;
102public static final int EGL_VG_ALPHA_FORMAT_PRE_BIT = 0x0040;
103public static final int EGL_MULTISAMPLE_RESOLVE_BOX_BIT = 0x0200;
104public static final int EGL_SWAP_BEHAVIOR_PRESERVED_BIT = 0x0400;
105public static final int EGL_OPENGL_ES_BIT = 0x0001;
106public static final int EGL_OPENVG_BIT = 0x0002;
107public static final int EGL_OPENGL_ES2_BIT = 0x0004;
108public static final int EGL_OPENGL_BIT = 0x0008;
109public static final int EGL_VENDOR = 0x3053;
110public static final int EGL_VERSION = 0x3054;
111public static final int EGL_EXTENSIONS = 0x3055;
112public static final int EGL_CLIENT_APIS = 0x308D;
113public static final int EGL_HEIGHT = 0x3056;
114public static final int EGL_WIDTH = 0x3057;
115public static final int EGL_LARGEST_PBUFFER = 0x3058;
116public static final int EGL_TEXTURE_FORMAT = 0x3080;
117public static final int EGL_TEXTURE_TARGET = 0x3081;
118public static final int EGL_MIPMAP_TEXTURE = 0x3082;
119public static final int EGL_MIPMAP_LEVEL = 0x3083;
120public static final int EGL_RENDER_BUFFER = 0x3086;
121public static final int EGL_VG_COLORSPACE = 0x3087;
122public static final int EGL_VG_ALPHA_FORMAT = 0x3088;
123public static final int EGL_HORIZONTAL_RESOLUTION = 0x3090;
124public static final int EGL_VERTICAL_RESOLUTION = 0x3091;
125public static final int EGL_PIXEL_ASPECT_RATIO = 0x3092;
126public static final int EGL_SWAP_BEHAVIOR = 0x3093;
127public static final int EGL_MULTISAMPLE_RESOLVE = 0x3099;
128public static final int EGL_BACK_BUFFER = 0x3084;
129public static final int EGL_SINGLE_BUFFER = 0x3085;
130public static final int EGL_VG_COLORSPACE_sRGB = 0x3089;
131public static final int EGL_VG_COLORSPACE_LINEAR = 0x308A;
132public static final int EGL_VG_ALPHA_FORMAT_NONPRE = 0x308B;
133public static final int EGL_VG_ALPHA_FORMAT_PRE = 0x308C;
134public static final int EGL_DISPLAY_SCALING = 10000;
135public static final int EGL_BUFFER_PRESERVED = 0x3094;
136public static final int EGL_BUFFER_DESTROYED = 0x3095;
137public static final int EGL_OPENVG_IMAGE = 0x3096;
138public static final int EGL_CONTEXT_CLIENT_TYPE = 0x3097;
139public static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
140public static final int EGL_MULTISAMPLE_RESOLVE_DEFAULT = 0x309A;
141public static final int EGL_MULTISAMPLE_RESOLVE_BOX = 0x309B;
142public static final int EGL_OPENGL_ES_API = 0x30A0;
143public static final int EGL_OPENVG_API = 0x30A1;
144public static final int EGL_OPENGL_API = 0x30A2;
145public static final int EGL_DRAW = 0x3059;
146public static final int EGL_READ = 0x305A;
147public static final int EGL_CORE_NATIVE_ENGINE = 0x305B;
148
149 native private static void _nativeClassInit();
150 static {
151 _nativeClassInit();
152 }
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700153 // C function EGLint eglGetError ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700154
155 public static native int eglGetError(
156 );
157
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700158 // C function EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700159
160 public static native EGLDisplay eglGetDisplay(
161 int display_id
162 );
Ashok Bhat64d38d92014-02-26 10:00:48 +0000163
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000164 /**
165 * {@hide}
166 */
Mathew Inwood6e80c542018-08-09 17:46:43 +0100167 @UnsupportedAppUsage
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000168 public static native EGLDisplay eglGetDisplay(
169 long display_id
170 );
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700171
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700172 // C function EGLBoolean eglInitialize ( EGLDisplay dpy, EGLint *major, EGLint *minor )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700173
174 public static native boolean eglInitialize(
175 EGLDisplay dpy,
176 int[] major,
177 int majorOffset,
178 int[] minor,
179 int minorOffset
180 );
181
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700182 // C function EGLBoolean eglTerminate ( EGLDisplay dpy )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700183
184 public static native boolean eglTerminate(
185 EGLDisplay dpy
186 );
187
188 // C function const char * eglQueryString ( EGLDisplay dpy, EGLint name )
189
190 public static native String eglQueryString(
191 EGLDisplay dpy,
192 int name
193 );
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700194 // C function EGLBoolean eglGetConfigs ( EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700195
196 public static native boolean eglGetConfigs(
197 EGLDisplay dpy,
198 EGLConfig[] configs,
199 int configsOffset,
200 int config_size,
201 int[] num_config,
202 int num_configOffset
203 );
204
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700205 // 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 -0700206
207 public static native boolean eglChooseConfig(
208 EGLDisplay dpy,
209 int[] attrib_list,
210 int attrib_listOffset,
211 EGLConfig[] configs,
212 int configsOffset,
213 int config_size,
214 int[] num_config,
215 int num_configOffset
216 );
217
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700218 // C function EGLBoolean eglGetConfigAttrib ( EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700219
220 public static native boolean eglGetConfigAttrib(
221 EGLDisplay dpy,
222 EGLConfig config,
223 int attribute,
224 int[] value,
225 int offset
226 );
227
228 // C function EGLSurface eglCreateWindowSurface ( EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list )
229
230 private static native EGLSurface _eglCreateWindowSurface(
231 EGLDisplay dpy,
232 EGLConfig config,
233 Object win,
234 int[] attrib_list,
235 int offset
236 );
237
238 private static native EGLSurface _eglCreateWindowSurfaceTexture(
239 EGLDisplay dpy,
240 EGLConfig config,
241 Object win,
242 int[] attrib_list,
243 int offset
244 );
245
246 public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy,
247 EGLConfig config,
248 Object win,
249 int[] attrib_list,
250 int offset
251 ){
252 Surface sur = null;
253 if (win instanceof SurfaceView) {
254 SurfaceView surfaceView = (SurfaceView)win;
255 sur = surfaceView.getHolder().getSurface();
256 } else if (win instanceof SurfaceHolder) {
257 SurfaceHolder holder = (SurfaceHolder)win;
258 sur = holder.getSurface();
Jeff Brown1296c632012-08-08 01:47:28 -0700259 } else if (win instanceof Surface) {
260 sur = (Surface) win;
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700261 }
262
263 EGLSurface surface;
264 if (sur != null) {
265 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
266 } else if (win instanceof SurfaceTexture) {
267 surface = _eglCreateWindowSurfaceTexture(dpy, config,
268 win, attrib_list, offset);
269 } else {
270 throw new java.lang.UnsupportedOperationException(
271 "eglCreateWindowSurface() can only be called with an instance of " +
Jeff Brown1296c632012-08-08 01:47:28 -0700272 "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700273 "this will be fixed later.");
274 }
275
276 return surface;
277 }
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700278 // C function EGLSurface eglCreatePbufferSurface ( EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700279
280 public static native EGLSurface eglCreatePbufferSurface(
281 EGLDisplay dpy,
282 EGLConfig config,
283 int[] attrib_list,
284 int offset
285 );
286
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700287 // C function EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700288
Romain Guy1f071dd2016-11-30 10:20:29 -0800289 @Deprecated
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700290 public static native EGLSurface eglCreatePixmapSurface(
291 EGLDisplay dpy,
292 EGLConfig config,
293 int pixmap,
294 int[] attrib_list,
295 int offset
296 );
297
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700298 // C function EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700299
300 public static native boolean eglDestroySurface(
301 EGLDisplay dpy,
302 EGLSurface surface
303 );
304
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700305 // C function EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700306
307 public static native boolean eglQuerySurface(
308 EGLDisplay dpy,
309 EGLSurface surface,
310 int attribute,
311 int[] value,
312 int offset
313 );
314
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700315 // C function EGLBoolean eglBindAPI ( EGLenum api )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700316
317 public static native boolean eglBindAPI(
318 int api
319 );
320
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700321 // C function EGLenum eglQueryAPI ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700322
323 public static native int eglQueryAPI(
324 );
325
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700326 // C function EGLBoolean eglWaitClient ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700327
328 public static native boolean eglWaitClient(
329 );
330
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700331 // C function EGLBoolean eglReleaseThread ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700332
333 public static native boolean eglReleaseThread(
334 );
335
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700336 // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list )
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000337 // TODO Deprecate the below method
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700338 public static native EGLSurface eglCreatePbufferFromClientBuffer(
339 EGLDisplay dpy,
340 int buftype,
341 int buffer,
342 EGLConfig config,
343 int[] attrib_list,
344 int offset
345 );
Ashok Bhat84bbeb92014-02-24 10:06:55 +0000346 // TODO Unhide the below method
347 /**
348 * {@hide}
349 */
350 public static native EGLSurface eglCreatePbufferFromClientBuffer(
351 EGLDisplay dpy,
352 int buftype,
353 long buffer,
354 EGLConfig config,
355 int[] attrib_list,
356 int offset
357 );
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700358
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700359 // C function EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700360
361 public static native boolean eglSurfaceAttrib(
362 EGLDisplay dpy,
363 EGLSurface surface,
364 int attribute,
365 int value
366 );
367
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700368 // C function EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700369
370 public static native boolean eglBindTexImage(
371 EGLDisplay dpy,
372 EGLSurface surface,
373 int buffer
374 );
375
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700376 // C function EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700377
378 public static native boolean eglReleaseTexImage(
379 EGLDisplay dpy,
380 EGLSurface surface,
381 int buffer
382 );
383
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700384 // C function EGLBoolean eglSwapInterval ( EGLDisplay dpy, EGLint interval )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700385
386 public static native boolean eglSwapInterval(
387 EGLDisplay dpy,
388 int interval
389 );
390
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700391 // C function EGLContext eglCreateContext ( EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700392
393 public static native EGLContext eglCreateContext(
394 EGLDisplay dpy,
395 EGLConfig config,
396 EGLContext share_context,
397 int[] attrib_list,
398 int offset
399 );
400
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700401 // C function EGLBoolean eglDestroyContext ( EGLDisplay dpy, EGLContext ctx )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700402
403 public static native boolean eglDestroyContext(
404 EGLDisplay dpy,
405 EGLContext ctx
406 );
407
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700408 // C function EGLBoolean eglMakeCurrent ( EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700409
410 public static native boolean eglMakeCurrent(
411 EGLDisplay dpy,
412 EGLSurface draw,
413 EGLSurface read,
414 EGLContext ctx
415 );
416
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700417 // C function EGLContext eglGetCurrentContext ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700418
419 public static native EGLContext eglGetCurrentContext(
420 );
421
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700422 // C function EGLSurface eglGetCurrentSurface ( EGLint readdraw )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700423
424 public static native EGLSurface eglGetCurrentSurface(
425 int readdraw
426 );
427
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700428 // C function EGLDisplay eglGetCurrentDisplay ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700429
430 public static native EGLDisplay eglGetCurrentDisplay(
431 );
432
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700433 // C function EGLBoolean eglQueryContext ( EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700434
435 public static native boolean eglQueryContext(
436 EGLDisplay dpy,
437 EGLContext ctx,
438 int attribute,
439 int[] value,
440 int offset
441 );
442
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700443 // C function EGLBoolean eglWaitGL ( void )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700444
445 public static native boolean eglWaitGL(
446 );
447
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700448 // C function EGLBoolean eglWaitNative ( EGLint engine )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700449
450 public static native boolean eglWaitNative(
451 int engine
452 );
453
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700454 // C function EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700455
456 public static native boolean eglSwapBuffers(
457 EGLDisplay dpy,
458 EGLSurface surface
459 );
460
Thomas Tafertshofer9b18b512012-07-12 15:58:07 -0700461 // C function EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700462
463 public static native boolean eglCopyBuffers(
464 EGLDisplay dpy,
465 EGLSurface surface,
466 int target
467 );
468
Thomas Tafertshofer6b1e8382012-07-03 13:37:35 -0700469}