Mercurial > sdl-ios-xcode
annotate android/testproject/jni/egltypes.h @ 4708:f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
author | Paul Hunkin <paul@bieh.net> |
---|---|
date | Fri, 18 Jun 2010 01:28:39 +1200 |
parents | |
children |
rev | line source |
---|---|
4708
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
1 /* |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
2 * Copyright (C) 2007 The Android Open Source Project |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
3 * |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
4 * Licensed under the Apache License, Version 2.0 (the "License"); |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
5 * you may not use this file except in compliance with the License. |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
6 * You may obtain a copy of the License at |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
7 * |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
8 * http://www.apache.org/licenses/LICENSE-2.0 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
9 * |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
10 * Unless required by applicable law or agreed to in writing, software |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
11 * distributed under the License is distributed on an "AS IS" BASIS, |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
13 * See the License for the specific language governing permissions and |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
14 * limitations under the License. |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
15 */ |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
16 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
17 #ifndef ANDROID_EGL_TYPES_H |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
18 #define ANDROID_EGL_TYPES_H |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
19 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
20 #include <sys/types.h> |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
21 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
22 #ifdef __cplusplus |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
23 extern "C" { |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
24 #endif |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
25 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
26 typedef unsigned int EGLBoolean; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
27 typedef int32_t EGLint; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
28 typedef int EGLenum; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
29 typedef void *EGLDisplay; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
30 typedef void *EGLConfig; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
31 typedef void *EGLSurface; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
32 typedef void *EGLContext; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
33 typedef void *EGLClientBuffer; |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
34 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
35 #define EGL_DEFAULT_DISPLAY ((NativeDisplayType)0) |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
36 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
37 #define EGL_NO_CONTEXT ((EGLContext)0) |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
38 #define EGL_NO_DISPLAY ((EGLDisplay)0) |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
39 #define EGL_NO_SURFACE ((EGLSurface)0) |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
40 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
41 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
42 #ifdef __cplusplus |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
43 } |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
44 #endif |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
45 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
46 |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
47 #endif /* ANDROID_EGL_TYPES_H */ |
f3f65cb6a382
Added egl headers so we can use eglMakeCurrent()
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
48 |