1 /* 2 * Copyright (C) 2011 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 #ifndef __GL_BASE_TYPES__H 17 #define __GL_BASE_TYPES__H 18 19 #include <KHR/khrplatform.h> 20 21 #ifndef gl_APIENTRY 22 #define gl_APIENTRY KHRONOS_APIENTRY 23 #endif 24 25 #ifndef gl2_APIENTRY 26 #define gl2_APIENTRY KHRONOS_APIENTRY 27 #endif 28 29 typedef void GLvoid; 30 typedef unsigned int GLenum; 31 typedef unsigned char GLboolean; 32 typedef unsigned int GLbitfield; 33 typedef char GLchar; 34 typedef khronos_int8_t GLbyte; 35 typedef short GLshort; 36 typedef int GLint; 37 typedef int GLsizei; 38 typedef khronos_uint8_t GLubyte; 39 typedef unsigned short GLushort; 40 typedef unsigned int GLuint; 41 typedef khronos_float_t GLfloat; 42 typedef khronos_float_t GLclampf; 43 typedef khronos_int32_t GLfixed; 44 typedef khronos_int32_t GLclampx; 45 typedef khronos_intptr_t GLintptr; 46 typedef khronos_ssize_t GLsizeiptr; 47 typedef char *GLstr; 48 /* JR XXX Treating this as an in handle - is this correct? */ 49 typedef void * GLeglImageOES; 50 51 /* ErrorCode */ 52 #ifndef GL_INVALID_ENUM 53 #define GL_NO_ERROR 0 54 #define GL_INVALID_ENUM 0x0500 55 #define GL_INVALID_VALUE 0x0501 56 #define GL_INVALID_OPERATION 0x0502 57 #define GL_STACK_OVERFLOW 0x0503 58 #define GL_STACK_UNDERFLOW 0x0504 59 #define GL_OUT_OF_MEMORY 0x0505 60 #endif 61 62 #endif 63