234 lines
9.4 KiB
C
234 lines
9.4 KiB
C
/*
|
|
* Mr. 4th Dimention - Allen Webster
|
|
*
|
|
* 10.11.2017
|
|
*
|
|
* OpenGL defines for 4coder
|
|
*
|
|
*/
|
|
|
|
// TOP
|
|
|
|
#if !defined(FRED_OPENGL_DEFINES_H)
|
|
#define FRED_OPENGL_DEFINES_H
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#define GL_TEXTURE_MAX_LEVEL 0x813D
|
|
|
|
#define GL_MULTISAMPLE 0x809D
|
|
#define GL_CLAMP_TO_EDGE 0x812F
|
|
#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
|
|
#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
|
|
#define GL_TEXTURE0 0x84C0
|
|
#define GL_TEXTURE1 0x84C1
|
|
#define GL_TEXTURE2 0x84C2
|
|
#define GL_TEXTURE3 0x84C3
|
|
#define GL_TEXTURE4 0x84C4
|
|
#define GL_TEXTURE5 0x84C5
|
|
#define GL_TEXTURE6 0x84C6
|
|
#define GL_TEXTURE7 0x84C7
|
|
#define GL_TEXTURE8 0x84C8
|
|
#define GL_TEXTURE9 0x84C9
|
|
#define GL_TEXTURE10 0x84CA
|
|
#define GL_TEXTURE11 0x84CB
|
|
#define GL_TEXTURE12 0x84CC
|
|
#define GL_TEXTURE13 0x84CD
|
|
#define GL_TEXTURE14 0x84CE
|
|
#define GL_TEXTURE15 0x84CF
|
|
#define GL_TEXTURE16 0x84D0
|
|
#define GL_TEXTURE17 0x84D1
|
|
#define GL_TEXTURE18 0x84D2
|
|
#define GL_TEXTURE19 0x84D3
|
|
#define GL_TEXTURE20 0x84D4
|
|
#define GL_TEXTURE21 0x84D5
|
|
#define GL_TEXTURE22 0x84D6
|
|
#define GL_TEXTURE23 0x84D7
|
|
#define GL_TEXTURE24 0x84D8
|
|
#define GL_TEXTURE25 0x84D9
|
|
#define GL_TEXTURE26 0x84DA
|
|
#define GL_TEXTURE27 0x84DB
|
|
#define GL_TEXTURE28 0x84DC
|
|
#define GL_TEXTURE29 0x84DD
|
|
#define GL_TEXTURE30 0x84DE
|
|
#define GL_TEXTURE31 0x84DF
|
|
#define GL_ARRAY_BUFFER 0x8892
|
|
#define GL_STREAM_DRAW 0x88E0
|
|
#define GL_STREAM_READ 0x88E1
|
|
#define GL_STREAM_COPY 0x88E2
|
|
#define GL_STATIC_DRAW 0x88E4
|
|
#define GL_STATIC_READ 0x88E5
|
|
#define GL_STATIC_COPY 0x88E6
|
|
#define GL_DYNAMIC_DRAW 0x88E8
|
|
#define GL_DYNAMIC_READ 0x88E9
|
|
#define GL_DYNAMIC_COPY 0x88EA
|
|
#define GL_FRAGMENT_SHADER 0x8B30
|
|
#define GL_VERTEX_SHADER 0x8B31
|
|
#define GL_DELETE_STATUS 0x8B80
|
|
#define GL_COMPILE_STATUS 0x8B81
|
|
#define GL_LINK_STATUS 0x8B82
|
|
#define GL_VALIDATE_STATUS 0x8B83
|
|
#define GL_INFO_LOG_LENGTH 0x8B84
|
|
#define GL_ATTACHED_SHADERS 0x8B85
|
|
#define GL_ACTIVE_UNIFORMS 0x8B86
|
|
#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
|
#define GL_SHADER_SOURCE_LENGTH 0x8B88
|
|
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
|
#define GL_SRGB 0x8C40
|
|
#define GL_SRGB8 0x8C41
|
|
#define GL_SRGB_ALPHA 0x8C42
|
|
#define GL_SRGB8_ALPHA8 0x8C43
|
|
#define GL_READ_FRAMEBUFFER 0x8CA8
|
|
#define GL_DRAW_FRAMEBUFFER 0x8CA9
|
|
#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
|
|
#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
|
#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
|
|
#define GL_COLOR_ATTACHMENT0 0x8CE0
|
|
#define GL_COLOR_ATTACHMENT1 0x8CE1
|
|
#define GL_COLOR_ATTACHMENT2 0x8CE2
|
|
#define GL_COLOR_ATTACHMENT3 0x8CE3
|
|
#define GL_COLOR_ATTACHMENT4 0x8CE4
|
|
#define GL_COLOR_ATTACHMENT5 0x8CE5
|
|
#define GL_COLOR_ATTACHMENT6 0x8CE6
|
|
#define GL_COLOR_ATTACHMENT7 0x8CE7
|
|
#define GL_COLOR_ATTACHMENT8 0x8CE8
|
|
#define GL_COLOR_ATTACHMENT9 0x8CE9
|
|
#define GL_COLOR_ATTACHMENT10 0x8CEA
|
|
#define GL_COLOR_ATTACHMENT11 0x8CEB
|
|
#define GL_COLOR_ATTACHMENT12 0x8CEC
|
|
#define GL_COLOR_ATTACHMENT13 0x8CED
|
|
#define GL_COLOR_ATTACHMENT14 0x8CEE
|
|
#define GL_COLOR_ATTACHMENT15 0x8CEF
|
|
#define GL_COLOR_ATTACHMENT16 0x8CF0
|
|
#define GL_COLOR_ATTACHMENT17 0x8CF1
|
|
#define GL_COLOR_ATTACHMENT18 0x8CF2
|
|
#define GL_COLOR_ATTACHMENT19 0x8CF3
|
|
#define GL_COLOR_ATTACHMENT20 0x8CF4
|
|
#define GL_COLOR_ATTACHMENT21 0x8CF5
|
|
#define GL_COLOR_ATTACHMENT22 0x8CF6
|
|
#define GL_COLOR_ATTACHMENT23 0x8CF7
|
|
#define GL_COLOR_ATTACHMENT24 0x8CF8
|
|
#define GL_COLOR_ATTACHMENT25 0x8CF9
|
|
#define GL_COLOR_ATTACHMENT26 0x8CFA
|
|
#define GL_COLOR_ATTACHMENT27 0x8CFB
|
|
#define GL_COLOR_ATTACHMENT28 0x8CFC
|
|
#define GL_COLOR_ATTACHMENT29 0x8CFD
|
|
#define GL_COLOR_ATTACHMENT30 0x8CFE
|
|
#define GL_COLOR_ATTACHMENT31 0x8CFF
|
|
#define GL_DEPTH_ATTACHMENT 0x8D00
|
|
#define GL_STENCIL_ATTACHMENT 0x8D20
|
|
#define GL_FRAMEBUFFER 0x8D40
|
|
#define GL_FRAMEBUFFER_SRGB 0x8DB9
|
|
#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
|
|
#define GL_DEBUG_SEVERITY_HIGH 0x9146
|
|
#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
|
|
#define GL_DEBUG_SEVERITY_LOW 0x9148
|
|
|
|
#define GL_TEXTURE_3D 0x806F
|
|
#define GL_TEXTURE_2D_ARRAY 0x8C1A
|
|
|
|
////////////////////////////////
|
|
|
|
#define GL_R8 0x8229
|
|
#define GL_R16 0x822A
|
|
#define GL_RG8 0x822B
|
|
#define GL_RG16 0x822C
|
|
#define GL_R16F 0x822D
|
|
#define GL_R32F 0x822E
|
|
#define GL_RG16F 0x822F
|
|
#define GL_RG32F 0x8230
|
|
#define GL_R8I 0x8231
|
|
#define GL_R8UI 0x8232
|
|
#define GL_R16I 0x8233
|
|
#define GL_R16UI 0x8234
|
|
#define GL_R32I 0x8235
|
|
#define GL_R32UI 0x8236
|
|
#define GL_RG8I 0x8237
|
|
#define GL_RG8UI 0x8238
|
|
#define GL_RG16I 0x8239
|
|
#define GL_RG16UI 0x823A
|
|
#define GL_RG32I 0x823B
|
|
#define GL_RG32UI 0x823C
|
|
|
|
#define GL_RGBA32UI 0x8D70
|
|
#define GL_RGB32UI 0x8D71
|
|
#define GL_RGBA16UI 0x8D76
|
|
#define GL_RGB16UI 0x8D77
|
|
#define GL_RGBA8UI 0x8D7C
|
|
#define GL_RGB8UI 0x8D7D
|
|
#define GL_RGBA32I 0x8D82
|
|
#define GL_RGB32I 0x8D83
|
|
#define GL_RGBA16I 0x8D88
|
|
#define GL_RGB16I 0x8D89
|
|
#define GL_RGBA8I 0x8D8E
|
|
#define GL_RGB8I 0x8D8F
|
|
|
|
#define GL_RGBA32F 0x8814
|
|
#define GL_RGB32F 0x8815
|
|
#define GL_RGBA16F 0x881A
|
|
#define GL_RGB16F 0x881B
|
|
|
|
#define GL_R8_SNORM 0x8F94
|
|
#define GL_RG8_SNORM 0x8F95
|
|
#define GL_RGB8_SNORM 0x8F96
|
|
#define GL_RGBA8_SNORM 0x8F97
|
|
#define GL_R16_SNORM 0x8F98
|
|
#define GL_RG16_SNORM 0x8F99
|
|
#define GL_RGB16_SNORM 0x8F9A
|
|
#define GL_RGBA16_SNORM 0x8F9B
|
|
|
|
#define GL_DEPTH_COMPONENT16 0x81A5
|
|
#define GL_DEPTH_COMPONENT24 0x81A6
|
|
#define GL_DEPTH_COMPONENT32 0x81A7
|
|
#define GL_DEPTH_COMPONENT32F 0x8CAC
|
|
#define GL_DEPTH24_STENCIL8 0x88F0
|
|
|
|
#define GL_DEPTH_STENCIL 0x84F9
|
|
#define GL_UNSIGNED_INT_24_8 0x84FA
|
|
|
|
#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
|
|
|
|
#define GL_DEBUG_OUTPUT 0x92E0
|
|
|
|
////////////////////////////////
|
|
|
|
#define GL_FRAMEBUFFER_UNDEFINED 0x8219
|
|
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
|
|
#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
|
|
|
|
////////////////////////////////
|
|
|
|
typedef char GLchar;
|
|
typedef short GLshort;
|
|
typedef signed char GLbyte;
|
|
typedef unsigned short GLushort;
|
|
typedef ptrdiff_t GLsizeiptr;
|
|
typedef ptrdiff_t GLintptr;
|
|
|
|
typedef void GL_Debug_Function(GLenum src,
|
|
GLenum type,
|
|
GLuint id,
|
|
GLenum severity,
|
|
GLsizei length,
|
|
GLchar *message,
|
|
void *user_data);
|
|
typedef GL_Debug_Function *GLDEBUGPROC;
|
|
|
|
#define GL_FUNC(N,R,P) typedef R (N##_Function)P; N##_Function *N = 0;
|
|
#include "4ed_opengl_funcs.h"
|
|
|
|
#endif
|
|
|
|
// BOTTOM
|
|
|