2 * Copyright (C) 2011 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __GL_BASE_TYPES__H
17 #define __GL_BASE_TYPES__H
19 #include <KHR/khrplatform.h>
21 #ifndef gles1_APIENTRY
22 #define gles1_APIENTRY KHRONOS_APIENTRY
25 #ifndef gles2_APIENTRY
26 #define gles2_APIENTRY KHRONOS_APIENTRY
30 typedef unsigned int GLenum;
31 typedef unsigned char GLboolean;
32 typedef unsigned int GLbitfield;
34 typedef khronos_int8_t GLbyte;
35 typedef short GLshort;
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;
48 /* JR XXX Treating this as an in handle - is this correct? */
49 typedef void * GLeglImageOES;
52 #ifndef GL_INVALID_ENUM
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