GLUS
glus_define.h
Go to the documentation of this file.
1 /*
2  * GLUS - Modern OpenGL, OpenGL ES and OpenVG Utilities. Copyright (C) since 2010 Norbert Nopper
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GLUS_DEFINE_H_
19 #define GLUS_DEFINE_H_
20 
21 #define GLUS_NO_ERROR 0
22 #define GLUS_OK 0
23 #define GLUS_TRUE 1
24 #define GLUS_FALSE 0
25 
26 #define GLUS_POINTS 0x0000
27 
28 #define GLUS_LINES 0x0001
29 #define GLUS_LINE_LOOP 0x0002
30 #define GLUS_LINE_STRIP 0x0003
31 #define GLUS_LINES_ADJACENCY 0x000A
32 #define GLUS_LINE_STRIP_ADJACENCY 0x000B
33 
34 #define GLUS_TRIANGLES 0x0004
35 #define GLUS_TRIANGLE_STRIP 0x0005
36 #define GLUS_TRIANGLE_FAN 0x0006
37 #define GLUS_TRIANGLES_ADJACENCY 0x000C
38 #define GLUS_TRIANGLE_STRIP_ADJACENCY 0x000D
39 
40 #define GLUS_UNPACK_ALIGNMENT 0x0CF5
41 #define GLUS_PACK_ALIGNMENT 0x0D05
42 
43 #define GLUS_BYTE 0x1400
44 #define GLUS_UNSIGNED_BYTE 0x1401
45 #define GLUS_SHORT 0x1402
46 #define GLUS_UNSIGNED_SHORT 0x1403
47 #define GLUS_INT 0x1404
48 #define GLUS_UNSIGNED_INT 0x1405
49 #define GLUS_FLOAT 0x1406
50 #define GLUS_DOUBLE 0x140A
51 
52 #define GLUS_VERSION 0x1F02
53 #define GLUS_EXTENSIONS 0x1F03
54 
55 #define GLUS_COMPILE_STATUS 0x8B81
56 #define GLUS_LINK_STATUS 0x8B82
57 #define GLUS_VALIDATE_STATUS 0x8B83
58 #define GLUS_INFO_LOG_LENGTH 0x8B84
59 
60 #define GLUS_FRAMEBUFFER 0x8D40
61 
62 #define GLUS_COMPRESSED_R11_EAC 0x9270
63 #define GLUS_COMPRESSED_SIGNED_R11_EAC 0x9271
64 #define GLUS_COMPRESSED_RG11_EAC 0x9272
65 #define GLUS_COMPRESSED_SIGNED_RG11_EAC 0x9273
66 #define GLUS_COMPRESSED_RGB8_ETC2 0x9274
67 #define GLUS_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
68 #define GLUS_COMPRESSED_RGBA8_ETC2_EAC 0x9278
69 
70 #define GLUS_PI 3.1415926535897932384626433832795f
71 
72 #define GLUS_LOG_NOTHING 0
73 #define GLUS_LOG_ERROR 1
74 #define GLUS_LOG_WARNING 2
75 #define GLUS_LOG_INFO 3
76 #define GLUS_LOG_DEBUG 4
77 #define GLUS_LOG_SEVERE 5
78 
79 #define GLUS_VERTICES_FACTOR 4
80 #define GLUS_VERTICES_DIVISOR 4
81 
82 #define GLUS_MAX_STRING 256
83 
84 #endif /* GLUS_DEFINE_H_ */