1 /* 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 // ---------------------------------------------------------------------------- 26 namespace android { 27 // ---------------------------------------------------------------------------- 28 29 void 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 43 char const * const gl_names[] = { 44 #include "entries.in" 45 NULL 46 }; 47 48 char 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 61