blob: d7bdef8bfd557c746402356aceffab47c11a52c3 [file] [log] [blame]
keunyoungb85b2752013-03-08 12:28:03 -08001/*
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
29typedef void GLvoid;
30typedef unsigned int GLenum;
31typedef unsigned char GLboolean;
32typedef unsigned int GLbitfield;
33typedef char GLchar;
34typedef khronos_int8_t GLbyte;
35typedef short GLshort;
36typedef int GLint;
37typedef int GLsizei;
38typedef khronos_uint8_t GLubyte;
39typedef unsigned short GLushort;
40typedef unsigned int GLuint;
41typedef khronos_float_t GLfloat;
42typedef khronos_float_t GLclampf;
43typedef khronos_int32_t GLfixed;
44typedef khronos_int32_t GLclampx;
45typedef khronos_intptr_t GLintptr;
46typedef khronos_ssize_t GLsizeiptr;
47typedef char *GLstr;
48/* JR XXX Treating this as an in handle - is this correct? */
49typedef 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