blob: 224636669e10ef70f47b24fca938ba31936e5e94 [file] [log] [blame]
Mathias Agopiande586972009-05-28 17:39:03 -07001/*
2 ** Copyright 2009, 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#include <ctype.h>
18#include <stdlib.h>
19#include <errno.h>
20
21#include <cutils/log.h>
22
23#include "hooks.h"
24
25// ----------------------------------------------------------------------------
26namespace android {
27// ----------------------------------------------------------------------------
28
29void gl_unimplemented() {
30 LOGE("called unimplemented OpenGL ES API");
31}
32
33
34// ----------------------------------------------------------------------------
35// GL / EGL hooks
36// ----------------------------------------------------------------------------
37
38#undef GL_ENTRY
39#undef EGL_ENTRY
40#define GL_ENTRY(_r, _api, ...) #_api,
41#define EGL_ENTRY(_r, _api, ...) #_api,
42
43char const * const gl_names[] = {
44 #include "GLES_CM/gl_entries.in"
45 #include "GLES_CM/glext_entries.in"
46 NULL
47};
48
49char const * const gl2_names[] = {
50 #include "GLES2/gl2_entries.in"
51 #include "GLES2/gl2ext_entries.in"
52 NULL
53};
54
55char const * const egl_names[] = {
56 #include "egl_entries.in"
57 NULL
58};
59
60#undef GL_ENTRY
61#undef EGL_ENTRY
62
63
64// ----------------------------------------------------------------------------
65}; // namespace android
66// ----------------------------------------------------------------------------
67