feat: opengl headers expose new functionality
This commit is contained in:
parent
1c792df5ae
commit
ea3dec1daa
22
include/gl.h
22
include/gl.h
|
@ -362,6 +362,27 @@ __BEGIN_DECLS
|
||||||
#define GL_RGBA12 0x805A
|
#define GL_RGBA12 0x805A
|
||||||
#define GL_RGBA16 0x805B
|
#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 GLbyte char
|
||||||
#define GLshort short
|
#define GLshort short
|
||||||
#define GLint int
|
#define GLint int
|
||||||
|
@ -471,6 +492,7 @@ GLAPI void APIENTRY glClearDepthf(GLfloat depth);
|
||||||
GLAPI void APIENTRY glDepthMask(GLboolean flag);
|
GLAPI void APIENTRY glDepthMask(GLboolean flag);
|
||||||
GLAPI void APIENTRY glDepthFunc(GLenum func);
|
GLAPI void APIENTRY glDepthFunc(GLenum func);
|
||||||
GLAPI void APIENTRY glDepthRange(GLclampf n, GLclampf f);
|
GLAPI void APIENTRY glDepthRange(GLclampf n, GLclampf f);
|
||||||
|
GLAPI void APIENTRY glDepthRangef(GLclampf n, GLclampf f);
|
||||||
|
|
||||||
/* Hints */
|
/* Hints */
|
||||||
/* Currently Supported Capabilities:
|
/* Currently Supported Capabilities:
|
||||||
|
|
|
@ -190,6 +190,21 @@ GLAPI void APIENTRY glCompressedTexImage2DARB(GLenum target,
|
||||||
#define glGenerateMipmap glGenerateMipmapEXT
|
#define glGenerateMipmap glGenerateMipmapEXT
|
||||||
#define glCompressedTexImage2D glCompressedTexImage2DARB
|
#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
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !__GL_GLEXT_H */
|
#endif /* !__GL_GLEXT_H */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user