blob: 70cb325ec63b4c0bef8322344e11f710924a3df6 [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
Lingfeng Yange6556dc2017-01-09 12:04:12 -080021#ifndef gles1_APIENTRY
22#define gles1_APIENTRY KHRONOS_APIENTRY
keunyoungb85b2752013-03-08 12:28:03 -080023#endif
24
Lingfeng Yange6556dc2017-01-09 12:04:12 -080025#ifndef gles2_APIENTRY
26#define gles2_APIENTRY KHRONOS_APIENTRY
keunyoungb85b2752013-03-08 12:28:03 -080027#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;
Lingfeng Yange6556dc2017-01-09 12:04:12 -080050typedef struct __GLsync *GLsync;
51typedef khronos_int64_t GLint64;
52typedef khronos_uint64_t GLuint64;
keunyoungb85b2752013-03-08 12:28:03 -080053
54/* ErrorCode */
55#ifndef GL_INVALID_ENUM
56#define GL_NO_ERROR 0
57#define GL_INVALID_ENUM 0x0500
58#define GL_INVALID_VALUE 0x0501
59#define GL_INVALID_OPERATION 0x0502
60#define GL_STACK_OVERFLOW 0x0503
61#define GL_STACK_UNDERFLOW 0x0504
62#define GL_OUT_OF_MEMORY 0x0505
63#endif
64
65#endif