diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-16 19:36:53 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-16 19:46:05 +0200 |
commit | 046b2b7a38ec66208c96be59c030294b6d10351b (patch) | |
tree | 5858b113d026c47cdae0c47033eaa0bbe9f0d113 /include/mgl/gl_macro.h | |
parent | 5cbff06ff9153f7a7958202a777d98ebeae59393 (diff) |
Add font rendering
Diffstat (limited to 'include/mgl/gl_macro.h')
-rw-r--r-- | include/mgl/gl_macro.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/mgl/gl_macro.h b/include/mgl/gl_macro.h new file mode 100644 index 0000000..a0bb16c --- /dev/null +++ b/include/mgl/gl_macro.h @@ -0,0 +1,56 @@ +#ifndef MGL_GL_MACRO_H +#define MGL_GL_MACRO_H + +/* Copied from GL/glx.h */ +#define GLX_USE_GL 1 +#define GLX_BUFFER_SIZE 2 +#define GLX_LEVEL 3 +#define GLX_RGBA 4 +#define GLX_DOUBLEBUFFER 5 +#define GLX_STEREO 6 +#define GLX_AUX_BUFFERS 7 +#define GLX_RED_SIZE 8 +#define GLX_GREEN_SIZE 9 +#define GLX_BLUE_SIZE 10 +#define GLX_ALPHA_SIZE 11 +#define GLX_DEPTH_SIZE 12 +#define GLX_STENCIL_SIZE 13 +#define GLX_ACCUM_RED_SIZE 14 +#define GLX_ACCUM_GREEN_SIZE 15 +#define GLX_ACCUM_BLUE_SIZE 16 +#define GLX_ACCUM_ALPHA_SIZE 17 + +/* Copied from GL/gl.h */ +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_BLEND 0x0BE2 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_UNSIGNED_BYTE 0x1401 + +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 + +#define GL_ALPHA8 0x803C +#define GL_LUMINANCE8 0x8040 +#define GL_LUMINANCE8_ALPHA8 0x8045 +#define GL_RGB8 0x8051 +#define GL_RGBA8 0x8058 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 + +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_LINEAR 0x2601 + +#define GL_QUADS 0x0007 + +#define GL_PROJECTION 0x1701 + +#endif /* MGL_GL_MACRO_H */ |