Skip to content

Commit ff7c35e

Browse files
allefantSiegeLord
authored andcommitted
Add missing OpenGL 4.3 functions.
1 parent 6b8f3a4 commit ff7c35e

File tree

3 files changed

+407
-7
lines changed

3 files changed

+407
-7
lines changed

include/allegro5/opengl/GLext/gl_ext_alias.h

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,52 @@
379379
/*ARB_vertex_type_2_10_10_10_rev*/
380380
#endif
381381

382+
#if defined _ALLEGRO_GL_VERSION_4_3
383+
#define glClearBufferData _al_glClearBufferData
384+
#define glClearBufferSubData _al_glClearBufferSubData
385+
#define glDispatchCompute _al_glDispatchCompute
386+
#define glDispatchComputeIndirect _al_glDispatchComputeIndirect
387+
#define glCopyImageSubData _al_glCopyImageSubData
388+
#define glFramebufferParameteri _al_glFramebufferParameteri
389+
#define glGetFramebufferParameteriv _al_glGetFramebufferParameteriv
390+
#define glGetInternalformati64v _al_glGetInternalformati64v
391+
#define glInvalidateTexSubImage _al_glInvalidateTexSubImage
392+
#define glInvalidateTexImage _al_glInvalidateTexImage
393+
#define glInvalidateBufferSubData _al_glInvalidateBufferSubData
394+
#define glInvalidateBufferData _al_glInvalidateBufferData
395+
#define glInvalidateFramebuffer _al_glInvalidateFramebuffer
396+
#define glInvalidateSubFramebuffer _al_glInvalidateSubFramebuffer
397+
#define glMultiDrawArraysIndirect _al_glMultiDrawArraysIndirect
398+
#define glMultiDrawElementsIndirect _al_glMultiDrawElementsIndirect
399+
#define glGetProgramInterfaceiv _al_glGetProgramInterfaceiv
400+
#define glGetProgramResourceIndex _al_glGetProgramResourceIndex
401+
#define glGetProgramResourceName _al_glGetProgramResourceName
402+
#define glGetProgramResourceiv _al_glGetProgramResourceiv
403+
#define glGetProgramResourceLocation _al_glGetProgramResourceLocation
404+
#define glGetProgramResourceLocationIndex _al_glGetProgramResourceLocationIndex
405+
#define glShaderStorageBlockBinding _al_glShaderStorageBlockBinding
406+
#define glTexBufferRange _al_glTexBufferRange
407+
#define glTexStorage2DMultisample _al_glTexStorage2DMultisample
408+
#define glTexStorage3DMultisample _al_glTexStorage3DMultisample
409+
#define glTextureView _al_glTextureView
410+
#define glBindVertexBuffer _al_glBindVertexBuffer
411+
#define glVertexAttribFormat _al_glVertexAttribFormat
412+
#define glVertexAttribIFormat _al_glVertexAttribIFormat
413+
#define glVertexAttribLFormat _al_glVertexAttribLFormat
414+
#define glVertexAttribBinding _al_glVertexAttribBinding
415+
#define glVertexBindingDivisor _al_glVertexBindingDivisor
416+
#define glDebugMessageControl _al_glDebugMessageControl
417+
#define glDebugMessageInsert _al_glDebugMessageInsert
418+
#define glDebugMessageCallback _al_glDebugMessageCallback
419+
#define glGetDebugMessageLog _al_glGetDebugMessageLog
420+
#define glPushDebugGroup _al_glPushDebugGroup
421+
#define glPopDebugGroup _al_glPopDebugGroup
422+
#define glObjectLabel _al_glObjectLabel
423+
#define glGetObjectLabel _al_glGetObjectLabel
424+
#define glObjectPtrLabel _al_glObjectPtrLabel
425+
#define glGetObjectPtrLabel _al_glGetObjectPtrLabel
426+
#endif /* GL_VERSION_4_3 */
427+
382428

383429
/*</Core>*/
384430
/*<ARB>*/

