From ea3dec1daa1a3dda589c297bf305c5cfff264fb5 Mon Sep 17 00:00:00 2001 From: Hayden Kowalchuk <819028+mrneo240@users.noreply.github.com> Date: Thu, 5 Mar 2020 15:13:30 -0500 Subject: [PATCH] feat: opengl headers expose new functionality --- include/gl.h | 22 ++++++++++++++++++++++ include/glext.h | 15 +++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/include/gl.h b/include/gl.h index 7679abf..c456c86 100644 --- a/include/gl.h +++ b/include/gl.h @@ -362,6 +362,27 @@ __BEGIN_DECLS #define GL_RGBA12 0x805A #define GL_RGBA16 0x805B +/* Polygons */ +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 +#define GL_CW 0x0900 +#define GL_CCW 0x0901 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_POLYGON_STIPPLE 0x0B42 +#define GL_EDGE_FLAG 0x0B43 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 + #define GLbyte char #define GLshort short #define GLint int @@ -471,6 +492,7 @@ GLAPI void APIENTRY glClearDepthf(GLfloat depth); GLAPI void APIENTRY glDepthMask(GLboolean flag); GLAPI void APIENTRY glDepthFunc(GLenum func); GLAPI void APIENTRY glDepthRange(GLclampf n, GLclampf f); +GLAPI void APIENTRY glDepthRangef(GLclampf n, GLclampf f); /* Hints */ /* Currently Supported Capabilities: diff --git a/include/glext.h b/include/glext.h index af64ff2..15cfa7f 100644 --- a/include/glext.h +++ b/include/glext.h @@ -190,6 +190,21 @@ GLAPI void APIENTRY glCompressedTexImage2DARB(GLenum target, #define glGenerateMipmap glGenerateMipmapEXT #define glCompressedTexImage2D glCompressedTexImage2DARB +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_MAX_TEXTURE_LOD_BIAS_DEFAULT 7 +#define GL_KOS_INTERNAL_DEFAULT_MIPMAP_LOD_BIAS -4 +#endif + +#ifndef GL_EXT_texture_lod_bias +#define GL_EXT_texture_lod_bias 1 +#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD +#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 +#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 +#endif /* GL_EXT_texture_lod_bias */ + __END_DECLS #endif /* !__GL_GLEXT_H */