aboutsummaryrefslogtreecommitdiffstats
path: root/gldefs.h
blob: f1bf79f4af8aedfa8a8a234e98674c4199c4c8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
 * SPDX-License-Identifier: MIT
 */
#ifndef GLDEFS_H
#define GLDEFS_H

#include <stdint.h>
#include <stddef.h>

typedef uint8_t GLboolean;
typedef int8_t GLbyte;
typedef uint8_t GLubyte;
typedef char GLchar;
typedef int16_t GLshort;
typedef uint16_t GLushort;
typedef int32_t GLint;
typedef uint32_t GLuint;
typedef int32_t GLfixed;
typedef int64_t GLint64;
typedef uint64_t GLuint64;
typedef int32_t GLsizei;
typedef int32_t GLenum;
typedef ptrdiff_t GLintptr;
typedef ptrdiff_t GLsizeiptr;
typedef struct gl_sync *GLsync;
typedef uint32_t GLbitfield;
typedef uint16_t GLhalf;
typedef float GLfloat;
typedef float GLclampf;
typedef double GLdouble;
typedef double GLclampd;

enum {
	GL_NO_ERROR = 0,
	GL_FALSE = 0,
	GL_TRUE = 1,
	GL_TRIANGLES = 0x0004,
	GL_FRONT_AND_BACK = 0x0408,
	GL_INVALID_ENUM = 0x0500,
	GL_INVALID_VALUE = 0x0501,
	GL_INVALID_OPERATION = 0x0502,
	GL_STACK_OVERFLOW = 0x0503,
	GL_STACK_UNDERFLOW = 0x0504,
	GL_OUT_OF_MEMORY = 0x0505,
	GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506,
	GL_CONTEXT_LOST = 0x0507,
	GL_UNSIGNED_INT = 0x1405,
	GL_FLOAT = 0x1406,
	GL_LINE = 0x1B01,
	GL_COLOR_BUFFER_BIT = 0x4000,
	GL_ARRAY_BUFFER = 0x8892,
	GL_ELEMENT_ARRAY_BUFFER = 0x8893,
	GL_STREAM_DRAW = 0x88e0,
	GL_STATIC_DRAW = 0x88e4,
	GL_DYNAMIC_DRAW = 0x88e8,
	GL_FRAGMENT_SHADER = 0x8b30,
	GL_VERTEX_SHADER = 0x8b31,
	GL_COMPILE_STATUS = 0x8b81,
	GL_LINK_STATUS = 0x8b82,
};

#endif // GLDEFS_H