include/allegro5/opengl/GLext/gl_ext_api.h

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,52 @@ AGL_API(void, FramebufferTexture, (GLenum target, GLenum attachment, GLuint text
378378
/* ARB_vertex_type_2_10_10_10_rev */
379379
#endif
380380

381+
#if defined _ALLEGRO_GL_VERSION_4_3
382+
AGL_API(void, ClearBufferData, (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data))
383+
AGL_API(void, ClearBufferSubData, (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data))
384+
AGL_API(void, DispatchCompute, (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z))
385+
AGL_API(void, DispatchComputeIndirect, (GLintptr indirect))
386+
AGL_API(void, CopyImageSubData, (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth))
387+
AGL_API(void, FramebufferParameteri, (GLenum target, GLenum pname, GLint param))
388+
AGL_API(void, GetFramebufferParameteriv, (GLenum target, GLenum pname, GLint *params))
389+
AGL_API(void, GetInternalformati64v, (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params))
390+
AGL_API(void, InvalidateTexSubImage, (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth))
391+
AGL_API(void, InvalidateTexImage, (GLuint texture, GLint level))
392+
AGL_API(void, InvalidateBufferSubData, (GLuint buffer, GLintptr offset, GLsizeiptr length))
393+
AGL_API(void, InvalidateBufferData, (GLuint buffer))
394+
AGL_API(void, InvalidateFramebuffer, (GLenum target, GLsizei numAttachments, const GLenum *attachments))
395+
AGL_API(void, InvalidateSubFramebuffer, (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height))
396+
AGL_API(void, MultiDrawArraysIndirect, (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride))
397+
AGL_API(void, MultiDrawElementsIndirect, (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride))
398+
AGL_API(void, GetProgramInterfaceiv, (GLuint program, GLenum programInterface, GLenum pname, GLint *params))
399+
AGL_API(GLuint, GetProgramResourceIndex, (GLuint program, GLenum programInterface, const GLchar *name))
400+
AGL_API(void, GetProgramResourceName, (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name))
401+
AGL_API(void, GetProgramResourceiv, (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params))
402+
AGL_API(GLint, GetProgramResourceLocation, (GLuint program, GLenum programInterface, const GLchar *name))
403+
AGL_API(GLint, GetProgramResourceLocationIndex, (GLuint program, GLenum programInterface, const GLchar *name))
404+
AGL_API(void, ShaderStorageBlockBinding, (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding))
405+
AGL_API(void, TexBufferRange, (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size))
406+
AGL_API(void, TexStorage2DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations))
407+
AGL_API(void, TexStorage3DMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations))
408+
AGL_API(void, TextureView, (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers))
409+
AGL_API(void, BindVertexBuffer, (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride))
410+
AGL_API(void, VertexAttribFormat, (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset))
411+
AGL_API(void, VertexAttribIFormat, (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset))
412+
AGL_API(void, VertexAttribLFormat, (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset))
413+
AGL_API(void, VertexAttribBinding, (GLuint attribindex, GLuint bindingindex))
414+
AGL_API(void, VertexBindingDivisor, (GLuint bindingindex, GLuint divisor))
415+
AGL_API(void, DebugMessageControl, (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled))
416+
AGL_API(void, DebugMessageInsert, (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf))
417+
AGL_API(void, DebugMessageCallback, (GLDEBUGPROC callback, const void *userParam))
418+
AGL_API(GLuint, GetDebugMessageLog, (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog))
419+
AGL_API(void, PushDebugGroup, (GLenum source, GLuint id, GLsizei length, const GLchar *message))
420+
AGL_API(void, PopDebugGroup, (void))
421+
AGL_API(void, ObjectLabel, (GLenum identifier, GLuint name, GLsizei length, const GLchar *label))
422+
AGL_API(void, GetObjectLabel, (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label))
423+
AGL_API(void, ObjectPtrLabel, (const void *ptr, GLsizei length, const GLchar *label))
424+
AGL_API(void, GetObjectPtrLabel, (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label))
425+
#endif /* GL_VERSION_4_3 */
426+
381427

382428
/* </Core> */
383429
/* <ARB> */

0 commit comments

Comments
 (0)