blob: 72ad6b37b8e25fdb5a444d0d4d0c1c1f0a2ba2c3 [file] [log] [blame]
Mathias Agopian9d17c052009-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[] = {
Mathias Agopian6fc56992009-10-14 02:06:37 -070044 #include "entries.in"
Mathias Agopian9d17c052009-05-28 17:39:03 -070045 NULL
46};
47
48char const * const egl_names[] = {
49 #include "egl_entries.in"
50 NULL
51};
52
53#undef GL_ENTRY
54#undef EGL_ENTRY
55
56
57// ----------------------------------------------------------------------------
58}; // namespace android
59// ----------------------------------------------------------------------------
60