From 3cba929599d2a8c009de48f8137e1f61997b961e Mon Sep 17 00:00:00 2001 From: Youmu Liu <105042599+Nitload-NSI@users.noreply.github.com> Date: Thu, 27 Aug 2026 18:24:55 +0800 Subject: [PATCH] improve gl api doc --- .../OpenGL/Generated/OpenGLFunction.Base.g.cs | 2044 ++++++++++++----- .../OpenGL/Generated/OpenGLFunction.v3_3.g.cs | 168 +- .../OpenGL/Generated/OpenGLFunction.v4_0.g.cs | 266 ++- .../OpenGL/Generated/OpenGLFunction.v4_1.g.cs | 504 ++-- .../OpenGL/Generated/OpenGLFunction.v4_2.g.cs | 84 +- .../OpenGL/Generated/OpenGLFunction.v4_3.g.cs | 301 ++- .../OpenGL/Generated/OpenGLFunction.v4_4.g.cs | 63 +- .../OpenGL/Generated/OpenGLFunction.v4_5.g.cs | 770 +++++-- .../OpenGL/Generated/OpenGLFunction.v4_6.g.cs | 28 +- .../OpenGL/Generated/OpenglContext.g.cs | 1154 +++++----- .../StgSharp.Graphics.csproj | 4 + .../Generation/OpenGlGenerator.cs | 15 +- 12 files changed, 3611 insertions(+), 1790 deletions(-) diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.Base.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.Base.g.cs index c057461e..e4447331 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.Base.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.Base.g.cs @@ -20,280 +20,385 @@ namespace StgSharp.Graphics.OpenGL __context = context; } - /// Forwards to the native C API void glCullFace(GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCullFace(GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CullFace(uint mode) { __context->glCullFace(mode); } - /// Forwards to the native C API void glFrontFace(GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFrontFace(GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrontFace(uint mode) { __context->glFrontFace(mode); } - /// Forwards to the native C API void glHint(GLenum target, GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glHint(GLenum target, GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Hint(uint target, uint mode) { __context->glHint(target, mode); } - /// Forwards to the native C API void glLineWidth(GLfloat width);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glLineWidth(GLfloat width); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void LineWidth(float width) { __context->glLineWidth(width); } - /// Forwards to the native C API void glPointSize(GLfloat size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPointSize(GLfloat size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PointSize(float size) { __context->glPointSize(size); } - /// Forwards to the native C API void glPolygonMode(GLenum face, GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPolygonMode(GLenum face, GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PolygonMode(uint face, uint mode) { __context->glPolygonMode(face, mode); } - /// Forwards to the native C API void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glScissor(GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Scissor(int x, int y, int width, int height) { __context->glScissor(x, y, width, height); } - /// Forwards to the native C API void glTexParameterf(GLenum target, GLenum pname, GLfloat param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameterf(GLenum target, GLenum pname, GLfloat param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameter(uint target, uint pname, float param) { __context->glTexParameterf(target, pname, param); } - /// Forwards to the native C API void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameter(uint target, uint pname, float* @params) { __context->glTexParameterfv(target, pname, @params); } - /// Forwards to the native C API void glTexParameteri(GLenum target, GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameteri(GLenum target, GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameter(uint target, uint pname, int param) { __context->glTexParameteri(target, pname, param); } - /// Forwards to the native C API void glTexParameteriv(GLenum target, GLenum pname, const GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameteriv(GLenum target, GLenum pname, const GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameter(uint target, uint pname, int* @params) { __context->glTexParameteriv(target, pname, @params); } - /// Forwards to the native C API void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexImage1D(uint target, int level, int internalFormat, int width, int border, uint format, uint type, void* pixels) { __context->glTexImage1D(target, level, internalFormat, width, border, format, type, pixels); } - /// Forwards to the native C API void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexImage2D(uint target, int level, int internalFormat, int width, int height, int border, uint format, uint type, void* pixels) { __context->glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels); } - /// Forwards to the native C API void glDrawBuffer(GLenum buf);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawBuffer(GLenum buf); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawBuffer(uint buf) { __context->glDrawBuffer(buf); } - /// Forwards to the native C API void glClear(GLbitfield mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClear(GLbitfield mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Clear(uint mask) { __context->glClear(mask); } - /// Forwards to the native C API void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearColor(float red, float green, float blue, float alpha) { __context->glClearColor(red, green, blue, alpha); } - /// Forwards to the native C API void glClearStencil(GLint s);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearStencil(GLint s); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearStencil(int s) { __context->glClearStencil(s); } - /// Forwards to the native C API void glClearDepth(GLdouble depth);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearDepth(GLdouble depth); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearDepth(double depth) { __context->glClearDepth(depth); } - /// Forwards to the native C API void glStencilMask(GLuint mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilMask(GLuint mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilMask(uint mask) { __context->glStencilMask(mask); } - /// Forwards to the native C API void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ColorMask(byte red, byte green, byte blue, byte alpha) { __context->glColorMask(red, green, blue, alpha); } - /// Forwards to the native C API void glDepthMask(GLboolean flag);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthMask(GLboolean flag); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthMask(byte flag) { __context->glDepthMask(flag); } - /// Forwards to the native C API void glDisable(GLenum cap);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDisable(GLenum cap); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Disable(uint cap) { __context->glDisable(cap); } - /// Forwards to the native C API void glEnable(GLenum cap);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEnable(GLenum cap); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Enable(uint cap) { __context->glEnable(cap); } - /// Forwards to the native C API void glFinish();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFinish(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Finish() { __context->glFinish(); } - /// Forwards to the native C API void glFlush();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFlush(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Flush() { __context->glFlush(); } - /// Forwards to the native C API void glBlendFunc(GLenum sfactor, GLenum dfactor);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendFunc(GLenum sfactor, GLenum dfactor); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendFunc(uint sfactor, uint dfactor) { __context->glBlendFunc(sfactor, dfactor); } - /// Forwards to the native C API void glLogicOp(GLenum opcode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glLogicOp(GLenum opcode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void LogicOp(uint opcode) { __context->glLogicOp(opcode); } - /// Forwards to the native C API void glStencilFunc(GLenum func, GLint ref, GLuint mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilFunc(GLenum func, GLint ref, GLuint mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilFunc(uint func, int @ref, uint mask) { __context->glStencilFunc(func, @ref, mask); } - /// Forwards to the native C API void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilOp(uint fail, uint zfail, uint zpass) { __context->glStencilOp(fail, zfail, zpass); } - /// Forwards to the native C API void glDepthFunc(GLenum func);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthFunc(GLenum func); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthFunc(uint func) { __context->glDepthFunc(func); } - /// Forwards to the native C API void glPixelStoref(GLenum pname, GLfloat param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPixelStoref(GLenum pname, GLfloat param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PixelStore(uint pname, float param) { __context->glPixelStoref(pname, param); } - /// Forwards to the native C API void glPixelStorei(GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPixelStorei(GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PixelStore(uint pname, int param) { __context->glPixelStorei(pname, param); } - /// Forwards to the native C API void glReadBuffer(GLenum src);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glReadBuffer(GLenum src); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ReadBuffer(uint src) { __context->glReadBuffer(src); } - /// Forwards to the native C API void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ReadPixels(int x, int y, int width, int height, uint format, uint type, void* pixels) { __context->glReadPixels(x, y, width, height, format, type, pixels); } - /// Forwards to the native C API void glGetBooleanv(GLenum pname, GLboolean *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBooleanv(GLenum pname, GLboolean *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint pname, Span values) { @@ -303,8 +408,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetDoublev(GLenum pname, GLdouble *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetDoublev(GLenum pname, GLdouble *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint pname, Span values) { @@ -314,16 +422,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLenum glGetError();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLenum glGetError(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetError() { return __context->glGetError(); } - /// Forwards to the native C API void glGetFloatv(GLenum pname, GLfloat *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetFloatv(GLenum pname, GLfloat *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint pname, Span values) { @@ -333,8 +447,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetIntegerv(GLenum pname, GLint *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetIntegerv(GLenum pname, GLint *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint pname, Span values) { @@ -344,168 +461,231 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API const GLubyte *glGetString(GLenum name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// const GLubyte *glGetString(GLenum name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte* GetString(uint name) { return __context->glGetString(name); } - /// Forwards to the native C API void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTexImage(uint target, int level, uint format, uint type, void* pixels) { __context->glGetTexImage(target, level, format, type, pixels); } - /// Forwards to the native C API void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureParameter(uint target, uint pname, float* @params) { __context->glGetTexParameterfv(target, pname, @params); } - /// Forwards to the native C API void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureParameter(uint target, uint pname, int* @params) { __context->glGetTexParameteriv(target, pname, @params); } - /// Forwards to the native C API void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureLevelParameter(uint target, int level, uint pname, float* @params) { __context->glGetTexLevelParameterfv(target, level, pname, @params); } - /// Forwards to the native C API void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureLevelParameter(uint target, int level, uint pname, int* @params) { __context->glGetTexLevelParameteriv(target, level, pname, @params); } - /// Forwards to the native C API GLboolean glIsEnabled(GLenum cap);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsEnabled(GLenum cap); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsEnabled(uint cap) { return __context->glIsEnabled(cap); } - /// Forwards to the native C API void glDepthRange(GLdouble n, GLdouble f);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthRange(GLdouble n, GLdouble f); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthRange(double n, double f) { __context->glDepthRange(n, f); } - /// Forwards to the native C API void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glViewport(GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Viewport(int x, int y, int width, int height) { __context->glViewport(x, y, width, height); } - /// Forwards to the native C API void glDrawArrays(GLenum mode, GLint first, GLsizei count);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawArrays(GLenum mode, GLint first, GLsizei count); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawArrays(uint mode, int first, int count) { __context->glDrawArrays(mode, first, count); } - /// Forwards to the native C API void glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElements(uint mode, int count, uint type, void* indices) { __context->glDrawElements(mode, count, type, indices); } - /// Forwards to the native C API void glGetPointerv(GLenum pname, void **params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetPointerv(GLenum pname, void **params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetPointerv(uint pname, void** @params) { __context->glGetPointerv(pname, @params); } - /// Forwards to the native C API void glPolygonOffset(GLfloat factor, GLfloat units);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPolygonOffset(GLfloat factor, GLfloat units); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PolygonOffset(float factor, float units) { __context->glPolygonOffset(factor, units); } - /// Forwards to the native C API void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTexImage1D(uint target, int level, uint internalFormat, int x, int y, int width, int border) { __context->glCopyTexImage1D(target, level, internalFormat, x, y, width, border); } - /// Forwards to the native C API void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTexImage2D(uint target, int level, uint internalFormat, int x, int y, int width, int height, int border) { __context->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border); } - /// Forwards to the native C API void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTexSubImage1D(uint target, int level, int xoffset, int x, int y, int width) { __context->glCopyTexSubImage1D(target, level, xoffset, x, y, width); } - /// Forwards to the native C API void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTexSubImage2D(uint target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { __context->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); } - /// Forwards to the native C API void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexSubImage1D(uint target, int level, int xoffset, int width, uint format, uint type, void* pixels) { __context->glTexSubImage1D(target, level, xoffset, width, format, type, pixels); } - /// Forwards to the native C API void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexSubImage2D(uint target, int level, int xoffset, int yoffset, int width, int height, uint format, uint type, void* pixels) { __context->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); } - /// Forwards to the native C API void glBindTexture(GLenum target, GLuint texture);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindTexture(GLenum target, GLuint texture); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindTexture(uint target, GlHandle texture) { __context->glBindTexture(target, texture.Value); } - /// Forwards to the native C API void glDeleteTextures(GLsizei n, const GLuint *textures);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteTextures(GLsizei n, const GLuint *textures); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteTextures(ReadOnlySpan textures) { @@ -515,8 +695,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenTextures(GLsizei n, GLuint *textures);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenTextures(GLsizei n, GLuint *textures); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenTextures(Span textures) { @@ -526,192 +709,264 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsTexture(GLuint texture);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsTexture(GLuint texture); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsTexture(GlHandle texture) { return __context->glIsTexture(texture.Value); } - /// Forwards to the native C API void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawRangeElements(uint mode, uint start, uint end, int count, uint type, void* indices) { __context->glDrawRangeElements(mode, start, end, count, type, indices); } - /// Forwards to the native C API void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexImage3D(uint target, int level, int internalFormat, int width, int height, int depth, int border, uint format, uint type, void* pixels) { __context->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels); } - /// Forwards to the native C API void glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, void* pixels) { __context->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); } - /// Forwards to the native C API void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { __context->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); } - /// Forwards to the native C API void glActiveTexture(GLenum texture);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glActiveTexture(GLenum texture); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ActiveTexture(uint texture) { __context->glActiveTexture(texture); } - /// Forwards to the native C API void glSampleCoverage(GLfloat value, GLboolean invert);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSampleCoverage(GLfloat value, GLboolean invert); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SampleCoverage(float value, byte invert) { __context->glSampleCoverage(value, invert); } - /// Forwards to the native C API void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexImage3D(uint target, int level, uint internalFormat, int width, int height, int depth, int border, int imageSize, void* data) { __context->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data); } - /// Forwards to the native C API void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexImage2D(uint target, int level, uint internalFormat, int width, int height, int border, int imageSize, void* data) { __context->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data); } - /// Forwards to the native C API void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexImage1D(uint target, int level, uint internalFormat, int width, int border, int imageSize, void* data) { __context->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data); } - /// Forwards to the native C API void glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, int imageSize, void* data) { __context->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); } - /// Forwards to the native C API void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexSubImage2D(uint target, int level, int xoffset, int yoffset, int width, int height, uint format, int imageSize, void* data) { __context->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); } - /// Forwards to the native C API void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTexSubImage1D(uint target, int level, int xoffset, int width, uint format, int imageSize, void* data) { __context->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data); } - /// Forwards to the native C API void glGetCompressedTexImage(GLenum target, GLint level, void *img);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetCompressedTexImage(GLenum target, GLint level, void *img); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetCompressedTexImage(uint target, int level, void* img) { __context->glGetCompressedTexImage(target, level, img); } - /// Forwards to the native C API void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendFuncSeparate(uint sfactorRGB, uint dfactorRGB, uint sfactorAlpha, uint dfactorAlpha) { __context->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); } - /// Forwards to the native C API void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawArrays(uint mode, int* first, int* count, int drawcount) { __context->glMultiDrawArrays(mode, first, count, drawcount); } - /// Forwards to the native C API void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawElements(uint mode, int* count, uint type, void** indices, int drawcount) { __context->glMultiDrawElements(mode, count, type, indices, drawcount); } - /// Forwards to the native C API void glPointParameterf(GLenum pname, GLfloat param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPointParameterf(GLenum pname, GLfloat param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PointParameter(uint pname, float param) { __context->glPointParameterf(pname, param); } - /// Forwards to the native C API void glPointParameterfv(GLenum pname, const GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPointParameterfv(GLenum pname, const GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PointParameter(uint pname, float* @params) { __context->glPointParameterfv(pname, @params); } - /// Forwards to the native C API void glPointParameteri(GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPointParameteri(GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PointParameter(uint pname, int param) { __context->glPointParameteri(pname, param); } - /// Forwards to the native C API void glPointParameteriv(GLenum pname, const GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPointParameteriv(GLenum pname, const GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PointParameter(uint pname, int* @params) { __context->glPointParameteriv(pname, @params); } - /// Forwards to the native C API void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendColor(float red, float green, float blue, float alpha) { __context->glBlendColor(red, green, blue, alpha); } - /// Forwards to the native C API void glBlendEquation(GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendEquation(GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendEquation(uint mode) { __context->glBlendEquation(mode); } - /// Forwards to the native C API void glGenQueries(GLsizei n, GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenQueries(GLsizei n, GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenQueries(Span ids) { @@ -721,8 +976,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glDeleteQueries(GLsizei n, const GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteQueries(GLsizei n, const GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteQueries(ReadOnlySpan ids) { @@ -732,64 +990,88 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsQuery(GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsQuery(GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsQuery(GlHandle id) { return __context->glIsQuery(id.Value); } - /// Forwards to the native C API void glBeginQuery(GLenum target, GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBeginQuery(GLenum target, GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BeginQuery(uint target, GlHandle id) { __context->glBeginQuery(target, id.Value); } - /// Forwards to the native C API void glEndQuery(GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEndQuery(GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EndQuery(uint target) { __context->glEndQuery(target); } - /// Forwards to the native C API void glGetQueryiv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryiv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryiv(uint target, uint pname, int* @params) { __context->glGetQueryiv(target, pname, @params); } - /// Forwards to the native C API void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryObject(GlHandle id, uint pname, int* @params) { __context->glGetQueryObjectiv(id.Value, pname, @params); } - /// Forwards to the native C API void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryObject(GlHandle id, uint pname, uint* @params) { __context->glGetQueryObjectuiv(id.Value, pname, @params); } - /// Forwards to the native C API void glBindBuffer(GLenum target, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindBuffer(GLenum target, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindBuffer(uint target, GlHandle buffer) { __context->glBindBuffer(target, buffer.Value); } - /// Forwards to the native C API void glDeleteBuffers(GLsizei n, const GLuint *buffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteBuffers(GLsizei n, const GLuint *buffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteBuffers(ReadOnlySpan buffers) { @@ -799,8 +1081,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenBuffers(GLsizei n, GLuint *buffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenBuffers(GLsizei n, GLuint *buffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenBuffers(Span buffers) { @@ -810,208 +1095,286 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsBuffer(GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsBuffer(GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsBuffer(GlHandle buffer) { return __context->glIsBuffer(buffer.Value); } - /// Forwards to the native C API void glBufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBufferData(GLenum target, GLsizeiptr size, const void *data, GLenum usage); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BufferData(uint target, nint size, void* data, uint usage) { __context->glBufferData(target, size, data, usage); } - /// Forwards to the native C API void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BufferSubData(uint target, nint offset, nint size, void* data) { __context->glBufferSubData(target, offset, size, data); } - /// Forwards to the native C API void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetBufferSubData(uint target, nint offset, nint size, void* data) { __context->glGetBufferSubData(target, offset, size, data); } - /// Forwards to the native C API void *glMapBuffer(GLenum target, GLenum access);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void *glMapBuffer(GLenum target, GLenum access); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void* MapBuffer(uint target, uint access) { return __context->glMapBuffer(target, access); } - /// Forwards to the native C API GLboolean glUnmapBuffer(GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glUnmapBuffer(GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte UnmapBuffer(uint target) { return __context->glUnmapBuffer(target); } - /// Forwards to the native C API void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetBufferParameter(uint target, uint pname, int* @params) { __context->glGetBufferParameteriv(target, pname, @params); } - /// Forwards to the native C API void glGetBufferPointerv(GLenum target, GLenum pname, void **params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBufferPointerv(GLenum target, GLenum pname, void **params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetBufferPointerv(uint target, uint pname, void** @params) { __context->glGetBufferPointerv(target, pname, @params); } - /// Forwards to the native C API void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendEquationSeparate(uint modeRGB, uint modeAlpha) { __context->glBlendEquationSeparate(modeRGB, modeAlpha); } - /// Forwards to the native C API void glDrawBuffers(GLsizei n, const GLenum *bufs);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawBuffers(GLsizei n, const GLenum *bufs); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawBuffers(int n, uint* bufs) { __context->glDrawBuffers(n, bufs); } - /// Forwards to the native C API void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilOpSeparate(uint face, uint sfail, uint dpfail, uint dppass) { __context->glStencilOpSeparate(face, sfail, dpfail, dppass); } - /// Forwards to the native C API void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilFuncSeparate(uint face, uint func, int @ref, uint mask) { __context->glStencilFuncSeparate(face, func, @ref, mask); } - /// Forwards to the native C API void glStencilMaskSeparate(GLenum face, GLuint mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glStencilMaskSeparate(GLenum face, GLuint mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void StencilMaskSeparate(uint face, uint mask) { __context->glStencilMaskSeparate(face, mask); } - /// Forwards to the native C API void glAttachShader(GLuint program, GLuint shader);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glAttachShader(GLuint program, GLuint shader); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void AttachShader(GlHandle program, GlHandle shader) { __context->glAttachShader(program.Value, shader.Value); } - /// Forwards to the native C API void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindAttributeLocation(GlHandle program, uint index, byte* name) { __context->glBindAttribLocation(program.Value, index, name); } - /// Forwards to the native C API void glCompileShader(GLuint shader);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompileShader(GLuint shader); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompileShader(GlHandle shader) { __context->glCompileShader(shader.Value); } - /// Forwards to the native C API GLuint glCreateProgram();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glCreateProgram(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public GlHandle CreateProgram() { return GlHandle.Create(__context->glCreateProgram()); } - /// Forwards to the native C API GLuint glCreateShader(GLenum type);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glCreateShader(GLenum type); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public GlHandle CreateShader(uint type) { return GlHandle.Create(__context->glCreateShader(type)); } - /// Forwards to the native C API void glDeleteProgram(GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteProgram(GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteProgram(GlHandle program) { __context->glDeleteProgram(program.Value); } - /// Forwards to the native C API void glDeleteShader(GLuint shader);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteShader(GLuint shader); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteShader(GlHandle shader) { __context->glDeleteShader(shader.Value); } - /// Forwards to the native C API void glDetachShader(GLuint program, GLuint shader);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDetachShader(GLuint program, GLuint shader); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DetachShader(GlHandle program, GlHandle shader) { __context->glDetachShader(program.Value, shader.Value); } - /// Forwards to the native C API void glDisableVertexAttribArray(GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDisableVertexAttribArray(GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DisableVertexAttributeArray(uint index) { __context->glDisableVertexAttribArray(index); } - /// Forwards to the native C API void glEnableVertexAttribArray(GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEnableVertexAttribArray(GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EnableVertexAttributeArray(uint index) { __context->glEnableVertexAttribArray(index); } - /// Forwards to the native C API void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveAttribute(GlHandle program, uint index, int bufSize, int* length, int* size, uint* type, byte* name) { __context->glGetActiveAttrib(program.Value, index, bufSize, length, size, type, name); } - /// Forwards to the native C API void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveUniform(GlHandle program, uint index, int bufSize, int* length, int* size, uint* type, byte* name) { __context->glGetActiveUniform(program.Value, index, bufSize, length, size, type, name); } - /// Forwards to the native C API void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetAttachedShaders(GlHandle program, int* count, Span shaders) { @@ -1021,264 +1384,363 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLint glGetAttribLocation(GLuint program, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetAttribLocation(GLuint program, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetAttributeLocation(GlHandle program, byte* name) { return __context->glGetAttribLocation(program.Value, name); } - /// Forwards to the native C API void glGetProgramiv(GLuint program, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramiv(GLuint program, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramiv(GlHandle program, uint pname, int* @params) { __context->glGetProgramiv(program.Value, pname, @params); } - /// Forwards to the native C API void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramInfoLog(GlHandle program, int bufSize, int* length, byte* infoLog) { __context->glGetProgramInfoLog(program.Value, bufSize, length, infoLog); } - /// Forwards to the native C API void glGetShaderiv(GLuint shader, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetShaderiv(GLuint shader, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetShaderiv(GlHandle shader, uint pname, int* @params) { __context->glGetShaderiv(shader.Value, pname, @params); } - /// Forwards to the native C API void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetShaderInfoLog(GlHandle shader, int bufSize, int* length, byte* infoLog) { __context->glGetShaderInfoLog(shader.Value, bufSize, length, infoLog); } - /// Forwards to the native C API void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetShaderSource(GlHandle shader, int bufSize, int* length, byte* source) { __context->glGetShaderSource(shader.Value, bufSize, length, source); } - /// Forwards to the native C API GLint glGetUniformLocation(GLuint program, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetUniformLocation(GLuint program, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetUniformLocation(GlHandle program, byte* name) { return __context->glGetUniformLocation(program.Value, name); } - /// Forwards to the native C API void glGetUniformfv(GLuint program, GLint location, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformfv(GLuint program, GLint location, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, float* @params) { __context->glGetUniformfv(program.Value, location, @params); } - /// Forwards to the native C API void glGetUniformiv(GLuint program, GLint location, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformiv(GLuint program, GLint location, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, int* @params) { __context->glGetUniformiv(program.Value, location, @params); } - /// Forwards to the native C API void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttribute(uint index, uint pname, double* @params) { __context->glGetVertexAttribdv(index, pname, @params); } - /// Forwards to the native C API void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttribute(uint index, uint pname, float* @params) { __context->glGetVertexAttribfv(index, pname, @params); } - /// Forwards to the native C API void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttribute(uint index, uint pname, int* @params) { __context->glGetVertexAttribiv(index, pname, @params); } - /// Forwards to the native C API void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttributePointer(uint index, uint pname, void** pointer) { __context->glGetVertexAttribPointerv(index, pname, pointer); } - /// Forwards to the native C API GLboolean glIsProgram(GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsProgram(GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsProgram(GlHandle program) { return __context->glIsProgram(program.Value); } - /// Forwards to the native C API GLboolean glIsShader(GLuint shader);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsShader(GLuint shader); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsShader(GlHandle shader) { return __context->glIsShader(shader.Value); } - /// Forwards to the native C API void glLinkProgram(GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glLinkProgram(GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void LinkProgram(GlHandle program) { __context->glLinkProgram(program.Value); } - /// Forwards to the native C API void glShaderSource(GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glShaderSource(GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ShaderSource(GlHandle shader, int count, byte** @string, int* length) { __context->glShaderSource(shader.Value, count, @string, length); } - /// Forwards to the native C API void glUseProgram(GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUseProgram(GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void UseProgram(GlHandle program) { __context->glUseProgram(program.Value); } - /// Forwards to the native C API void glUniform1f(GLint location, GLfloat v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1f(GLint location, GLfloat v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, float v0) { __context->glUniform1f(location, v0); } - /// Forwards to the native C API void glUniform2f(GLint location, GLfloat v0, GLfloat v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2f(GLint location, GLfloat v0, GLfloat v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, float v0, float v1) { __context->glUniform2f(location, v0, v1); } - /// Forwards to the native C API void glUniform2f(GLint location, GLfloat v0, GLfloat v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2f(GLint location, GLfloat v0, GLfloat v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec2 value) { __context->glUniform2f(location, value.X, value.Y); } - /// Forwards to the native C API void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, float v0, float v1, float v2) { __context->glUniform3f(location, v0, v1, v2); } - /// Forwards to the native C API void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec3 value) { __context->glUniform3f(location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, float v0, float v1, float v2, float v3) { __context->glUniform4f(location, v0, v1, v2, v3); } - /// Forwards to the native C API void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec4 value) { __context->glUniform4f(location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glUniform1i(GLint location, GLint v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1i(GLint location, GLint v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, int v0) { __context->glUniform1i(location, v0); } - /// Forwards to the native C API void glUniform2i(GLint location, GLint v0, GLint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2i(GLint location, GLint v0, GLint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, int v0, int v1) { __context->glUniform2i(location, v0, v1); } - /// Forwards to the native C API void glUniform2i(GLint location, GLint v0, GLint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2i(GLint location, GLint v0, GLint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec2 value) { __context->glUniform2i(location, value.X, value.Y); } - /// Forwards to the native C API void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, int v0, int v1, int v2) { __context->glUniform3i(location, v0, v1, v2); } - /// Forwards to the native C API void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec3 value) { __context->glUniform3i(location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, int v0, int v1, int v2, int v3) { __context->glUniform4i(location, v0, v1, v2, v3); } - /// Forwards to the native C API void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec4 value) { __context->glUniform4i(location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glUniform1fv(GLint location, GLsizei count, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1fv(GLint location, GLsizei count, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan values) { @@ -1288,8 +1750,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniform4fv(GLint location, GLsizei count, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4fv(GLint location, GLsizei count, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan> values) { @@ -1299,8 +1764,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniform1iv(GLint location, GLsizei count, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1iv(GLint location, GLsizei count, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan values) { @@ -1310,8 +1778,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniform4iv(GLint location, GLsizei count, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4iv(GLint location, GLsizei count, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan> values) { @@ -1321,16 +1792,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, bool transpose, GraphicsMatrix value) { __context->glUniformMatrix4fv(location, 1, transpose ? (byte)1 : (byte)0, (float*)&value); } - /// Forwards to the native C API void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, bool transpose, ReadOnlySpan values) { @@ -1340,216 +1817,297 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glValidateProgram(GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glValidateProgram(GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ValidateProgram(GlHandle program) { __context->glValidateProgram(program.Value); } - /// Forwards to the native C API void glVertexAttrib1d(GLuint index, GLdouble x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib1d(GLuint index, GLdouble x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, double x) { __context->glVertexAttrib1d(index, x); } - /// Forwards to the native C API void glVertexAttrib1f(GLuint index, GLfloat x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib1f(GLuint index, GLfloat x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, float x) { __context->glVertexAttrib1f(index, x); } - /// Forwards to the native C API void glVertexAttrib1s(GLuint index, GLshort x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib1s(GLuint index, GLshort x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, short x) { __context->glVertexAttrib1s(index, x); } - /// Forwards to the native C API void glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, double x, double y) { __context->glVertexAttrib2d(index, x, y); } - /// Forwards to the native C API void glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, float x, float y) { __context->glVertexAttrib2f(index, x, y); } - /// Forwards to the native C API void glVertexAttrib2s(GLuint index, GLshort x, GLshort y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib2s(GLuint index, GLshort x, GLshort y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, short x, short y) { __context->glVertexAttrib2s(index, x, y); } - /// Forwards to the native C API void glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, double x, double y, double z) { __context->glVertexAttrib3d(index, x, y, z); } - /// Forwards to the native C API void glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, float x, float y, float z) { __context->glVertexAttrib3f(index, x, y, z); } - /// Forwards to the native C API void glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, short x, short y, short z) { __context->glVertexAttrib3s(index, x, y, z); } - /// Forwards to the native C API void glVertexAttrib4Nbv(GLuint index, const GLbyte *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Nbv(GLuint index, const GLbyte *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, sbyte* v) { __context->glVertexAttrib4Nbv(index, v); } - /// Forwards to the native C API void glVertexAttrib4Niv(GLuint index, const GLint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Niv(GLuint index, const GLint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, int* v) { __context->glVertexAttrib4Niv(index, v); } - /// Forwards to the native C API void glVertexAttrib4Nsv(GLuint index, const GLshort *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Nsv(GLuint index, const GLshort *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, short* v) { __context->glVertexAttrib4Nsv(index, v); } - /// Forwards to the native C API void glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, byte x, byte y, byte z, byte w) { __context->glVertexAttrib4Nub(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttrib4Nuiv(GLuint index, const GLuint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Nuiv(GLuint index, const GLuint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, uint* v) { __context->glVertexAttrib4Nuiv(index, v); } - /// Forwards to the native C API void glVertexAttrib4Nusv(GLuint index, const GLushort *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4Nusv(GLuint index, const GLushort *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeNormalized(uint index, ushort* v) { __context->glVertexAttrib4Nusv(index, v); } - /// Forwards to the native C API void glVertexAttrib4bv(GLuint index, const GLbyte *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4bv(GLuint index, const GLbyte *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, sbyte* v) { __context->glVertexAttrib4bv(index, v); } - /// Forwards to the native C API void glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, double x, double y, double z, double w) { __context->glVertexAttrib4d(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, float x, float y, float z, float w) { __context->glVertexAttrib4f(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttrib4iv(GLuint index, const GLint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4iv(GLuint index, const GLint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, int* v) { __context->glVertexAttrib4iv(index, v); } - /// Forwards to the native C API void glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, short x, short y, short z, short w) { __context->glVertexAttrib4s(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttrib4ubv(GLuint index, const GLubyte *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4ubv(GLuint index, const GLubyte *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, byte* v) { __context->glVertexAttrib4ubv(index, v); } - /// Forwards to the native C API void glVertexAttrib4uiv(GLuint index, const GLuint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4uiv(GLuint index, const GLuint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, uint* v) { __context->glVertexAttrib4uiv(index, v); } - /// Forwards to the native C API void glVertexAttrib4usv(GLuint index, const GLushort *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttrib4usv(GLuint index, const GLushort *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttribute(uint index, ushort* v) { __context->glVertexAttrib4usv(index, v); } - /// Forwards to the native C API void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributePointer(uint index, int size, uint type, byte normalized, int stride, void* pointer) { __context->glVertexAttribPointer(index, size, type, normalized, stride, pointer); } - /// Forwards to the native C API void glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ColorMaski(uint index, byte r, byte g, byte b, byte a) { __context->glColorMaski(index, r, g, b, a); } - /// Forwards to the native C API void glGetBooleani_v(GLenum target, GLuint index, GLboolean *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBooleani_v(GLenum target, GLuint index, GLboolean *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint target, uint index, Span values) { @@ -1559,8 +2117,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetIntegeri_v(GLenum target, GLuint index, GLint *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetIntegeri_v(GLenum target, GLuint index, GLint *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint target, uint index, Span values) { @@ -1570,304 +2131,418 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glEnablei(GLenum target, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEnablei(GLenum target, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Enablei(uint target, uint index) { __context->glEnablei(target, index); } - /// Forwards to the native C API void glDisablei(GLenum target, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDisablei(GLenum target, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Disablei(uint target, uint index) { __context->glDisablei(target, index); } - /// Forwards to the native C API GLboolean glIsEnabledi(GLenum target, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsEnabledi(GLenum target, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsEnabledi(uint target, uint index) { return __context->glIsEnabledi(target, index); } - /// Forwards to the native C API void glBeginTransformFeedback(GLenum primitiveMode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBeginTransformFeedback(GLenum primitiveMode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BeginTransformFeedback(uint primitiveMode) { __context->glBeginTransformFeedback(primitiveMode); } - /// Forwards to the native C API void glEndTransformFeedback();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEndTransformFeedback(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EndTransformFeedback() { __context->glEndTransformFeedback(); } - /// Forwards to the native C API void glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindBufferRange(uint target, uint index, GlHandle buffer, nint offset, nint size) { __context->glBindBufferRange(target, index, buffer.Value, offset, size); } - /// Forwards to the native C API void glBindBufferBase(GLenum target, GLuint index, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindBufferBase(GLenum target, GLuint index, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindBufferBase(uint target, uint index, GlHandle buffer) { __context->glBindBufferBase(target, index, buffer.Value); } - /// Forwards to the native C API void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TransformFeedbackVaryings(GlHandle program, int count, byte** varyings, uint bufferMode) { __context->glTransformFeedbackVaryings(program.Value, count, varyings, bufferMode); } - /// Forwards to the native C API void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTransformFeedbackVarying(GlHandle program, uint index, int bufSize, int* length, int* size, uint* type, byte* name) { __context->glGetTransformFeedbackVarying(program.Value, index, bufSize, length, size, type, name); } - /// Forwards to the native C API void glClampColor(GLenum target, GLenum clamp);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClampColor(GLenum target, GLenum clamp); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClampColor(uint target, uint clamp) { __context->glClampColor(target, clamp); } - /// Forwards to the native C API void glBeginConditionalRender(GLuint id, GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBeginConditionalRender(GLuint id, GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BeginConditionalRender(uint id, uint mode) { __context->glBeginConditionalRender(id, mode); } - /// Forwards to the native C API void glEndConditionalRender();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEndConditionalRender(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EndConditionalRender() { __context->glEndConditionalRender(); } - /// Forwards to the native C API void glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeIntegerPointer(uint index, int size, uint type, int stride, void* pointer) { __context->glVertexAttribIPointer(index, size, type, stride, pointer); } - /// Forwards to the native C API void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttributeInteger(uint index, uint pname, int* @params) { __context->glGetVertexAttribIiv(index, pname, @params); } - /// Forwards to the native C API void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttributeInteger(uint index, uint pname, uint* @params) { __context->glGetVertexAttribIuiv(index, pname, @params); } - /// Forwards to the native C API void glVertexAttribI1i(GLuint index, GLint x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI1i(GLuint index, GLint x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, int x) { __context->glVertexAttribI1i(index, x); } - /// Forwards to the native C API void glVertexAttribI2i(GLuint index, GLint x, GLint y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI2i(GLuint index, GLint x, GLint y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, int x, int y) { __context->glVertexAttribI2i(index, x, y); } - /// Forwards to the native C API void glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, int x, int y, int z) { __context->glVertexAttribI3i(index, x, y, z); } - /// Forwards to the native C API void glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, int x, int y, int z, int w) { __context->glVertexAttribI4i(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttribI1ui(GLuint index, GLuint x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI1ui(GLuint index, GLuint x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, uint x) { __context->glVertexAttribI1ui(index, x); } - /// Forwards to the native C API void glVertexAttribI2ui(GLuint index, GLuint x, GLuint y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI2ui(GLuint index, GLuint x, GLuint y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, uint x, uint y) { __context->glVertexAttribI2ui(index, x, y); } - /// Forwards to the native C API void glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, uint x, uint y, uint z) { __context->glVertexAttribI3ui(index, x, y, z); } - /// Forwards to the native C API void glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, uint x, uint y, uint z, uint w) { __context->glVertexAttribI4ui(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttribI4bv(GLuint index, const GLbyte *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4bv(GLuint index, const GLbyte *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, sbyte* v) { __context->glVertexAttribI4bv(index, v); } - /// Forwards to the native C API void glVertexAttribI4sv(GLuint index, const GLshort *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4sv(GLuint index, const GLshort *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, short* v) { __context->glVertexAttribI4sv(index, v); } - /// Forwards to the native C API void glVertexAttribI4ubv(GLuint index, const GLubyte *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4ubv(GLuint index, const GLubyte *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, byte* v) { __context->glVertexAttribI4ubv(index, v); } - /// Forwards to the native C API void glVertexAttribI4usv(GLuint index, const GLushort *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribI4usv(GLuint index, const GLushort *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeInteger(uint index, ushort* v) { __context->glVertexAttribI4usv(index, v); } - /// Forwards to the native C API void glGetUniformuiv(GLuint program, GLint location, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformuiv(GLuint program, GLint location, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, uint* @params) { __context->glGetUniformuiv(program.Value, location, @params); } - /// Forwards to the native C API void glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindFragmentDataLocation(GlHandle program, uint color, byte* name) { __context->glBindFragDataLocation(program.Value, color, name); } - /// Forwards to the native C API GLint glGetFragDataLocation(GLuint program, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetFragDataLocation(GLuint program, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetFragmentDataLocation(GlHandle program, byte* name) { return __context->glGetFragDataLocation(program.Value, name); } - /// Forwards to the native C API void glUniform1ui(GLint location, GLuint v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1ui(GLint location, GLuint v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, uint v0) { __context->glUniform1ui(location, v0); } - /// Forwards to the native C API void glUniform2ui(GLint location, GLuint v0, GLuint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2ui(GLint location, GLuint v0, GLuint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, uint v0, uint v1) { __context->glUniform2ui(location, v0, v1); } - /// Forwards to the native C API void glUniform2ui(GLint location, GLuint v0, GLuint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2ui(GLint location, GLuint v0, GLuint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec2 value) { __context->glUniform2ui(location, value.X, value.Y); } - /// Forwards to the native C API void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, uint v0, uint v1, uint v2) { __context->glUniform3ui(location, v0, v1, v2); } - /// Forwards to the native C API void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec3 value) { __context->glUniform3ui(location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, uint v0, uint v1, uint v2, uint v3) { __context->glUniform4ui(location, v0, v1, v2, v3); } - /// Forwards to the native C API void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec4 value) { __context->glUniform4ui(location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glUniform1uiv(GLint location, GLsizei count, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1uiv(GLint location, GLsizei count, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan values) { @@ -1877,8 +2552,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniform4uiv(GLint location, GLsizei count, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4uiv(GLint location, GLsizei count, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan> values) { @@ -1888,96 +2566,132 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glTexParameterIiv(GLenum target, GLenum pname, const GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameterIiv(GLenum target, GLenum pname, const GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameterInteger(uint target, uint pname, int* @params) { __context->glTexParameterIiv(target, pname, @params); } - /// Forwards to the native C API void glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureParameterInteger(uint target, uint pname, uint* @params) { __context->glTexParameterIuiv(target, pname, @params); } - /// Forwards to the native C API void glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureParameterInteger(uint target, uint pname, int* @params) { __context->glGetTexParameterIiv(target, pname, @params); } - /// Forwards to the native C API void glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureParameterInteger(uint target, uint pname, uint* @params) { __context->glGetTexParameterIuiv(target, pname, @params); } - /// Forwards to the native C API void glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBuffer(uint buffer, int drawbuffer, int* value) { __context->glClearBufferiv(buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBuffer(uint buffer, int drawbuffer, uint* value) { __context->glClearBufferuiv(buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBuffer(uint buffer, int drawbuffer, float* value) { __context->glClearBufferfv(buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBuffer(uint buffer, int drawbuffer, float depth, int stencil) { __context->glClearBufferfi(buffer, drawbuffer, depth, stencil); } - /// Forwards to the native C API const GLubyte *glGetStringi(GLenum name, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// const GLubyte *glGetStringi(GLenum name, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte* GetStringi(uint name, uint index) { return __context->glGetStringi(name, index); } - /// Forwards to the native C API GLboolean glIsRenderbuffer(GLuint renderbuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsRenderbuffer(GLuint renderbuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsRenderBuffer(GlHandle renderBuffer) { return __context->glIsRenderbuffer(renderBuffer.Value); } - /// Forwards to the native C API void glBindRenderbuffer(GLenum target, GLuint renderbuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindRenderbuffer(GLenum target, GLuint renderbuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindRenderBuffer(uint target, GlHandle renderBuffer) { __context->glBindRenderbuffer(target, renderBuffer.Value); } - /// Forwards to the native C API void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteRenderBuffers(ReadOnlySpan renderBuffers) { @@ -1987,8 +2701,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenRenderBuffers(Span renderBuffers) { @@ -1998,40 +2715,55 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void RenderBufferStorage(uint target, uint internalFormat, int width, int height) { __context->glRenderbufferStorage(target, internalFormat, width, height); } - /// Forwards to the native C API void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetRenderBufferParameteriv(uint target, uint pname, int* @params) { __context->glGetRenderbufferParameteriv(target, pname, @params); } - /// Forwards to the native C API GLboolean glIsFramebuffer(GLuint framebuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsFramebuffer(GLuint framebuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsFrameBuffer(GlHandle frameBuffer) { return __context->glIsFramebuffer(frameBuffer.Value); } - /// Forwards to the native C API void glBindFramebuffer(GLenum target, GLuint framebuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindFramebuffer(GLenum target, GLuint framebuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindFrameBuffer(uint target, GlHandle frameBuffer) { __context->glBindFramebuffer(target, frameBuffer.Value); } - /// Forwards to the native C API void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteFrameBuffers(ReadOnlySpan frameBuffers) { @@ -2041,8 +2773,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenFramebuffers(GLsizei n, GLuint *framebuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenFramebuffers(GLsizei n, GLuint *framebuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenFrameBuffers(Span frameBuffers) { @@ -2052,112 +2787,154 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLenum glCheckFramebufferStatus(GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLenum glCheckFramebufferStatus(GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint CheckFrameBufferStatus(uint target) { return __context->glCheckFramebufferStatus(target); } - /// Forwards to the native C API void glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferTexture1D(uint target, uint attachment, uint textarget, GlHandle texture, int level) { __context->glFramebufferTexture1D(target, attachment, textarget, texture.Value, level); } - /// Forwards to the native C API void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferTexture2D(uint target, uint attachment, uint textarget, GlHandle texture, int level) { __context->glFramebufferTexture2D(target, attachment, textarget, texture.Value, level); } - /// Forwards to the native C API void glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferTexture3D(uint target, uint attachment, uint textarget, GlHandle texture, int level, int zoffset) { __context->glFramebufferTexture3D(target, attachment, textarget, texture.Value, level, zoffset); } - /// Forwards to the native C API void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferRenderBuffer(uint target, uint attachment, uint renderBuffertarget, GlHandle renderBuffer) { __context->glFramebufferRenderbuffer(target, attachment, renderBuffertarget, renderBuffer.Value); } - /// Forwards to the native C API void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetFrameBufferAttachmentParameteriv(uint target, uint attachment, uint pname, int* @params) { __context->glGetFramebufferAttachmentParameteriv(target, attachment, pname, @params); } - /// Forwards to the native C API void glGenerateMipmap(GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenerateMipmap(GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenerateMipmap(uint target) { __context->glGenerateMipmap(target); } - /// Forwards to the native C API void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlitFrameBuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, uint mask, uint filter) { __context->glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); } - /// Forwards to the native C API void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void RenderBufferStorageMultisample(uint target, int samples, uint internalFormat, int width, int height) { __context->glRenderbufferStorageMultisample(target, samples, internalFormat, width, height); } - /// Forwards to the native C API void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferTextureLayer(uint target, uint attachment, GlHandle texture, int level, int layer) { __context->glFramebufferTextureLayer(target, attachment, texture.Value, level, layer); } - /// Forwards to the native C API void *glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void *glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void* MapBufferRange(uint target, nint offset, nint length, uint access) { return __context->glMapBufferRange(target, offset, length, access); } - /// Forwards to the native C API void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FlushMappedBufferRange(uint target, nint offset, nint length) { __context->glFlushMappedBufferRange(target, offset, length); } - /// Forwards to the native C API void glBindVertexArray(GLuint array);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindVertexArray(GLuint array); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindVertexArray(GlHandle array) { __context->glBindVertexArray(array.Value); } - /// Forwards to the native C API void glDeleteVertexArrays(GLsizei n, const GLuint *arrays);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteVertexArrays(GLsizei n, const GLuint *arrays); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteVertexArrays(ReadOnlySpan arrays) { @@ -2167,8 +2944,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenVertexArrays(GLsizei n, GLuint *arrays);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenVertexArrays(GLsizei n, GLuint *arrays); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenVertexArrays(Span arrays) { @@ -2178,192 +2958,264 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsVertexArray(GLuint array);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsVertexArray(GLuint array); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsVertexArray(GlHandle array) { return __context->glIsVertexArray(array.Value); } - /// Forwards to the native C API void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawArraysInstanced(uint mode, int first, int count, int instancecount) { __context->glDrawArraysInstanced(mode, first, count, instancecount); } - /// Forwards to the native C API void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsInstanced(uint mode, int count, uint type, void* indices, int instancecount) { __context->glDrawElementsInstanced(mode, count, type, indices, instancecount); } - /// Forwards to the native C API void glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexBuffer(uint target, uint internalFormat, GlHandle buffer) { __context->glTexBuffer(target, internalFormat, buffer.Value); } - /// Forwards to the native C API void glPrimitiveRestartIndex(GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPrimitiveRestartIndex(GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PrimitiveRestartIndex(uint index) { __context->glPrimitiveRestartIndex(index); } - /// Forwards to the native C API void glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyBufferSubData(uint readTarget, uint writeTarget, nint readOffset, nint writeOffset, nint size) { __context->glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); } - /// Forwards to the native C API void glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniformIndices(GlHandle program, int uniformCount, byte** uniformNames, uint* uniformIndices) { __context->glGetUniformIndices(program.Value, uniformCount, uniformNames, uniformIndices); } - /// Forwards to the native C API void glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveUniformsiv(GlHandle program, int uniformCount, uint* uniformIndices, uint pname, int* @params) { __context->glGetActiveUniformsiv(program.Value, uniformCount, uniformIndices, pname, @params); } - /// Forwards to the native C API void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveUniformName(GlHandle program, uint uniformIndex, int bufSize, int* length, byte* uniformName) { __context->glGetActiveUniformName(program.Value, uniformIndex, bufSize, length, uniformName); } - /// Forwards to the native C API GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetUniformBlockIndex(GlHandle program, byte* uniformBlockName) { return __context->glGetUniformBlockIndex(program.Value, uniformBlockName); } - /// Forwards to the native C API void glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveUniformBlockiv(GlHandle program, uint uniformBlockIndex, uint pname, int* @params) { __context->glGetActiveUniformBlockiv(program.Value, uniformBlockIndex, pname, @params); } - /// Forwards to the native C API void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveUniformBlockName(GlHandle program, uint uniformBlockIndex, int bufSize, int* length, byte* uniformBlockName) { __context->glGetActiveUniformBlockName(program.Value, uniformBlockIndex, bufSize, length, uniformBlockName); } - /// Forwards to the native C API void glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void UniformBlockBinding(GlHandle program, uint uniformBlockIndex, uint uniformBlockBinding) { __context->glUniformBlockBinding(program.Value, uniformBlockIndex, uniformBlockBinding); } - /// Forwards to the native C API void glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsBaseVertex(uint mode, int count, uint type, void* indices, int basevertex) { __context->glDrawElementsBaseVertex(mode, count, type, indices, basevertex); } - /// Forwards to the native C API void glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawRangeElementsBaseVertex(uint mode, uint start, uint end, int count, uint type, void* indices, int basevertex) { __context->glDrawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex); } - /// Forwards to the native C API void glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsInstancedBaseVertex(uint mode, int count, uint type, void* indices, int instancecount, int basevertex) { __context->glDrawElementsInstancedBaseVertex(mode, count, type, indices, instancecount, basevertex); } - /// Forwards to the native C API void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawElementsBaseVertex(uint mode, int* count, uint type, void** indices, int drawcount, int* basevertex) { __context->glMultiDrawElementsBaseVertex(mode, count, type, indices, drawcount, basevertex); } - /// Forwards to the native C API void glProvokingVertex(GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProvokingVertex(GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProvokingVertex(uint mode) { __context->glProvokingVertex(mode); } - /// Forwards to the native C API GLsync glFenceSync(GLenum condition, GLbitfield flags);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLsync glFenceSync(GLenum condition, GLbitfield flags); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void* FenceSync(uint condition, uint flags) { return __context->glFenceSync(condition, flags); } - /// Forwards to the native C API GLboolean glIsSync(GLsync sync);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsSync(GLsync sync); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsSync(void* sync) { return __context->glIsSync(sync); } - /// Forwards to the native C API void glDeleteSync(GLsync sync);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteSync(GLsync sync); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteSync(void* sync) { __context->glDeleteSync(sync); } - /// Forwards to the native C API GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint ClientWaitSync(void* sync, uint flags, ulong timeout) { return __context->glClientWaitSync(sync, flags, timeout); } - /// Forwards to the native C API void glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void WaitSync(void* sync, uint flags, ulong timeout) { __context->glWaitSync(sync, flags, timeout); } - /// Forwards to the native C API void glGetInteger64v(GLenum pname, GLint64 *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetInteger64v(GLenum pname, GLint64 *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint pname, Span values) { @@ -2373,16 +3225,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetSynciv(GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetSynciv(GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetSynciv(void* sync, uint pname, int count, int* length, int* values) { __context->glGetSynciv(sync, pname, count, length, values); } - /// Forwards to the native C API void glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint target, uint index, Span values) { @@ -2392,48 +3250,66 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetBufferParameter(uint target, uint pname, long* @params) { __context->glGetBufferParameteri64v(target, pname, @params); } - /// Forwards to the native C API void glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferTexture(uint target, uint attachment, GlHandle texture, int level) { __context->glFramebufferTexture(target, attachment, texture.Value, level); } - /// Forwards to the native C API void glTexImage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexImage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexImage2DMultisample(uint target, int samples, uint internalFormat, int width, int height, byte fixedsamplelocations) { __context->glTexImage2DMultisample(target, samples, internalFormat, width, height, fixedsamplelocations); } - /// Forwards to the native C API void glTexImage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexImage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexImage3DMultisample(uint target, int samples, uint internalFormat, int width, int height, int depth, byte fixedsamplelocations) { __context->glTexImage3DMultisample(target, samples, internalFormat, width, height, depth, fixedsamplelocations); } - /// Forwards to the native C API void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetMultisamplefv(uint pname, uint index, float* val) { __context->glGetMultisamplefv(pname, index, val); } - /// Forwards to the native C API void glSampleMaski(GLuint maskNumber, GLbitfield mask);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSampleMaski(GLuint maskNumber, GLbitfield mask); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SampleMaski(uint maskNumber, uint mask) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v3_3.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v3_3.g.cs index abfa48c0..98ccebbc 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v3_3.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v3_3.g.cs @@ -13,24 +13,33 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindFragmentDataLocationIndexed(GlHandle program, uint colorNumber, uint index, byte* name) { __context->glBindFragDataLocationIndexed(program.Value, colorNumber, index, name); } - /// Forwards to the native C API GLint glGetFragDataIndex(GLuint program, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetFragDataIndex(GLuint program, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetFragmentDataIndex(GlHandle program, byte* name) { return __context->glGetFragDataIndex(program.Value, name); } - /// Forwards to the native C API void glGenSamplers(GLsizei count, GLuint *samplers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenSamplers(GLsizei count, GLuint *samplers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenSamplers(Span samplers) { @@ -40,8 +49,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glDeleteSamplers(GLsizei count, const GLuint *samplers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteSamplers(GLsizei count, const GLuint *samplers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteSamplers(ReadOnlySpan samplers) { @@ -51,160 +63,220 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsSampler(GLuint sampler);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsSampler(GLuint sampler); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsSampler(GlHandle sampler) { return __context->glIsSampler(sampler.Value); } - /// Forwards to the native C API void glBindSampler(GLuint unit, GLuint sampler);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindSampler(GLuint unit, GLuint sampler); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindSampler(uint unit, GlHandle sampler) { __context->glBindSampler(unit, sampler.Value); } - /// Forwards to the native C API void glSamplerParameteri(GLuint sampler, GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameteri(GLuint sampler, GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameter(GlHandle sampler, uint pname, int param) { __context->glSamplerParameteri(sampler.Value, pname, param); } - /// Forwards to the native C API void glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameter(GlHandle sampler, uint pname, int* param) { __context->glSamplerParameteriv(sampler.Value, pname, param); } - /// Forwards to the native C API void glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameter(GlHandle sampler, uint pname, float param) { __context->glSamplerParameterf(sampler.Value, pname, param); } - /// Forwards to the native C API void glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameter(GlHandle sampler, uint pname, float* param) { __context->glSamplerParameterfv(sampler.Value, pname, param); } - /// Forwards to the native C API void glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameterInteger(GlHandle sampler, uint pname, int* param) { __context->glSamplerParameterIiv(sampler.Value, pname, param); } - /// Forwards to the native C API void glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SamplerParameterInteger(GlHandle sampler, uint pname, uint* param) { __context->glSamplerParameterIuiv(sampler.Value, pname, param); } - /// Forwards to the native C API void glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetSamplerParameter(GlHandle sampler, uint pname, int* @params) { __context->glGetSamplerParameteriv(sampler.Value, pname, @params); } - /// Forwards to the native C API void glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetSamplerParameterInteger(GlHandle sampler, uint pname, int* @params) { __context->glGetSamplerParameterIiv(sampler.Value, pname, @params); } - /// Forwards to the native C API void glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetSamplerParameter(GlHandle sampler, uint pname, float* @params) { __context->glGetSamplerParameterfv(sampler.Value, pname, @params); } - /// Forwards to the native C API void glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetSamplerParameterInteger(GlHandle sampler, uint pname, uint* @params) { __context->glGetSamplerParameterIuiv(sampler.Value, pname, @params); } - /// Forwards to the native C API void glQueryCounter(GLuint id, GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glQueryCounter(GLuint id, GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void QueryCounter(GlHandle id, uint target) { __context->glQueryCounter(id.Value, target); } - /// Forwards to the native C API void glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryObject(GlHandle id, uint pname, long* @params) { __context->glGetQueryObjecti64v(id.Value, pname, @params); } - /// Forwards to the native C API void glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryObject(GlHandle id, uint pname, ulong* @params) { __context->glGetQueryObjectui64v(id.Value, pname, @params); } - /// Forwards to the native C API void glVertexAttribDivisor(GLuint index, GLuint divisor);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribDivisor(GLuint index, GLuint divisor); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDivisor(uint index, uint divisor) { __context->glVertexAttribDivisor(index, divisor); } - /// Forwards to the native C API void glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributePacked1(uint index, uint type, byte normalized, uint value) { __context->glVertexAttribP1ui(index, type, normalized, value); } - /// Forwards to the native C API void glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributePacked2(uint index, uint type, byte normalized, uint value) { __context->glVertexAttribP2ui(index, type, normalized, value); } - /// Forwards to the native C API void glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributePacked3(uint index, uint type, byte normalized, uint value) { __context->glVertexAttribP3ui(index, type, normalized, value); } - /// Forwards to the native C API void glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributePacked4(uint index, uint type, byte normalized, uint value) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_0.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_0.g.cs index efb8e545..6819fd5d 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_0.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_0.g.cs @@ -13,120 +13,165 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glMinSampleShading(GLfloat value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMinSampleShading(GLfloat value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MinSampleShading(float value) { __context->glMinSampleShading(value); } - /// Forwards to the native C API void glBlendEquationi(GLuint buf, GLenum mode);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendEquationi(GLuint buf, GLenum mode); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendEquationi(uint buf, uint mode) { __context->glBlendEquationi(buf, mode); } - /// Forwards to the native C API void glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendEquationSeparatei(uint buf, uint modeRGB, uint modeAlpha) { __context->glBlendEquationSeparatei(buf, modeRGB, modeAlpha); } - /// Forwards to the native C API void glBlendFunci(GLuint buf, GLenum src, GLenum dst);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendFunci(GLuint buf, GLenum src, GLenum dst); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendFunci(uint buf, uint src, uint dst) { __context->glBlendFunci(buf, src, dst); } - /// Forwards to the native C API void glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlendFuncSeparatei(uint buf, uint srcRGB, uint dstRGB, uint srcAlpha, uint dstAlpha) { __context->glBlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); } - /// Forwards to the native C API void glDrawArraysIndirect(GLenum mode, const void *indirect);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawArraysIndirect(GLenum mode, const void *indirect); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawArraysIndirect(uint mode, void* indirect) { __context->glDrawArraysIndirect(mode, indirect); } - /// Forwards to the native C API void glDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsIndirect(uint mode, uint type, void* indirect) { __context->glDrawElementsIndirect(mode, type, indirect); } - /// Forwards to the native C API void glUniform1d(GLint location, GLdouble x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1d(GLint location, GLdouble x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, double x) { __context->glUniform1d(location, x); } - /// Forwards to the native C API void glUniform2d(GLint location, GLdouble x, GLdouble y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2d(GLint location, GLdouble x, GLdouble y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, double x, double y) { __context->glUniform2d(location, x, y); } - /// Forwards to the native C API void glUniform2d(GLint location, GLdouble x, GLdouble y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform2d(GLint location, GLdouble x, GLdouble y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec2 value) { __context->glUniform2d(location, value.X, value.Y); } - /// Forwards to the native C API void glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, double x, double y, double z) { __context->glUniform3d(location, x, y, z); } - /// Forwards to the native C API void glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec3 value) { __context->glUniform3d(location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, double x, double y, double z, double w) { __context->glUniform4d(location, x, y, z, w); } - /// Forwards to the native C API void glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, Vec4 value) { __context->glUniform4d(location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glUniform1dv(GLint location, GLsizei count, const GLdouble *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform1dv(GLint location, GLsizei count, const GLdouble *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan values) { @@ -136,8 +181,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glUniform4dv(GLint location, GLsizei count, const GLdouble *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniform4dv(GLint location, GLsizei count, const GLdouble *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Uniform(int location, ReadOnlySpan> values) { @@ -147,104 +195,143 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetUniformdv(GLuint program, GLint location, GLdouble *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformdv(GLuint program, GLint location, GLdouble *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, double* @params) { __context->glGetUniformdv(program.Value, location, @params); } - /// Forwards to the native C API GLint glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetSubroutineUniformLocation(GlHandle program, uint shadertype, byte* name) { return __context->glGetSubroutineUniformLocation(program.Value, shadertype, name); } - /// Forwards to the native C API GLuint glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetSubroutineIndex(GlHandle program, uint shadertype, byte* name) { return __context->glGetSubroutineIndex(program.Value, shadertype, name); } - /// Forwards to the native C API void glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveSubroutineUniformiv(GlHandle program, uint shadertype, uint index, uint pname, int* values) { __context->glGetActiveSubroutineUniformiv(program.Value, shadertype, index, pname, values); } - /// Forwards to the native C API void glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveSubroutineUniformName(GlHandle program, uint shadertype, uint index, int bufSize, int* length, byte* name) { __context->glGetActiveSubroutineUniformName(program.Value, shadertype, index, bufSize, length, name); } - /// Forwards to the native C API void glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveSubroutineName(GlHandle program, uint shadertype, uint index, int bufSize, int* length, byte* name) { __context->glGetActiveSubroutineName(program.Value, shadertype, index, bufSize, length, name); } - /// Forwards to the native C API void glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint *indices);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint *indices); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void UniformSubroutinesuiv(uint shadertype, int count, uint* indices) { __context->glUniformSubroutinesuiv(shadertype, count, indices); } - /// Forwards to the native C API void glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniformSubroutineuiv(uint shadertype, int location, uint* @params) { __context->glGetUniformSubroutineuiv(shadertype, location, @params); } - /// Forwards to the native C API void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramStageiv(GlHandle program, uint shadertype, uint pname, int* values) { __context->glGetProgramStageiv(program.Value, shadertype, pname, values); } - /// Forwards to the native C API void glPatchParameteri(GLenum pname, GLint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPatchParameteri(GLenum pname, GLint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PatchParameter(uint pname, int value) { __context->glPatchParameteri(pname, value); } - /// Forwards to the native C API void glPatchParameterfv(GLenum pname, const GLfloat *values);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPatchParameterfv(GLenum pname, const GLfloat *values); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PatchParameter(uint pname, float* values) { __context->glPatchParameterfv(pname, values); } - /// Forwards to the native C API void glBindTransformFeedback(GLenum target, GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindTransformFeedback(GLenum target, GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindTransformFeedback(uint target, GlHandle id) { __context->glBindTransformFeedback(target, id.Value); } - /// Forwards to the native C API void glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteTransformFeedbacks(ReadOnlySpan ids) { @@ -254,8 +341,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenTransformFeedbacks(GLsizei n, GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenTransformFeedbacks(GLsizei n, GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenTransformFeedbacks(Span ids) { @@ -265,64 +355,88 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsTransformFeedback(GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsTransformFeedback(GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsTransformFeedback(GlHandle id) { return __context->glIsTransformFeedback(id.Value); } - /// Forwards to the native C API void glPauseTransformFeedback();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPauseTransformFeedback(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PauseTransformFeedback() { __context->glPauseTransformFeedback(); } - /// Forwards to the native C API void glResumeTransformFeedback();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glResumeTransformFeedback(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ResumeTransformFeedback() { __context->glResumeTransformFeedback(); } - /// Forwards to the native C API void glDrawTransformFeedback(GLenum mode, GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawTransformFeedback(GLenum mode, GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawTransformFeedback(uint mode, GlHandle id) { __context->glDrawTransformFeedback(mode, id.Value); } - /// Forwards to the native C API void glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawTransformFeedbackStream(uint mode, GlHandle id, uint stream) { __context->glDrawTransformFeedbackStream(mode, id.Value, stream); } - /// Forwards to the native C API void glBeginQueryIndexed(GLenum target, GLuint index, GLuint id);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBeginQueryIndexed(GLenum target, GLuint index, GLuint id); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BeginQueryIndexed(uint target, uint index, GlHandle id) { __context->glBeginQueryIndexed(target, index, id.Value); } - /// Forwards to the native C API void glEndQueryIndexed(GLenum target, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEndQueryIndexed(GLenum target, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EndQueryIndexed(uint target, uint index) { __context->glEndQueryIndexed(target, index); } - /// Forwards to the native C API void glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryIndexediv(uint target, uint index, uint pname, int* @params) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_1.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_1.g.cs index 53c40335..cf034d87 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_1.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_1.g.cs @@ -13,16 +13,22 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glReleaseShaderCompiler();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glReleaseShaderCompiler(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ReleaseShaderCompiler() { __context->glReleaseShaderCompiler(); } - /// Forwards to the native C API void glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ShaderBinary(ReadOnlySpan shaders, uint binaryFormat, void* binary, int length) { @@ -32,88 +38,121 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetShaderPrecisionFormat(uint shadertype, uint precisiontype, int* range, int* precision) { __context->glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision); } - /// Forwards to the native C API void glDepthRangef(GLfloat n, GLfloat f);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthRangef(GLfloat n, GLfloat f); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthRangef(float n, float f) { __context->glDepthRangef(n, f); } - /// Forwards to the native C API void glClearDepthf(GLfloat d);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearDepthf(GLfloat d); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearDepthf(float d) { __context->glClearDepthf(d); } - /// Forwards to the native C API void glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramBinary(GlHandle program, int bufSize, int* length, uint* binaryFormat, void* binary) { __context->glGetProgramBinary(program.Value, bufSize, length, binaryFormat, binary); } - /// Forwards to the native C API void glProgramBinary(GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramBinary(GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramBinary(GlHandle program, uint binaryFormat, void* binary, int length) { __context->glProgramBinary(program.Value, binaryFormat, binary, length); } - /// Forwards to the native C API void glProgramParameteri(GLuint program, GLenum pname, GLint value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramParameteri(GLuint program, GLenum pname, GLint value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramParameteri(GlHandle program, uint pname, int value) { __context->glProgramParameteri(program.Value, pname, value); } - /// Forwards to the native C API void glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void UseProgramStages(GlHandle pipeline, uint stages, GlHandle program) { __context->glUseProgramStages(pipeline.Value, stages, program.Value); } - /// Forwards to the native C API void glActiveShaderProgram(GLuint pipeline, GLuint program);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glActiveShaderProgram(GLuint pipeline, GLuint program); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ActiveShaderProgram(GlHandle pipeline, GlHandle program) { __context->glActiveShaderProgram(pipeline.Value, program.Value); } - /// Forwards to the native C API GLuint glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const*strings);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const*strings); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public GlHandle CreateShaderProgramv(uint type, int count, byte** strings) { return GlHandle.Create(__context->glCreateShaderProgramv(type, count, strings)); } - /// Forwards to the native C API void glBindProgramPipeline(GLuint pipeline);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindProgramPipeline(GLuint pipeline); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindProgramPipeline(GlHandle pipeline) { __context->glBindProgramPipeline(pipeline.Value); } - /// Forwards to the native C API void glDeleteProgramPipelines(GLsizei n, const GLuint *pipelines);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDeleteProgramPipelines(GLsizei n, const GLuint *pipelines); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DeleteProgramPipelines(ReadOnlySpan pipelines) { @@ -123,8 +162,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGenProgramPipelines(GLsizei n, GLuint *pipelines);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenProgramPipelines(GLsizei n, GLuint *pipelines); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenProgramPipelines(Span pipelines) { @@ -134,32 +176,44 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API GLboolean glIsProgramPipeline(GLuint pipeline);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glIsProgramPipeline(GLuint pipeline); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte IsProgramPipeline(GlHandle pipeline) { return __context->glIsProgramPipeline(pipeline.Value); } - /// Forwards to the native C API void glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramPipelineiv(GlHandle pipeline, uint pname, int* @params) { __context->glGetProgramPipelineiv(pipeline.Value, pname, @params); } - /// Forwards to the native C API void glProgramUniform1i(GLuint program, GLint location, GLint v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1i(GLuint program, GLint location, GLint v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, int v0) { __context->glProgramUniform1i(program.Value, location, v0); } - /// Forwards to the native C API void glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan values) { @@ -169,16 +223,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform1f(GLuint program, GLint location, GLfloat v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1f(GLuint program, GLint location, GLfloat v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, float v0) { __context->glProgramUniform1f(program.Value, location, v0); } - /// Forwards to the native C API void glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan values) { @@ -188,16 +248,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform1d(GLuint program, GLint location, GLdouble v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1d(GLuint program, GLint location, GLdouble v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, double v0) { __context->glProgramUniform1d(program.Value, location, v0); } - /// Forwards to the native C API void glProgramUniform1dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1dv(GLuint program, GLint location, GLsizei count, const GLdouble *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan values) { @@ -207,16 +273,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform1ui(GLuint program, GLint location, GLuint v0);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1ui(GLuint program, GLint location, GLuint v0); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, uint v0) { __context->glProgramUniform1ui(program.Value, location, v0); } - /// Forwards to the native C API void glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan values) { @@ -226,152 +298,209 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, int v0, int v1) { __context->glProgramUniform2i(program.Value, location, v0, v1); } - /// Forwards to the native C API void glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec2 value) { __context->glProgramUniform2i(program.Value, location, value.X, value.Y); } - /// Forwards to the native C API void glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, float v0, float v1) { __context->glProgramUniform2f(program.Value, location, v0, v1); } - /// Forwards to the native C API void glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec2 value) { __context->glProgramUniform2f(program.Value, location, value.X, value.Y); } - /// Forwards to the native C API void glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, double v0, double v1) { __context->glProgramUniform2d(program.Value, location, v0, v1); } - /// Forwards to the native C API void glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec2 value) { __context->glProgramUniform2d(program.Value, location, value.X, value.Y); } - /// Forwards to the native C API void glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, uint v0, uint v1) { __context->glProgramUniform2ui(program.Value, location, v0, v1); } - /// Forwards to the native C API void glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec2 value) { __context->glProgramUniform2ui(program.Value, location, value.X, value.Y); } - /// Forwards to the native C API void glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, int v0, int v1, int v2) { __context->glProgramUniform3i(program.Value, location, v0, v1, v2); } - /// Forwards to the native C API void glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec3 value) { __context->glProgramUniform3i(program.Value, location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, float v0, float v1, float v2) { __context->glProgramUniform3f(program.Value, location, v0, v1, v2); } - /// Forwards to the native C API void glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec3 value) { __context->glProgramUniform3f(program.Value, location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, double v0, double v1, double v2) { __context->glProgramUniform3d(program.Value, location, v0, v1, v2); } - /// Forwards to the native C API void glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec3 value) { __context->glProgramUniform3d(program.Value, location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, uint v0, uint v1, uint v2) { __context->glProgramUniform3ui(program.Value, location, v0, v1, v2); } - /// Forwards to the native C API void glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec3 value) { __context->glProgramUniform3ui(program.Value, location, value.X, value.Y, value.Z); } - /// Forwards to the native C API void glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, int v0, int v1, int v2, int v3) { __context->glProgramUniform4i(program.Value, location, v0, v1, v2, v3); } - /// Forwards to the native C API void glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec4 value) { __context->glProgramUniform4i(program.Value, location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan> values) { @@ -381,24 +510,33 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, float v0, float v1, float v2, float v3) { __context->glProgramUniform4f(program.Value, location, v0, v1, v2, v3); } - /// Forwards to the native C API void glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec4 value) { __context->glProgramUniform4f(program.Value, location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan> values) { @@ -408,24 +546,33 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, double v0, double v1, double v2, double v3) { __context->glProgramUniform4d(program.Value, location, v0, v1, v2, v3); } - /// Forwards to the native C API void glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec4 value) { __context->glProgramUniform4d(program.Value, location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glProgramUniform4dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4dv(GLuint program, GLint location, GLsizei count, const GLdouble *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan> values) { @@ -435,24 +582,33 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, uint v0, uint v1, uint v2, uint v3) { __context->glProgramUniform4ui(program.Value, location, v0, v1, v2, v3); } - /// Forwards to the native C API void glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, Vec4 value) { __context->glProgramUniform4ui(program.Value, location, value.X, value.Y, value.Z, value.W); } - /// Forwards to the native C API void glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, ReadOnlySpan> values) { @@ -462,16 +618,22 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, bool transpose, GraphicsMatrix value) { __context->glProgramUniformMatrix4fv(program.Value, location, 1, transpose ? (byte)1 : (byte)0, (float*)&value); } - /// Forwards to the native C API void glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ProgramUniform(GlHandle program, int location, bool transpose, ReadOnlySpan values) { @@ -481,136 +643,187 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glValidateProgramPipeline(GLuint pipeline);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glValidateProgramPipeline(GLuint pipeline); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ValidateProgramPipeline(GlHandle pipeline) { __context->glValidateProgramPipeline(pipeline.Value); } - /// Forwards to the native C API void glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramPipelineInfoLog(GlHandle pipeline, int bufSize, int* length, byte* infoLog) { __context->glGetProgramPipelineInfoLog(pipeline.Value, bufSize, length, infoLog); } - /// Forwards to the native C API void glVertexAttribL1d(GLuint index, GLdouble x);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribL1d(GLuint index, GLdouble x); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDouble(uint index, double x) { __context->glVertexAttribL1d(index, x); } - /// Forwards to the native C API void glVertexAttribL2d(GLuint index, GLdouble x, GLdouble y);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribL2d(GLuint index, GLdouble x, GLdouble y); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDouble(uint index, double x, double y) { __context->glVertexAttribL2d(index, x, y); } - /// Forwards to the native C API void glVertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDouble(uint index, double x, double y, double z) { __context->glVertexAttribL3d(index, x, y, z); } - /// Forwards to the native C API void glVertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDouble(uint index, double x, double y, double z, double w) { __context->glVertexAttribL4d(index, x, y, z, w); } - /// Forwards to the native C API void glVertexAttribLPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribLPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDoublePointer(uint index, int size, uint type, int stride, void* pointer) { __context->glVertexAttribLPointer(index, size, type, stride, pointer); } - /// Forwards to the native C API void glGetVertexAttribLdv(GLuint index, GLenum pname, GLdouble *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexAttribLdv(GLuint index, GLenum pname, GLdouble *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexAttributeDouble(uint index, uint pname, double* @params) { __context->glGetVertexAttribLdv(index, pname, @params); } - /// Forwards to the native C API void glViewportArrayv(GLuint first, GLsizei count, const GLfloat *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glViewportArrayv(GLuint first, GLsizei count, const GLfloat *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ViewportArrayv(uint first, int count, float* v) { __context->glViewportArrayv(first, count, v); } - /// Forwards to the native C API void glViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ViewportIndexed(uint index, float x, float y, float w, float h) { __context->glViewportIndexedf(index, x, y, w, h); } - /// Forwards to the native C API void glViewportIndexedfv(GLuint index, const GLfloat *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glViewportIndexedfv(GLuint index, const GLfloat *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ViewportIndexed(uint index, float* v) { __context->glViewportIndexedfv(index, v); } - /// Forwards to the native C API void glScissorArrayv(GLuint first, GLsizei count, const GLint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glScissorArrayv(GLuint first, GLsizei count, const GLint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ScissorArrayv(uint first, int count, int* v) { __context->glScissorArrayv(first, count, v); } - /// Forwards to the native C API void glScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ScissorIndexed(uint index, int left, int bottom, int width, int height) { __context->glScissorIndexed(index, left, bottom, width, height); } - /// Forwards to the native C API void glScissorIndexedv(GLuint index, const GLint *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glScissorIndexedv(GLuint index, const GLint *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ScissorIndexed(uint index, int* v) { __context->glScissorIndexedv(index, v); } - /// Forwards to the native C API void glDepthRangeArrayv(GLuint first, GLsizei count, const GLdouble *v);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthRangeArrayv(GLuint first, GLsizei count, const GLdouble *v); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthRangeArrayv(uint first, int count, double* v) { __context->glDepthRangeArrayv(first, count, v); } - /// Forwards to the native C API void glDepthRangeIndexed(GLuint index, GLdouble n, GLdouble f);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDepthRangeIndexed(GLuint index, GLdouble n, GLdouble f); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DepthRangeIndexed(uint index, double n, double f) { __context->glDepthRangeIndexed(index, n, f); } - /// Forwards to the native C API void glGetFloati_v(GLenum target, GLuint index, GLfloat *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetFloati_v(GLenum target, GLuint index, GLfloat *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint target, uint index, Span values) { @@ -620,8 +833,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetDoublei_v(GLenum target, GLuint index, GLdouble *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetDoublei_v(GLenum target, GLuint index, GLdouble *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetValue(uint target, uint index, Span values) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_2.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_2.g.cs index e544425c..272c9a6d 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_2.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_2.g.cs @@ -13,96 +13,132 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glDrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawArraysInstancedBaseInstance(uint mode, int first, int count, int instancecount, uint baseinstance) { __context->glDrawArraysInstancedBaseInstance(mode, first, count, instancecount, baseinstance); } - /// Forwards to the native C API void glDrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsInstancedBaseInstance(uint mode, int count, uint type, void* indices, int instancecount, uint baseinstance) { __context->glDrawElementsInstancedBaseInstance(mode, count, type, indices, instancecount, baseinstance); } - /// Forwards to the native C API void glDrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawElementsInstancedBaseVertexBaseInstance(uint mode, int count, uint type, void* indices, int instancecount, int basevertex, uint baseinstance) { __context->glDrawElementsInstancedBaseVertexBaseInstance(mode, count, type, indices, instancecount, basevertex, baseinstance); } - /// Forwards to the native C API void glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetInternalFormat(uint target, uint internalFormat, uint pname, int count, int* @params) { __context->glGetInternalformativ(target, internalFormat, pname, count, @params); } - /// Forwards to the native C API void glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetActiveAtomicCounterBufferiv(GlHandle program, uint bufferIndex, uint pname, int* @params) { __context->glGetActiveAtomicCounterBufferiv(program.Value, bufferIndex, pname, @params); } - /// Forwards to the native C API void glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindImageTexture(uint unit, GlHandle texture, int level, byte layered, int layer, uint access, uint format) { __context->glBindImageTexture(unit, texture.Value, level, layered, layer, access, format); } - /// Forwards to the native C API void glMemoryBarrier(GLbitfield barriers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMemoryBarrier(GLbitfield barriers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MemoryBarrier(uint barriers) { __context->glMemoryBarrier(barriers); } - /// Forwards to the native C API void glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexStorage1D(uint target, int levels, uint internalFormat, int width) { __context->glTexStorage1D(target, levels, internalFormat, width); } - /// Forwards to the native C API void glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexStorage2D(uint target, int levels, uint internalFormat, int width, int height) { __context->glTexStorage2D(target, levels, internalFormat, width, height); } - /// Forwards to the native C API void glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexStorage3D(uint target, int levels, uint internalFormat, int width, int height, int depth) { __context->glTexStorage3D(target, levels, internalFormat, width, height, depth); } - /// Forwards to the native C API void glDrawTransformFeedbackInstanced(GLenum mode, GLuint id, GLsizei instancecount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawTransformFeedbackInstanced(GLenum mode, GLuint id, GLsizei instancecount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawTransformFeedbackInstanced(uint mode, GlHandle id, int instancecount) { __context->glDrawTransformFeedbackInstanced(mode, id.Value, instancecount); } - /// Forwards to the native C API void glDrawTransformFeedbackStreamInstanced(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDrawTransformFeedbackStreamInstanced(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DrawTransformFeedbackStreamInstanced(uint mode, GlHandle id, uint stream, int instancecount) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_3.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_3.g.cs index 8db605be..7d0dc50b 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_3.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_3.g.cs @@ -13,344 +13,473 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBufferData(uint target, uint internalFormat, uint format, uint type, void* data) { __context->glClearBufferData(target, internalFormat, format, type, data); } - /// Forwards to the native C API void glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearBufferSubData(uint target, uint internalFormat, nint offset, nint size, uint format, uint type, void* data) { __context->glClearBufferSubData(target, internalFormat, offset, size, format, type, data); } - /// Forwards to the native C API void glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DispatchCompute(uint num_groups_x, uint num_groups_y, uint num_groups_z) { __context->glDispatchCompute(num_groups_x, num_groups_y, num_groups_z); } - /// Forwards to the native C API void glDispatchComputeIndirect(GLintptr indirect);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDispatchComputeIndirect(GLintptr indirect); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DispatchComputeIndirect(nint indirect) { __context->glDispatchComputeIndirect(indirect); } - /// Forwards to the native C API void glCopyImageSubData(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);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyImageSubData(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); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyImageSubData(uint srcName, uint srcTarget, int srcLevel, int srcX, int srcY, int srcZ, uint dstName, uint dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth) { __context->glCopyImageSubData(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); } - /// Forwards to the native C API void glFramebufferParameteri(GLenum target, GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFramebufferParameteri(GLenum target, GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FrameBufferParameteri(uint target, uint pname, int param) { __context->glFramebufferParameteri(target, pname, param); } - /// Forwards to the native C API void glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetFrameBufferParameteriv(uint target, uint pname, int* @params) { __context->glGetFramebufferParameteriv(target, pname, @params); } - /// Forwards to the native C API void glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetInternalFormat(uint target, uint internalFormat, uint pname, int count, long* @params) { __context->glGetInternalformati64v(target, internalFormat, pname, count, @params); } - /// Forwards to the native C API void glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateTexSubImage(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth) { __context->glInvalidateTexSubImage(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth); } - /// Forwards to the native C API void glInvalidateTexImage(GLuint texture, GLint level);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateTexImage(GLuint texture, GLint level); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateTexImage(GlHandle texture, int level) { __context->glInvalidateTexImage(texture.Value, level); } - /// Forwards to the native C API void glInvalidateBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateBufferSubData(GlHandle buffer, nint offset, nint length) { __context->glInvalidateBufferSubData(buffer.Value, offset, length); } - /// Forwards to the native C API void glInvalidateBufferData(GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateBufferData(GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateBufferData(GlHandle buffer) { __context->glInvalidateBufferData(buffer.Value); } - /// Forwards to the native C API void glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateFrameBuffer(uint target, int numAttachments, uint* attachments) { __context->glInvalidateFramebuffer(target, numAttachments, attachments); } - /// Forwards to the native C API void glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateSubFrameBuffer(uint target, int numAttachments, uint* attachments, int x, int y, int width, int height) { __context->glInvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height); } - /// Forwards to the native C API void glMultiDrawArraysIndirect(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawArraysIndirect(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawArraysIndirect(uint mode, void* indirect, int drawcount, int stride) { __context->glMultiDrawArraysIndirect(mode, indirect, drawcount, stride); } - /// Forwards to the native C API void glMultiDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawElementsIndirect(uint mode, uint type, void* indirect, int drawcount, int stride) { __context->glMultiDrawElementsIndirect(mode, type, indirect, drawcount, stride); } - /// Forwards to the native C API void glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramInterfaceiv(GlHandle program, uint programInterface, uint pname, int* @params) { __context->glGetProgramInterfaceiv(program.Value, programInterface, pname, @params); } - /// Forwards to the native C API GLuint glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetProgramResourceIndex(GlHandle program, uint programInterface, byte* name) { return __context->glGetProgramResourceIndex(program.Value, programInterface, name); } - /// Forwards to the native C API void glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramResourceName(GlHandle program, uint programInterface, uint index, int bufSize, int* length, byte* name) { __context->glGetProgramResourceName(program.Value, programInterface, index, bufSize, length, name); } - /// Forwards to the native C API void glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetProgramResourceiv(GlHandle program, uint programInterface, uint index, int propCount, uint* props, int count, int* length, int* @params) { __context->glGetProgramResourceiv(program.Value, programInterface, index, propCount, props, count, length, @params); } - /// Forwards to the native C API GLint glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetProgramResourceLocation(GlHandle program, uint programInterface, byte* name) { return __context->glGetProgramResourceLocation(program.Value, programInterface, name); } - /// Forwards to the native C API GLint glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar *name);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLint glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar *name); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetProgramResourceLocationIndex(GlHandle program, uint programInterface, byte* name) { return __context->glGetProgramResourceLocationIndex(program.Value, programInterface, name); } - /// Forwards to the native C API void glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ShaderStorageBlockBinding(GlHandle program, uint storageBlockIndex, uint storageBlockBinding) { __context->glShaderStorageBlockBinding(program.Value, storageBlockIndex, storageBlockBinding); } - /// Forwards to the native C API void glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexBufferRange(uint target, uint internalFormat, GlHandle buffer, nint offset, nint size) { __context->glTexBufferRange(target, internalFormat, buffer.Value, offset, size); } - /// Forwards to the native C API void glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexStorage2DMultisample(uint target, int samples, uint internalFormat, int width, int height, byte fixedsamplelocations) { __context->glTexStorage2DMultisample(target, samples, internalFormat, width, height, fixedsamplelocations); } - /// Forwards to the native C API void glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TexStorage3DMultisample(uint target, int samples, uint internalFormat, int width, int height, int depth, byte fixedsamplelocations) { __context->glTexStorage3DMultisample(target, samples, internalFormat, width, height, depth, fixedsamplelocations); } - /// Forwards to the native C API void glTextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureView(GlHandle texture, uint target, GlHandle origtexture, uint internalFormat, uint minlevel, uint numlevels, uint minlayer, uint numlayers) { __context->glTextureView(texture.Value, target, origtexture.Value, internalFormat, minlevel, numlevels, minlayer, numlayers); } - /// Forwards to the native C API void glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindVertexBuffer(uint bindingIndex, GlHandle buffer, nint offset, int stride) { __context->glBindVertexBuffer(bindingIndex, buffer.Value, offset, stride); } - /// Forwards to the native C API void glVertexAttribFormat(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribFormat(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeFormat(uint attributeIndex, int size, uint type, byte normalized, uint relativeOffset) { __context->glVertexAttribFormat(attributeIndex, size, type, normalized, relativeOffset); } - /// Forwards to the native C API void glVertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeIntegerFormat(uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexAttribIFormat(attributeIndex, size, type, relativeOffset); } - /// Forwards to the native C API void glVertexAttribLFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribLFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeDoubleFormat(uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexAttribLFormat(attributeIndex, size, type, relativeOffset); } - /// Forwards to the native C API void glVertexAttribBinding(GLuint attribindex, GLuint bindingindex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexAttribBinding(GLuint attribindex, GLuint bindingindex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexAttributeBinding(uint attributeIndex, uint bindingIndex) { __context->glVertexAttribBinding(attributeIndex, bindingIndex); } - /// Forwards to the native C API void glVertexBindingDivisor(GLuint bindingindex, GLuint divisor);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexBindingDivisor(GLuint bindingindex, GLuint divisor); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexBindingDivisor(uint bindingIndex, uint divisor) { __context->glVertexBindingDivisor(bindingIndex, divisor); } - /// Forwards to the native C API void glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DebugMessageControl(uint source, uint type, uint severity, int count, uint* ids, byte enabled) { __context->glDebugMessageControl(source, type, severity, count, ids, enabled); } - /// Forwards to the native C API void glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DebugMessageInsert(uint source, uint type, uint id, uint severity, int length, byte* buf) { __context->glDebugMessageInsert(source, type, id, severity, length, buf); } - /// Forwards to the native C API void glDebugMessageCallback(GLDEBUGPROC callback, const void *userParam);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDebugMessageCallback(GLDEBUGPROC callback, const void *userParam); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DebugMessageCallback(delegate* unmanaged callback, void* userParam) { __context->glDebugMessageCallback(callback, userParam); } - /// Forwards to the native C API GLuint glGetDebugMessageLog(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLuint glGetDebugMessageLog(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetDebugMessageLog(uint count, int bufSize, uint* sources, uint* types, uint* ids, uint* severities, int* lengths, byte* messageLog) { return __context->glGetDebugMessageLog(count, bufSize, sources, types, ids, severities, lengths, messageLog); } - /// Forwards to the native C API void glPushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar *message);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar *message); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PushDebugGroup(uint source, uint id, int length, byte* message) { __context->glPushDebugGroup(source, id, length, message); } - /// Forwards to the native C API void glPopDebugGroup();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPopDebugGroup(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PopDebugGroup() { __context->glPopDebugGroup(); } - /// Forwards to the native C API void glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const GLchar *label);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const GLchar *label); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ObjectLabel(uint identifier, uint name, int length, byte* label) { __context->glObjectLabel(identifier, name, length, label); } - /// Forwards to the native C API void glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetObjectLabel(uint identifier, uint name, int bufSize, int* length, byte* label) { __context->glGetObjectLabel(identifier, name, bufSize, length, label); } - /// Forwards to the native C API void glObjectPtrLabel(const void *ptr, GLsizei length, const GLchar *label);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glObjectPtrLabel(const void *ptr, GLsizei length, const GLchar *label); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ObjectPtrLabel(void* ptr, int length, byte* label) { __context->glObjectPtrLabel(ptr, length, label); } - /// Forwards to the native C API void glGetObjectPtrLabel(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetObjectPtrLabel(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetObjectPtrLabel(void* ptr, int bufSize, int* length, byte* label) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_4.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_4.g.cs index be255f00..b4084002 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_4.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_4.g.cs @@ -13,32 +13,44 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glBufferStorage(GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBufferStorage(GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BufferStorage(uint target, nint size, void* data, uint flags) { __context->glBufferStorage(target, size, data, flags); } - /// Forwards to the native C API void glClearTexImage(GLuint texture, GLint level, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearTexImage(GLuint texture, GLint level, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearTexImage(GlHandle texture, int level, uint format, uint type, void* data) { __context->glClearTexImage(texture.Value, level, format, type, data); } - /// Forwards to the native C API void glClearTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearTexSubImage(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, void* data) { __context->glClearTexSubImage(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); } - /// Forwards to the native C API void glBindBuffersBase(GLenum target, GLuint first, GLsizei count, const GLuint *buffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindBuffersBase(GLenum target, GLuint first, GLsizei count, const GLuint *buffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindBuffersBase(uint target, uint first, ReadOnlySpan buffers) { @@ -48,8 +60,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glBindBuffersRange(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindBuffersRange(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindBuffersRange(uint target, uint first, ReadOnlySpan buffers, nint* offsets, nint* sizes) { @@ -59,8 +74,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glBindTextures(GLuint first, GLsizei count, const GLuint *textures);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindTextures(GLuint first, GLsizei count, const GLuint *textures); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindTextures(uint first, ReadOnlySpan textures) { @@ -70,8 +88,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glBindSamplers(GLuint first, GLsizei count, const GLuint *samplers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindSamplers(GLuint first, GLsizei count, const GLuint *samplers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindSamplers(uint first, ReadOnlySpan samplers) { @@ -81,8 +102,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glBindImageTextures(GLuint first, GLsizei count, const GLuint *textures);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindImageTextures(GLuint first, GLsizei count, const GLuint *textures); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindImageTextures(uint first, ReadOnlySpan textures) { @@ -92,8 +116,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glBindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindVertexBuffers(uint first, ReadOnlySpan buffers, nint* offsets, int* strides) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_5.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_5.g.cs index 9903feea..f63cfc02 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_5.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_5.g.cs @@ -13,16 +13,22 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glClipControl(GLenum origin, GLenum depth);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClipControl(GLenum origin, GLenum depth); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClipControl(uint origin, uint depth) { __context->glClipControl(origin, depth); } - /// Forwards to the native C API void glCreateTransformFeedbacks(GLsizei n, GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateTransformFeedbacks(GLsizei n, GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateTransformFeedbacks(Span ids) { @@ -32,48 +38,66 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glTransformFeedbackBufferBase(GLuint xfb, GLuint index, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTransformFeedbackBufferBase(GLuint xfb, GLuint index, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TransformFeedbackBufferBase(GlHandle xfb, uint index, GlHandle buffer) { __context->glTransformFeedbackBufferBase(xfb.Value, index, buffer.Value); } - /// Forwards to the native C API void glTransformFeedbackBufferRange(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTransformFeedbackBufferRange(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TransformFeedbackBufferRange(GlHandle xfb, uint index, GlHandle buffer, nint offset, nint size) { __context->glTransformFeedbackBufferRange(xfb.Value, index, buffer.Value, offset, size); } - /// Forwards to the native C API void glGetTransformFeedbackiv(GLuint xfb, GLenum pname, GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTransformFeedbackiv(GLuint xfb, GLenum pname, GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTransformFeedbackiv(GlHandle xfb, uint pname, int* param) { __context->glGetTransformFeedbackiv(xfb.Value, pname, param); } - /// Forwards to the native C API void glGetTransformFeedbacki_v(GLuint xfb, GLenum pname, GLuint index, GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTransformFeedbacki_v(GLuint xfb, GLenum pname, GLuint index, GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTransformFeedbacki_v(GlHandle xfb, uint pname, uint index, int* param) { __context->glGetTransformFeedbacki_v(xfb.Value, pname, index, param); } - /// Forwards to the native C API void glGetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, GLint64 *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, GLint64 *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTransformFeedbacki64_v(GlHandle xfb, uint pname, uint index, long* param) { __context->glGetTransformFeedbacki64_v(xfb.Value, pname, index, param); } - /// Forwards to the native C API void glCreateBuffers(GLsizei n, GLuint *buffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateBuffers(GLsizei n, GLuint *buffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateBuffers(Span buffers) { @@ -83,120 +107,165 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glNamedBufferStorage(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedBufferStorage(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedBufferStorage(GlHandle buffer, nint size, void* data, uint flags) { __context->glNamedBufferStorage(buffer.Value, size, data, flags); } - /// Forwards to the native C API void glNamedBufferData(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedBufferData(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedBufferData(GlHandle buffer, nint size, void* data, uint usage) { __context->glNamedBufferData(buffer.Value, size, data, usage); } - /// Forwards to the native C API void glNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedBufferSubData(GlHandle buffer, nint offset, nint size, void* data) { __context->glNamedBufferSubData(buffer.Value, offset, size, data); } - /// Forwards to the native C API void glCopyNamedBufferSubData(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyNamedBufferSubData(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyNamedBufferSubData(GlHandle readBuffer, GlHandle writeBuffer, nint readOffset, nint writeOffset, nint size) { __context->glCopyNamedBufferSubData(readBuffer.Value, writeBuffer.Value, readOffset, writeOffset, size); } - /// Forwards to the native C API void glClearNamedBufferData(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedBufferData(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedBufferData(GlHandle buffer, uint internalFormat, uint format, uint type, void* data) { __context->glClearNamedBufferData(buffer.Value, internalFormat, format, type, data); } - /// Forwards to the native C API void glClearNamedBufferSubData(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedBufferSubData(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedBufferSubData(GlHandle buffer, uint internalFormat, nint offset, nint size, uint format, uint type, void* data) { __context->glClearNamedBufferSubData(buffer.Value, internalFormat, offset, size, format, type, data); } - /// Forwards to the native C API void *glMapNamedBuffer(GLuint buffer, GLenum access);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void *glMapNamedBuffer(GLuint buffer, GLenum access); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void* MapNamedBuffer(GlHandle buffer, uint access) { return __context->glMapNamedBuffer(buffer.Value, access); } - /// Forwards to the native C API void *glMapNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void *glMapNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void* MapNamedBufferRange(GlHandle buffer, nint offset, nint length, uint access) { return __context->glMapNamedBufferRange(buffer.Value, offset, length, access); } - /// Forwards to the native C API GLboolean glUnmapNamedBuffer(GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLboolean glUnmapNamedBuffer(GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public byte UnmapNamedBuffer(GlHandle buffer) { return __context->glUnmapNamedBuffer(buffer.Value); } - /// Forwards to the native C API void glFlushMappedNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glFlushMappedNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void FlushMappedNamedBufferRange(GlHandle buffer, nint offset, nint length) { __context->glFlushMappedNamedBufferRange(buffer.Value, offset, length); } - /// Forwards to the native C API void glGetNamedBufferParameteriv(GLuint buffer, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedBufferParameteriv(GLuint buffer, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedBufferParameter(GlHandle buffer, uint pname, int* @params) { __context->glGetNamedBufferParameteriv(buffer.Value, pname, @params); } - /// Forwards to the native C API void glGetNamedBufferParameteri64v(GLuint buffer, GLenum pname, GLint64 *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedBufferParameteri64v(GLuint buffer, GLenum pname, GLint64 *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedBufferParameter(GlHandle buffer, uint pname, long* @params) { __context->glGetNamedBufferParameteri64v(buffer.Value, pname, @params); } - /// Forwards to the native C API void glGetNamedBufferPointerv(GLuint buffer, GLenum pname, void **params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedBufferPointerv(GLuint buffer, GLenum pname, void **params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedBufferPointerv(GlHandle buffer, uint pname, void** @params) { __context->glGetNamedBufferPointerv(buffer.Value, pname, @params); } - /// Forwards to the native C API void glGetNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedBufferSubData(GlHandle buffer, nint offset, nint size, void* data) { __context->glGetNamedBufferSubData(buffer.Value, offset, size, data); } - /// Forwards to the native C API void glCreateFramebuffers(GLsizei n, GLuint *framebuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateFramebuffers(GLsizei n, GLuint *framebuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateFrameBuffers(Span frameBuffers) { @@ -206,144 +275,198 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glNamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferRenderBuffer(GlHandle frameBuffer, uint attachment, uint renderBuffertarget, GlHandle renderBuffer) { __context->glNamedFramebufferRenderbuffer(frameBuffer.Value, attachment, renderBuffertarget, renderBuffer.Value); } - /// Forwards to the native C API void glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferParameteri(GlHandle frameBuffer, uint pname, int param) { __context->glNamedFramebufferParameteri(frameBuffer.Value, pname, param); } - /// Forwards to the native C API void glNamedFramebufferTexture(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferTexture(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferTexture(GlHandle frameBuffer, uint attachment, GlHandle texture, int level) { __context->glNamedFramebufferTexture(frameBuffer.Value, attachment, texture.Value, level); } - /// Forwards to the native C API void glNamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferTextureLayer(GlHandle frameBuffer, uint attachment, GlHandle texture, int level, int layer) { __context->glNamedFramebufferTextureLayer(frameBuffer.Value, attachment, texture.Value, level, layer); } - /// Forwards to the native C API void glNamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferDrawBuffer(GlHandle frameBuffer, uint buf) { __context->glNamedFramebufferDrawBuffer(frameBuffer.Value, buf); } - /// Forwards to the native C API void glNamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n, const GLenum *bufs);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n, const GLenum *bufs); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferDrawBuffers(GlHandle frameBuffer, int n, uint* bufs) { __context->glNamedFramebufferDrawBuffers(frameBuffer.Value, n, bufs); } - /// Forwards to the native C API void glNamedFramebufferReadBuffer(GLuint framebuffer, GLenum src);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedFramebufferReadBuffer(GLuint framebuffer, GLenum src); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedFrameBufferReadBuffer(GlHandle frameBuffer, uint src) { __context->glNamedFramebufferReadBuffer(frameBuffer.Value, src); } - /// Forwards to the native C API void glInvalidateNamedFramebufferData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateNamedFramebufferData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateNamedFrameBufferData(GlHandle frameBuffer, int numAttachments, uint* attachments) { __context->glInvalidateNamedFramebufferData(frameBuffer.Value, numAttachments, attachments); } - /// Forwards to the native C API void glInvalidateNamedFramebufferSubData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glInvalidateNamedFramebufferSubData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InvalidateNamedFrameBufferSubData(GlHandle frameBuffer, int numAttachments, uint* attachments, int x, int y, int width, int height) { __context->glInvalidateNamedFramebufferSubData(frameBuffer.Value, numAttachments, attachments, x, y, width, height); } - /// Forwards to the native C API void glClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, int* value) { __context->glClearNamedFramebufferiv(frameBuffer.Value, buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, uint* value) { __context->glClearNamedFramebufferuiv(frameBuffer.Value, buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, float* value) { __context->glClearNamedFramebufferfv(frameBuffer.Value, buffer, drawbuffer, value); } - /// Forwards to the native C API void glClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, float depth, int stencil) { __context->glClearNamedFramebufferfi(frameBuffer.Value, buffer, drawbuffer, depth, stencil); } - /// Forwards to the native C API void glBlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BlitNamedFrameBuffer(GlHandle readFrameBuffer, GlHandle drawFrameBuffer, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, uint mask, uint filter) { __context->glBlitNamedFramebuffer(readFrameBuffer.Value, drawFrameBuffer.Value, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); } - /// Forwards to the native C API GLenum glCheckNamedFramebufferStatus(GLuint framebuffer, GLenum target);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLenum glCheckNamedFramebufferStatus(GLuint framebuffer, GLenum target); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint CheckNamedFrameBufferStatus(GlHandle frameBuffer, uint target) { return __context->glCheckNamedFramebufferStatus(frameBuffer.Value, target); } - /// Forwards to the native C API void glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedFrameBufferParameteriv(GlHandle frameBuffer, uint pname, int* param) { __context->glGetNamedFramebufferParameteriv(frameBuffer.Value, pname, param); } - /// Forwards to the native C API void glGetNamedFramebufferAttachmentParameteriv(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedFramebufferAttachmentParameteriv(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedFrameBufferAttachmentParameteriv(GlHandle frameBuffer, uint attachment, uint pname, int* @params) { __context->glGetNamedFramebufferAttachmentParameteriv(frameBuffer.Value, attachment, pname, @params); } - /// Forwards to the native C API void glCreateRenderbuffers(GLsizei n, GLuint *renderbuffers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateRenderbuffers(GLsizei n, GLuint *renderbuffers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateRenderBuffers(Span renderBuffers) { @@ -353,32 +476,44 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glNamedRenderbufferStorage(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedRenderbufferStorage(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedRenderBufferStorage(GlHandle renderBuffer, uint internalFormat, int width, int height) { __context->glNamedRenderbufferStorage(renderBuffer.Value, internalFormat, width, height); } - /// Forwards to the native C API void glNamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glNamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedRenderBufferStorageMultisample(GlHandle renderBuffer, int samples, uint internalFormat, int width, int height) { __context->glNamedRenderbufferStorageMultisample(renderBuffer.Value, samples, internalFormat, width, height); } - /// Forwards to the native C API void glGetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedRenderBufferParameteriv(GlHandle renderBuffer, uint pname, int* @params) { __context->glGetNamedRenderbufferParameteriv(renderBuffer.Value, pname, @params); } - /// Forwards to the native C API void glCreateTextures(GLenum target, GLsizei n, GLuint *textures);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateTextures(GLenum target, GLsizei n, GLuint *textures); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateTextures(uint target, Span textures) { @@ -388,264 +523,363 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glTextureBuffer(GLuint texture, GLenum internalformat, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureBuffer(GLuint texture, GLenum internalformat, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureBuffer(GlHandle texture, uint internalFormat, GlHandle buffer) { __context->glTextureBuffer(texture.Value, internalFormat, buffer.Value); } - /// Forwards to the native C API void glTextureBufferRange(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureBufferRange(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureBufferRange(GlHandle texture, uint internalFormat, GlHandle buffer, nint offset, nint size) { __context->glTextureBufferRange(texture.Value, internalFormat, buffer.Value, offset, size); } - /// Forwards to the native C API void glTextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureStorage1D(GlHandle texture, int levels, uint internalFormat, int width) { __context->glTextureStorage1D(texture.Value, levels, internalFormat, width); } - /// Forwards to the native C API void glTextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureStorage2D(GlHandle texture, int levels, uint internalFormat, int width, int height) { __context->glTextureStorage2D(texture.Value, levels, internalFormat, width, height); } - /// Forwards to the native C API void glTextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureStorage3D(GlHandle texture, int levels, uint internalFormat, int width, int height, int depth) { __context->glTextureStorage3D(texture.Value, levels, internalFormat, width, height, depth); } - /// Forwards to the native C API void glTextureStorage2DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureStorage2DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureStorage2DMultisample(GlHandle texture, int samples, uint internalFormat, int width, int height, byte fixedsamplelocations) { __context->glTextureStorage2DMultisample(texture.Value, samples, internalFormat, width, height, fixedsamplelocations); } - /// Forwards to the native C API void glTextureStorage3DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureStorage3DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureStorage3DMultisample(GlHandle texture, int samples, uint internalFormat, int width, int height, int depth, byte fixedsamplelocations) { __context->glTextureStorage3DMultisample(texture.Value, samples, internalFormat, width, height, depth, fixedsamplelocations); } - /// Forwards to the native C API void glTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureSubImage1D(GlHandle texture, int level, int xoffset, int width, uint format, uint type, void* pixels) { __context->glTextureSubImage1D(texture.Value, level, xoffset, width, format, type, pixels); } - /// Forwards to the native C API void glTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureSubImage2D(GlHandle texture, int level, int xoffset, int yoffset, int width, int height, uint format, uint type, void* pixels) { __context->glTextureSubImage2D(texture.Value, level, xoffset, yoffset, width, height, format, type, pixels); } - /// Forwards to the native C API void glTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureSubImage3D(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, void* pixels) { __context->glTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); } - /// Forwards to the native C API void glCompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTextureSubImage1D(GlHandle texture, int level, int xoffset, int width, uint format, int imageSize, void* data) { __context->glCompressedTextureSubImage1D(texture.Value, level, xoffset, width, format, imageSize, data); } - /// Forwards to the native C API void glCompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTextureSubImage2D(GlHandle texture, int level, int xoffset, int yoffset, int width, int height, uint format, int imageSize, void* data) { __context->glCompressedTextureSubImage2D(texture.Value, level, xoffset, yoffset, width, height, format, imageSize, data); } - /// Forwards to the native C API void glCompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CompressedTextureSubImage3D(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, int imageSize, void* data) { __context->glCompressedTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); } - /// Forwards to the native C API void glCopyTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTextureSubImage1D(GlHandle texture, int level, int xoffset, int x, int y, int width) { __context->glCopyTextureSubImage1D(texture.Value, level, xoffset, x, y, width); } - /// Forwards to the native C API void glCopyTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTextureSubImage2D(GlHandle texture, int level, int xoffset, int yoffset, int x, int y, int width, int height) { __context->glCopyTextureSubImage2D(texture.Value, level, xoffset, yoffset, x, y, width, height); } - /// Forwards to the native C API void glCopyTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCopyTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CopyTextureSubImage3D(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { __context->glCopyTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, x, y, width, height); } - /// Forwards to the native C API void glTextureParameterf(GLuint texture, GLenum pname, GLfloat param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameterf(GLuint texture, GLenum pname, GLfloat param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameter(GlHandle texture, uint pname, float param) { __context->glTextureParameterf(texture.Value, pname, param); } - /// Forwards to the native C API void glTextureParameterfv(GLuint texture, GLenum pname, const GLfloat *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameterfv(GLuint texture, GLenum pname, const GLfloat *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameter(GlHandle texture, uint pname, float* param) { __context->glTextureParameterfv(texture.Value, pname, param); } - /// Forwards to the native C API void glTextureParameteri(GLuint texture, GLenum pname, GLint param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameteri(GLuint texture, GLenum pname, GLint param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameter(GlHandle texture, uint pname, int param) { __context->glTextureParameteri(texture.Value, pname, param); } - /// Forwards to the native C API void glTextureParameterIiv(GLuint texture, GLenum pname, const GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameterIiv(GLuint texture, GLenum pname, const GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameterInteger(GlHandle texture, uint pname, int* @params) { __context->glTextureParameterIiv(texture.Value, pname, @params); } - /// Forwards to the native C API void glTextureParameterIuiv(GLuint texture, GLenum pname, const GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameterIuiv(GLuint texture, GLenum pname, const GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameterInteger(GlHandle texture, uint pname, uint* @params) { __context->glTextureParameterIuiv(texture.Value, pname, @params); } - /// Forwards to the native C API void glTextureParameteriv(GLuint texture, GLenum pname, const GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureParameteriv(GLuint texture, GLenum pname, const GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void NamedTextureParameter(GlHandle texture, uint pname, int* param) { __context->glTextureParameteriv(texture.Value, pname, param); } - /// Forwards to the native C API void glGenerateTextureMipmap(GLuint texture);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGenerateTextureMipmap(GLuint texture); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GenerateTextureMipmap(GlHandle texture) { __context->glGenerateTextureMipmap(texture.Value); } - /// Forwards to the native C API void glBindTextureUnit(GLuint unit, GLuint texture);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glBindTextureUnit(GLuint unit, GLuint texture); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void BindTextureUnit(uint unit, GlHandle texture) { __context->glBindTextureUnit(unit, texture.Value); } - /// Forwards to the native C API void glGetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureImage(GlHandle texture, int level, uint format, uint type, int bufSize, void* pixels) { __context->glGetTextureImage(texture.Value, level, format, type, bufSize, pixels); } - /// Forwards to the native C API void glGetCompressedTextureImage(GLuint texture, GLint level, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetCompressedTextureImage(GLuint texture, GLint level, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetCompressedTextureImage(GlHandle texture, int level, int bufSize, void* pixels) { __context->glGetCompressedTextureImage(texture.Value, level, bufSize, pixels); } - /// Forwards to the native C API void glGetTextureLevelParameterfv(GLuint texture, GLint level, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureLevelParameterfv(GLuint texture, GLint level, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureLevelParameter(GlHandle texture, int level, uint pname, float* @params) { __context->glGetTextureLevelParameterfv(texture.Value, level, pname, @params); } - /// Forwards to the native C API void glGetTextureLevelParameteriv(GLuint texture, GLint level, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureLevelParameteriv(GLuint texture, GLint level, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureLevelParameter(GlHandle texture, int level, uint pname, int* @params) { __context->glGetTextureLevelParameteriv(texture.Value, level, pname, @params); } - /// Forwards to the native C API void glGetTextureParameterfv(GLuint texture, GLenum pname, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureParameterfv(GLuint texture, GLenum pname, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureParameter(GlHandle texture, uint pname, float* @params) { __context->glGetTextureParameterfv(texture.Value, pname, @params); } - /// Forwards to the native C API void glGetTextureParameterIiv(GLuint texture, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureParameterIiv(GLuint texture, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureParameterInteger(GlHandle texture, uint pname, int* @params) { __context->glGetTextureParameterIiv(texture.Value, pname, @params); } - /// Forwards to the native C API void glGetTextureParameterIuiv(GLuint texture, GLenum pname, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureParameterIuiv(GLuint texture, GLenum pname, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureParameterInteger(GlHandle texture, uint pname, uint* @params) { __context->glGetTextureParameterIuiv(texture.Value, pname, @params); } - /// Forwards to the native C API void glGetTextureParameteriv(GLuint texture, GLenum pname, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureParameteriv(GLuint texture, GLenum pname, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetNamedTextureParameter(GlHandle texture, uint pname, int* @params) { __context->glGetTextureParameteriv(texture.Value, pname, @params); } - /// Forwards to the native C API void glCreateVertexArrays(GLsizei n, GLuint *arrays);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateVertexArrays(GLsizei n, GLuint *arrays); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateVertexArrays(Span arrays) { @@ -655,40 +889,55 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glDisableVertexArrayAttrib(GLuint vaobj, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glDisableVertexArrayAttrib(GLuint vaobj, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DisableVertexArrayAttribute(GlHandle vaobj, uint index) { __context->glDisableVertexArrayAttrib(vaobj.Value, index); } - /// Forwards to the native C API void glEnableVertexArrayAttrib(GLuint vaobj, GLuint index);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glEnableVertexArrayAttrib(GLuint vaobj, GLuint index); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EnableVertexArrayAttribute(GlHandle vaobj, uint index) { __context->glEnableVertexArrayAttrib(vaobj.Value, index); } - /// Forwards to the native C API void glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayElementBuffer(GlHandle vaobj, GlHandle buffer) { __context->glVertexArrayElementBuffer(vaobj.Value, buffer.Value); } - /// Forwards to the native C API void glVertexArrayVertexBuffer(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayVertexBuffer(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayVertexBuffer(GlHandle vaobj, uint bindingIndex, GlHandle buffer, nint offset, int stride) { __context->glVertexArrayVertexBuffer(vaobj.Value, bindingIndex, buffer.Value, offset, stride); } - /// Forwards to the native C API void glVertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayVertexBuffers(GlHandle vaobj, uint first, ReadOnlySpan buffers, nint* offsets, int* strides) { @@ -698,72 +947,99 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glVertexArrayAttribBinding(GLuint vaobj, GLuint attribindex, GLuint bindingindex);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayAttribBinding(GLuint vaobj, GLuint attribindex, GLuint bindingindex); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayAttributeBinding(GlHandle vaobj, uint attributeIndex, uint bindingIndex) { __context->glVertexArrayAttribBinding(vaobj.Value, attributeIndex, bindingIndex); } - /// Forwards to the native C API void glVertexArrayAttribFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayAttribFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayAttributeFormat(GlHandle vaobj, uint attributeIndex, int size, uint type, byte normalized, uint relativeOffset) { __context->glVertexArrayAttribFormat(vaobj.Value, attributeIndex, size, type, normalized, relativeOffset); } - /// Forwards to the native C API void glVertexArrayAttribIFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayAttribIFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayAttributeIntegerFormat(GlHandle vaobj, uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexArrayAttribIFormat(vaobj.Value, attributeIndex, size, type, relativeOffset); } - /// Forwards to the native C API void glVertexArrayAttribLFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayAttribLFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayAttributeDoubleFormat(GlHandle vaobj, uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexArrayAttribLFormat(vaobj.Value, attributeIndex, size, type, relativeOffset); } - /// Forwards to the native C API void glVertexArrayBindingDivisor(GLuint vaobj, GLuint bindingindex, GLuint divisor);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glVertexArrayBindingDivisor(GLuint vaobj, GLuint bindingindex, GLuint divisor); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayBindingDivisor(GlHandle vaobj, uint bindingIndex, uint divisor) { __context->glVertexArrayBindingDivisor(vaobj.Value, bindingIndex, divisor); } - /// Forwards to the native C API void glGetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexArrayiv(GlHandle vaobj, uint pname, int* param) { __context->glGetVertexArrayiv(vaobj.Value, pname, param); } - /// Forwards to the native C API void glGetVertexArrayIndexediv(GLuint vaobj, GLuint index, GLenum pname, GLint *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexArrayIndexediv(GLuint vaobj, GLuint index, GLenum pname, GLint *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexArrayIndexediv(GlHandle vaobj, uint index, uint pname, int* param) { __context->glGetVertexArrayIndexediv(vaobj.Value, index, pname, param); } - /// Forwards to the native C API void glGetVertexArrayIndexed64iv(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetVertexArrayIndexed64iv(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetVertexArrayIndexed64iv(GlHandle vaobj, uint index, uint pname, long* param) { __context->glGetVertexArrayIndexed64iv(vaobj.Value, index, pname, param); } - /// Forwards to the native C API void glCreateSamplers(GLsizei n, GLuint *samplers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateSamplers(GLsizei n, GLuint *samplers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateSamplers(Span samplers) { @@ -773,8 +1049,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glCreateProgramPipelines(GLsizei n, GLuint *pipelines);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateProgramPipelines(GLsizei n, GLuint *pipelines); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateProgramPipelines(Span pipelines) { @@ -784,8 +1063,11 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glCreateQueries(GLenum target, GLsizei n, GLuint *ids);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glCreateQueries(GLenum target, GLsizei n, GLuint *ids); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateQueries(uint target, Span ids) { @@ -795,128 +1077,176 @@ namespace StgSharp.Graphics.OpenGL } } - /// Forwards to the native C API void glGetQueryBufferObjecti64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryBufferObjecti64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryBufferObjecti64v(GlHandle id, GlHandle buffer, uint pname, nint offset) { __context->glGetQueryBufferObjecti64v(id.Value, buffer.Value, pname, offset); } - /// Forwards to the native C API void glGetQueryBufferObjectiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryBufferObjectiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryBufferObjectiv(GlHandle id, GlHandle buffer, uint pname, nint offset) { __context->glGetQueryBufferObjectiv(id.Value, buffer.Value, pname, offset); } - /// Forwards to the native C API void glGetQueryBufferObjectui64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryBufferObjectui64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryBufferObjectui64v(GlHandle id, GlHandle buffer, uint pname, nint offset) { __context->glGetQueryBufferObjectui64v(id.Value, buffer.Value, pname, offset); } - /// Forwards to the native C API void glGetQueryBufferObjectuiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetQueryBufferObjectuiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetQueryBufferObjectuiv(GlHandle id, GlHandle buffer, uint pname, nint offset) { __context->glGetQueryBufferObjectuiv(id.Value, buffer.Value, pname, offset); } - /// Forwards to the native C API void glMemoryBarrierByRegion(GLbitfield barriers);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMemoryBarrierByRegion(GLbitfield barriers); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MemoryBarrierByRegion(uint barriers) { __context->glMemoryBarrierByRegion(barriers); } - /// Forwards to the native C API void glGetTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetTextureSubImage(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, int bufSize, void* pixels) { __context->glGetTextureSubImage(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); } - /// Forwards to the native C API void glGetCompressedTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetCompressedTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetCompressedTextureSubImage(GlHandle texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, void* pixels) { __context->glGetCompressedTextureSubImage(texture.Value, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); } - /// Forwards to the native C API GLenum glGetGraphicsResetStatus();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// GLenum glGetGraphicsResetStatus(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetGraphicsResetStatus() { return __context->glGetGraphicsResetStatus(); } - /// Forwards to the native C API void glGetnCompressedTexImage(GLenum target, GLint lod, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnCompressedTexImage(GLenum target, GLint lod, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetnCompressedTexImage(uint target, int lod, int bufSize, void* pixels) { __context->glGetnCompressedTexImage(target, lod, bufSize, pixels); } - /// Forwards to the native C API void glGetnTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetnTexImage(uint target, int level, uint format, uint type, int bufSize, void* pixels) { __context->glGetnTexImage(target, level, format, type, bufSize, pixels); } - /// Forwards to the native C API void glGetnUniformdv(GLuint program, GLint location, GLsizei bufSize, GLdouble *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnUniformdv(GLuint program, GLint location, GLsizei bufSize, GLdouble *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, int bufSize, double* @params) { __context->glGetnUniformdv(program.Value, location, bufSize, @params); } - /// Forwards to the native C API void glGetnUniformfv(GLuint program, GLint location, GLsizei bufSize, GLfloat *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnUniformfv(GLuint program, GLint location, GLsizei bufSize, GLfloat *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, int bufSize, float* @params) { __context->glGetnUniformfv(program.Value, location, bufSize, @params); } - /// Forwards to the native C API void glGetnUniformiv(GLuint program, GLint location, GLsizei bufSize, GLint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnUniformiv(GLuint program, GLint location, GLsizei bufSize, GLint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, int bufSize, int* @params) { __context->glGetnUniformiv(program.Value, location, bufSize, @params); } - /// Forwards to the native C API void glGetnUniformuiv(GLuint program, GLint location, GLsizei bufSize, GLuint *params);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glGetnUniformuiv(GLuint program, GLint location, GLsizei bufSize, GLuint *params); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void GetUniform(GlHandle program, int location, int bufSize, uint* @params) { __context->glGetnUniformuiv(program.Value, location, bufSize, @params); } - /// Forwards to the native C API void glReadnPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glReadnPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void ReadnPixels(int x, int y, int width, int height, uint format, uint type, int bufSize, void* data) { __context->glReadnPixels(x, y, width, height, format, type, bufSize, data); } - /// Forwards to the native C API void glTextureBarrier();. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glTextureBarrier(); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureBarrier() { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_6.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_6.g.cs index 51f50c19..0896e1a3 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_6.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenGLFunction.v4_6.g.cs @@ -13,32 +13,44 @@ namespace StgSharp.Graphics.OpenGL public unsafe partial class OpenGLFunction { - /// Forwards to the native C API void glSpecializeShader(GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glSpecializeShader(GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SpecializeShader(GlHandle shader, byte* pEntryPoint, uint numSpecializationConstants, uint* pConstantIndex, uint* pConstantValue) { __context->glSpecializeShader(shader.Value, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); } - /// Forwards to the native C API void glMultiDrawArraysIndirectCount(GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawArraysIndirectCount(GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawArraysIndirectCount(uint mode, void* indirect, nint drawcount, int maxdrawcount, int stride) { __context->glMultiDrawArraysIndirectCount(mode, indirect, drawcount, maxdrawcount, stride); } - /// Forwards to the native C API void glMultiDrawElementsIndirectCount(GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glMultiDrawElementsIndirectCount(GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void MultiDrawElementsIndirectCount(uint mode, uint type, void* indirect, nint drawcount, int maxdrawcount, int stride) { __context->glMultiDrawElementsIndirectCount(mode, type, indirect, drawcount, maxdrawcount, stride); } - /// Forwards to the native C API void glPolygonOffsetClamp(GLfloat factor, GLfloat units, GLfloat clamp);. - /// + /// + /// Forwards to the native OpenGL entry point. + /// void glPolygonOffsetClamp(GLfloat factor, GLfloat units, GLfloat clamp); + /// See docs.gl. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void PolygonOffsetClamp(float factor, float units, float clamp) { diff --git a/src/StgSharp.Graphics/OpenGL/Generated/OpenglContext.g.cs b/src/StgSharp.Graphics/OpenGL/Generated/OpenglContext.g.cs index 713a4a0b..a3ba0578 100644 --- a/src/StgSharp.Graphics/OpenGL/Generated/OpenglContext.g.cs +++ b/src/StgSharp.Graphics/OpenGL/Generated/OpenglContext.g.cs @@ -7,165 +7,577 @@ namespace StgSharp.Graphics.OpenGL { public unsafe partial struct OpenglContext { - internal delegate* unmanaged glCullFace; - internal delegate* unmanaged glFrontFace; - internal delegate* unmanaged glHint; - internal delegate* unmanaged glLineWidth; - internal delegate* unmanaged glPointSize; - internal delegate* unmanaged glPolygonMode; - internal delegate* unmanaged glScissor; - internal delegate* unmanaged glTexParameterf; - internal delegate* unmanaged glTexParameterfv; - internal delegate* unmanaged glTexParameteri; - internal delegate* unmanaged glTexParameteriv; - internal delegate* unmanaged glTexImage1D; - internal delegate* unmanaged glTexImage2D; - internal delegate* unmanaged glDrawBuffer; - internal delegate* unmanaged glClear; - internal delegate* unmanaged glClearColor; - internal delegate* unmanaged glClearStencil; - internal delegate* unmanaged glClearDepth; - internal delegate* unmanaged glStencilMask; - internal delegate* unmanaged glColorMask; - internal delegate* unmanaged glDepthMask; - internal delegate* unmanaged glDisable; - internal delegate* unmanaged glEnable; - internal delegate* unmanaged glFinish; - internal delegate* unmanaged glFlush; + internal delegate* unmanaged glActiveShaderProgram; + internal delegate* unmanaged glActiveTexture; + internal delegate* unmanaged glAttachShader; + internal delegate* unmanaged glBeginConditionalRender; + internal delegate* unmanaged glBeginQuery; + internal delegate* unmanaged glBeginQueryIndexed; + internal delegate* unmanaged glBeginTransformFeedback; + internal delegate* unmanaged glBindAttribLocation; + internal delegate* unmanaged glBindBuffer; + internal delegate* unmanaged glBindBufferBase; + internal delegate* unmanaged glBindBufferRange; + internal delegate* unmanaged glBindBuffersBase; + internal delegate* unmanaged glBindBuffersRange; + internal delegate* unmanaged glBindFragDataLocation; + internal delegate* unmanaged glBindFragDataLocationIndexed; + internal delegate* unmanaged glBindFramebuffer; + internal delegate* unmanaged glBindImageTexture; + internal delegate* unmanaged glBindImageTextures; + internal delegate* unmanaged glBindProgramPipeline; + internal delegate* unmanaged glBindRenderbuffer; + internal delegate* unmanaged glBindSampler; + internal delegate* unmanaged glBindSamplers; + internal delegate* unmanaged glBindTexture; + internal delegate* unmanaged glBindTextureUnit; + internal delegate* unmanaged glBindTextures; + internal delegate* unmanaged glBindTransformFeedback; + internal delegate* unmanaged glBindVertexArray; + internal delegate* unmanaged glBindVertexBuffer; + internal delegate* unmanaged glBindVertexBuffers; + internal delegate* unmanaged glBlendColor; + internal delegate* unmanaged glBlendEquation; + internal delegate* unmanaged glBlendEquationSeparate; + internal delegate* unmanaged glBlendEquationSeparatei; + internal delegate* unmanaged glBlendEquationi; internal delegate* unmanaged glBlendFunc; - internal delegate* unmanaged glLogicOp; - internal delegate* unmanaged glStencilFunc; - internal delegate* unmanaged glStencilOp; - internal delegate* unmanaged glDepthFunc; - internal delegate* unmanaged glPixelStoref; - internal delegate* unmanaged glPixelStorei; - internal delegate* unmanaged glReadBuffer; - internal delegate* unmanaged glReadPixels; - internal delegate* unmanaged glGetBooleanv; - internal delegate* unmanaged glGetDoublev; - internal delegate* unmanaged glGetError; - internal delegate* unmanaged glGetFloatv; - internal delegate* unmanaged glGetIntegerv; - internal delegate* unmanaged glGetString; - internal delegate* unmanaged glGetTexImage; - internal delegate* unmanaged glGetTexParameterfv; - internal delegate* unmanaged glGetTexParameteriv; - internal delegate* unmanaged glGetTexLevelParameterfv; - internal delegate* unmanaged glGetTexLevelParameteriv; - internal delegate* unmanaged glIsEnabled; - internal delegate* unmanaged glDepthRange; - internal delegate* unmanaged glViewport; - internal delegate* unmanaged glDrawArrays; - internal delegate* unmanaged glDrawElements; - internal delegate* unmanaged glGetPointerv; - internal delegate* unmanaged glPolygonOffset; + internal delegate* unmanaged glBlendFuncSeparate; + internal delegate* unmanaged glBlendFuncSeparatei; + internal delegate* unmanaged glBlendFunci; + internal delegate* unmanaged glBlitFramebuffer; + internal delegate* unmanaged glBlitNamedFramebuffer; + internal delegate* unmanaged glBufferData; + internal delegate* unmanaged glBufferStorage; + internal delegate* unmanaged glBufferSubData; + internal delegate* unmanaged glCheckFramebufferStatus; + internal delegate* unmanaged glCheckNamedFramebufferStatus; + internal delegate* unmanaged glClampColor; + internal delegate* unmanaged glClear; + internal delegate* unmanaged glClearBufferData; + internal delegate* unmanaged glClearBufferSubData; + internal delegate* unmanaged glClearBufferfi; + internal delegate* unmanaged glClearBufferfv; + internal delegate* unmanaged glClearBufferiv; + internal delegate* unmanaged glClearBufferuiv; + internal delegate* unmanaged glClearColor; + internal delegate* unmanaged glClearDepth; + internal delegate* unmanaged glClearDepthf; + internal delegate* unmanaged glClearNamedBufferData; + internal delegate* unmanaged glClearNamedBufferSubData; + internal delegate* unmanaged glClearNamedFramebufferfi; + internal delegate* unmanaged glClearNamedFramebufferfv; + internal delegate* unmanaged glClearNamedFramebufferiv; + internal delegate* unmanaged glClearNamedFramebufferuiv; + internal delegate* unmanaged glClearStencil; + internal delegate* unmanaged glClearTexImage; + internal delegate* unmanaged glClearTexSubImage; + internal delegate* unmanaged glClientWaitSync; + internal delegate* unmanaged glClipControl; + internal delegate* unmanaged glColorMask; + internal delegate* unmanaged glColorMaski; + internal delegate* unmanaged glCompileShader; + internal delegate* unmanaged glCompressedTexImage1D; + internal delegate* unmanaged glCompressedTexImage2D; + internal delegate* unmanaged glCompressedTexImage3D; + internal delegate* unmanaged glCompressedTexSubImage1D; + internal delegate* unmanaged glCompressedTexSubImage2D; + internal delegate* unmanaged glCompressedTexSubImage3D; + internal delegate* unmanaged glCompressedTextureSubImage1D; + internal delegate* unmanaged glCompressedTextureSubImage2D; + internal delegate* unmanaged glCompressedTextureSubImage3D; + internal delegate* unmanaged glCopyBufferSubData; + internal delegate* unmanaged glCopyImageSubData; + internal delegate* unmanaged glCopyNamedBufferSubData; internal delegate* unmanaged glCopyTexImage1D; internal delegate* unmanaged glCopyTexImage2D; internal delegate* unmanaged glCopyTexSubImage1D; internal delegate* unmanaged glCopyTexSubImage2D; - internal delegate* unmanaged glTexSubImage1D; - internal delegate* unmanaged glTexSubImage2D; - internal delegate* unmanaged glBindTexture; - internal delegate* unmanaged glDeleteTextures; - internal delegate* unmanaged glGenTextures; - internal delegate* unmanaged glIsTexture; - internal delegate* unmanaged glDrawRangeElements; - internal delegate* unmanaged glTexImage3D; - internal delegate* unmanaged glTexSubImage3D; internal delegate* unmanaged glCopyTexSubImage3D; - internal delegate* unmanaged glActiveTexture; - internal delegate* unmanaged glSampleCoverage; - internal delegate* unmanaged glCompressedTexImage3D; - internal delegate* unmanaged glCompressedTexImage2D; - internal delegate* unmanaged glCompressedTexImage1D; - internal delegate* unmanaged glCompressedTexSubImage3D; - internal delegate* unmanaged glCompressedTexSubImage2D; - internal delegate* unmanaged glCompressedTexSubImage1D; + internal delegate* unmanaged glCopyTextureSubImage1D; + internal delegate* unmanaged glCopyTextureSubImage2D; + internal delegate* unmanaged glCopyTextureSubImage3D; + internal delegate* unmanaged glCreateBuffers; + internal delegate* unmanaged glCreateFramebuffers; + internal delegate* unmanaged glCreateProgram; + internal delegate* unmanaged glCreateProgramPipelines; + internal delegate* unmanaged glCreateQueries; + internal delegate* unmanaged glCreateRenderbuffers; + internal delegate* unmanaged glCreateSamplers; + internal delegate* unmanaged glCreateShader; + internal delegate* unmanaged glCreateShaderProgramv; + internal delegate* unmanaged glCreateTextures; + internal delegate* unmanaged glCreateTransformFeedbacks; + internal delegate* unmanaged glCreateVertexArrays; + internal delegate* unmanaged glCullFace; + internal delegate* unmanaged, void*, void> glDebugMessageCallback; + internal delegate* unmanaged glDebugMessageControl; + internal delegate* unmanaged glDebugMessageInsert; + internal delegate* unmanaged glDeleteBuffers; + internal delegate* unmanaged glDeleteFramebuffers; + internal delegate* unmanaged glDeleteProgram; + internal delegate* unmanaged glDeleteProgramPipelines; + internal delegate* unmanaged glDeleteQueries; + internal delegate* unmanaged glDeleteRenderbuffers; + internal delegate* unmanaged glDeleteSamplers; + internal delegate* unmanaged glDeleteShader; + internal delegate* unmanaged glDeleteSync; + internal delegate* unmanaged glDeleteTextures; + internal delegate* unmanaged glDeleteTransformFeedbacks; + internal delegate* unmanaged glDeleteVertexArrays; + internal delegate* unmanaged glDepthFunc; + internal delegate* unmanaged glDepthMask; + internal delegate* unmanaged glDepthRange; + internal delegate* unmanaged glDepthRangeArrayv; + internal delegate* unmanaged glDepthRangeIndexed; + internal delegate* unmanaged glDepthRangef; + internal delegate* unmanaged glDetachShader; + internal delegate* unmanaged glDisable; + internal delegate* unmanaged glDisableVertexArrayAttrib; + internal delegate* unmanaged glDisableVertexAttribArray; + internal delegate* unmanaged glDisablei; + internal delegate* unmanaged glDispatchCompute; + internal delegate* unmanaged glDispatchComputeIndirect; + internal delegate* unmanaged glDrawArrays; + internal delegate* unmanaged glDrawArraysIndirect; + internal delegate* unmanaged glDrawArraysInstanced; + internal delegate* unmanaged glDrawArraysInstancedBaseInstance; + internal delegate* unmanaged glDrawBuffer; + internal delegate* unmanaged glDrawBuffers; + internal delegate* unmanaged glDrawElements; + internal delegate* unmanaged glDrawElementsBaseVertex; + internal delegate* unmanaged glDrawElementsIndirect; + internal delegate* unmanaged glDrawElementsInstanced; + internal delegate* unmanaged glDrawElementsInstancedBaseInstance; + internal delegate* unmanaged glDrawElementsInstancedBaseVertex; + internal delegate* unmanaged glDrawElementsInstancedBaseVertexBaseInstance; + internal delegate* unmanaged glDrawRangeElements; + internal delegate* unmanaged glDrawRangeElementsBaseVertex; + internal delegate* unmanaged glDrawTransformFeedback; + internal delegate* unmanaged glDrawTransformFeedbackInstanced; + internal delegate* unmanaged glDrawTransformFeedbackStream; + internal delegate* unmanaged glDrawTransformFeedbackStreamInstanced; + internal delegate* unmanaged glEnable; + internal delegate* unmanaged glEnableVertexArrayAttrib; + internal delegate* unmanaged glEnableVertexAttribArray; + internal delegate* unmanaged glEnablei; + internal delegate* unmanaged glEndConditionalRender; + internal delegate* unmanaged glEndQuery; + internal delegate* unmanaged glEndQueryIndexed; + internal delegate* unmanaged glEndTransformFeedback; + internal delegate* unmanaged glFenceSync; + internal delegate* unmanaged glFinish; + internal delegate* unmanaged glFlush; + internal delegate* unmanaged glFlushMappedBufferRange; + internal delegate* unmanaged glFlushMappedNamedBufferRange; + internal delegate* unmanaged glFramebufferParameteri; + internal delegate* unmanaged glFramebufferRenderbuffer; + internal delegate* unmanaged glFramebufferTexture; + internal delegate* unmanaged glFramebufferTexture1D; + internal delegate* unmanaged glFramebufferTexture2D; + internal delegate* unmanaged glFramebufferTexture3D; + internal delegate* unmanaged glFramebufferTextureLayer; + internal delegate* unmanaged glFrontFace; + internal delegate* unmanaged glGenBuffers; + internal delegate* unmanaged glGenFramebuffers; + internal delegate* unmanaged glGenProgramPipelines; + internal delegate* unmanaged glGenQueries; + internal delegate* unmanaged glGenRenderbuffers; + internal delegate* unmanaged glGenSamplers; + internal delegate* unmanaged glGenTextures; + internal delegate* unmanaged glGenTransformFeedbacks; + internal delegate* unmanaged glGenVertexArrays; + internal delegate* unmanaged glGenerateMipmap; + internal delegate* unmanaged glGenerateTextureMipmap; + internal delegate* unmanaged glGetActiveAtomicCounterBufferiv; + internal delegate* unmanaged glGetActiveAttrib; + internal delegate* unmanaged glGetActiveSubroutineName; + internal delegate* unmanaged glGetActiveSubroutineUniformName; + internal delegate* unmanaged glGetActiveSubroutineUniformiv; + internal delegate* unmanaged glGetActiveUniform; + internal delegate* unmanaged glGetActiveUniformBlockName; + internal delegate* unmanaged glGetActiveUniformBlockiv; + internal delegate* unmanaged glGetActiveUniformName; + internal delegate* unmanaged glGetActiveUniformsiv; + internal delegate* unmanaged glGetAttachedShaders; + internal delegate* unmanaged glGetAttribLocation; + internal delegate* unmanaged glGetBooleani_v; + internal delegate* unmanaged glGetBooleanv; + internal delegate* unmanaged glGetBufferParameteri64v; + internal delegate* unmanaged glGetBufferParameteriv; + internal delegate* unmanaged glGetBufferPointerv; + internal delegate* unmanaged glGetBufferSubData; internal delegate* unmanaged glGetCompressedTexImage; - internal delegate* unmanaged glBlendFuncSeparate; + internal delegate* unmanaged glGetCompressedTextureImage; + internal delegate* unmanaged glGetCompressedTextureSubImage; + internal delegate* unmanaged glGetDebugMessageLog; + internal delegate* unmanaged glGetDoublei_v; + internal delegate* unmanaged glGetDoublev; + internal delegate* unmanaged glGetError; + internal delegate* unmanaged glGetFloati_v; + internal delegate* unmanaged glGetFloatv; + internal delegate* unmanaged glGetFragDataIndex; + internal delegate* unmanaged glGetFragDataLocation; + internal delegate* unmanaged glGetFramebufferAttachmentParameteriv; + internal delegate* unmanaged glGetFramebufferParameteriv; + internal delegate* unmanaged glGetGraphicsResetStatus; + internal delegate* unmanaged glGetInteger64i_v; + internal delegate* unmanaged glGetInteger64v; + internal delegate* unmanaged glGetIntegeri_v; + internal delegate* unmanaged glGetIntegerv; + internal delegate* unmanaged glGetInternalformati64v; + internal delegate* unmanaged glGetInternalformativ; + internal delegate* unmanaged glGetMultisamplefv; + internal delegate* unmanaged glGetNamedBufferParameteri64v; + internal delegate* unmanaged glGetNamedBufferParameteriv; + internal delegate* unmanaged glGetNamedBufferPointerv; + internal delegate* unmanaged glGetNamedBufferSubData; + internal delegate* unmanaged glGetNamedFramebufferAttachmentParameteriv; + internal delegate* unmanaged glGetNamedFramebufferParameteriv; + internal delegate* unmanaged glGetNamedRenderbufferParameteriv; + internal delegate* unmanaged glGetObjectLabel; + internal delegate* unmanaged glGetObjectPtrLabel; + internal delegate* unmanaged glGetPointerv; + internal delegate* unmanaged glGetProgramBinary; + internal delegate* unmanaged glGetProgramInfoLog; + internal delegate* unmanaged glGetProgramInterfaceiv; + internal delegate* unmanaged glGetProgramPipelineInfoLog; + internal delegate* unmanaged glGetProgramPipelineiv; + internal delegate* unmanaged glGetProgramResourceIndex; + internal delegate* unmanaged glGetProgramResourceLocation; + internal delegate* unmanaged glGetProgramResourceLocationIndex; + internal delegate* unmanaged glGetProgramResourceName; + internal delegate* unmanaged glGetProgramResourceiv; + internal delegate* unmanaged glGetProgramStageiv; + internal delegate* unmanaged glGetProgramiv; + internal delegate* unmanaged glGetQueryBufferObjecti64v; + internal delegate* unmanaged glGetQueryBufferObjectiv; + internal delegate* unmanaged glGetQueryBufferObjectui64v; + internal delegate* unmanaged glGetQueryBufferObjectuiv; + internal delegate* unmanaged glGetQueryIndexediv; + internal delegate* unmanaged glGetQueryObjecti64v; + internal delegate* unmanaged glGetQueryObjectiv; + internal delegate* unmanaged glGetQueryObjectui64v; + internal delegate* unmanaged glGetQueryObjectuiv; + internal delegate* unmanaged glGetQueryiv; + internal delegate* unmanaged glGetRenderbufferParameteriv; + internal delegate* unmanaged glGetSamplerParameterIiv; + internal delegate* unmanaged glGetSamplerParameterIuiv; + internal delegate* unmanaged glGetSamplerParameterfv; + internal delegate* unmanaged glGetSamplerParameteriv; + internal delegate* unmanaged glGetShaderInfoLog; + internal delegate* unmanaged glGetShaderPrecisionFormat; + internal delegate* unmanaged glGetShaderSource; + internal delegate* unmanaged glGetShaderiv; + internal delegate* unmanaged glGetString; + internal delegate* unmanaged glGetStringi; + internal delegate* unmanaged glGetSubroutineIndex; + internal delegate* unmanaged glGetSubroutineUniformLocation; + internal delegate* unmanaged glGetSynciv; + internal delegate* unmanaged glGetTexImage; + internal delegate* unmanaged glGetTexLevelParameterfv; + internal delegate* unmanaged glGetTexLevelParameteriv; + internal delegate* unmanaged glGetTexParameterIiv; + internal delegate* unmanaged glGetTexParameterIuiv; + internal delegate* unmanaged glGetTexParameterfv; + internal delegate* unmanaged glGetTexParameteriv; + internal delegate* unmanaged glGetTextureImage; + internal delegate* unmanaged glGetTextureLevelParameterfv; + internal delegate* unmanaged glGetTextureLevelParameteriv; + internal delegate* unmanaged glGetTextureParameterIiv; + internal delegate* unmanaged glGetTextureParameterIuiv; + internal delegate* unmanaged glGetTextureParameterfv; + internal delegate* unmanaged glGetTextureParameteriv; + internal delegate* unmanaged glGetTextureSubImage; + internal delegate* unmanaged glGetTransformFeedbackVarying; + internal delegate* unmanaged glGetTransformFeedbacki64_v; + internal delegate* unmanaged glGetTransformFeedbacki_v; + internal delegate* unmanaged glGetTransformFeedbackiv; + internal delegate* unmanaged glGetUniformBlockIndex; + internal delegate* unmanaged glGetUniformIndices; + internal delegate* unmanaged glGetUniformLocation; + internal delegate* unmanaged glGetUniformSubroutineuiv; + internal delegate* unmanaged glGetUniformdv; + internal delegate* unmanaged glGetUniformfv; + internal delegate* unmanaged glGetUniformiv; + internal delegate* unmanaged glGetUniformuiv; + internal delegate* unmanaged glGetVertexArrayIndexed64iv; + internal delegate* unmanaged glGetVertexArrayIndexediv; + internal delegate* unmanaged glGetVertexArrayiv; + internal delegate* unmanaged glGetVertexAttribIiv; + internal delegate* unmanaged glGetVertexAttribIuiv; + internal delegate* unmanaged glGetVertexAttribLdv; + internal delegate* unmanaged glGetVertexAttribPointerv; + internal delegate* unmanaged glGetVertexAttribdv; + internal delegate* unmanaged glGetVertexAttribfv; + internal delegate* unmanaged glGetVertexAttribiv; + internal delegate* unmanaged glGetnCompressedTexImage; + internal delegate* unmanaged glGetnTexImage; + internal delegate* unmanaged glGetnUniformdv; + internal delegate* unmanaged glGetnUniformfv; + internal delegate* unmanaged glGetnUniformiv; + internal delegate* unmanaged glGetnUniformuiv; + internal delegate* unmanaged glHint; + internal delegate* unmanaged glInvalidateBufferData; + internal delegate* unmanaged glInvalidateBufferSubData; + internal delegate* unmanaged glInvalidateFramebuffer; + internal delegate* unmanaged glInvalidateNamedFramebufferData; + internal delegate* unmanaged glInvalidateNamedFramebufferSubData; + internal delegate* unmanaged glInvalidateSubFramebuffer; + internal delegate* unmanaged glInvalidateTexImage; + internal delegate* unmanaged glInvalidateTexSubImage; + internal delegate* unmanaged glIsBuffer; + internal delegate* unmanaged glIsEnabled; + internal delegate* unmanaged glIsEnabledi; + internal delegate* unmanaged glIsFramebuffer; + internal delegate* unmanaged glIsProgram; + internal delegate* unmanaged glIsProgramPipeline; + internal delegate* unmanaged glIsQuery; + internal delegate* unmanaged glIsRenderbuffer; + internal delegate* unmanaged glIsSampler; + internal delegate* unmanaged glIsShader; + internal delegate* unmanaged glIsSync; + internal delegate* unmanaged glIsTexture; + internal delegate* unmanaged glIsTransformFeedback; + internal delegate* unmanaged glIsVertexArray; + internal delegate* unmanaged glLineWidth; + internal delegate* unmanaged glLinkProgram; + internal delegate* unmanaged glLogicOp; + internal delegate* unmanaged glMapBuffer; + internal delegate* unmanaged glMapBufferRange; + internal delegate* unmanaged glMapNamedBuffer; + internal delegate* unmanaged glMapNamedBufferRange; + internal delegate* unmanaged glMemoryBarrier; + internal delegate* unmanaged glMemoryBarrierByRegion; + internal delegate* unmanaged glMinSampleShading; internal delegate* unmanaged glMultiDrawArrays; + internal delegate* unmanaged glMultiDrawArraysIndirect; + internal delegate* unmanaged glMultiDrawArraysIndirectCount; internal delegate* unmanaged glMultiDrawElements; + internal delegate* unmanaged glMultiDrawElementsBaseVertex; + internal delegate* unmanaged glMultiDrawElementsIndirect; + internal delegate* unmanaged glMultiDrawElementsIndirectCount; + internal delegate* unmanaged glNamedBufferData; + internal delegate* unmanaged glNamedBufferStorage; + internal delegate* unmanaged glNamedBufferSubData; + internal delegate* unmanaged glNamedFramebufferDrawBuffer; + internal delegate* unmanaged glNamedFramebufferDrawBuffers; + internal delegate* unmanaged glNamedFramebufferParameteri; + internal delegate* unmanaged glNamedFramebufferReadBuffer; + internal delegate* unmanaged glNamedFramebufferRenderbuffer; + internal delegate* unmanaged glNamedFramebufferTexture; + internal delegate* unmanaged glNamedFramebufferTextureLayer; + internal delegate* unmanaged glNamedRenderbufferStorage; + internal delegate* unmanaged glNamedRenderbufferStorageMultisample; + internal delegate* unmanaged glObjectLabel; + internal delegate* unmanaged glObjectPtrLabel; + internal delegate* unmanaged glPatchParameterfv; + internal delegate* unmanaged glPatchParameteri; + internal delegate* unmanaged glPauseTransformFeedback; + internal delegate* unmanaged glPixelStoref; + internal delegate* unmanaged glPixelStorei; internal delegate* unmanaged glPointParameterf; internal delegate* unmanaged glPointParameterfv; internal delegate* unmanaged glPointParameteri; internal delegate* unmanaged glPointParameteriv; - internal delegate* unmanaged glBlendColor; - internal delegate* unmanaged glBlendEquation; - internal delegate* unmanaged glGenQueries; - internal delegate* unmanaged glDeleteQueries; - internal delegate* unmanaged glIsQuery; - internal delegate* unmanaged glBeginQuery; - internal delegate* unmanaged glEndQuery; - internal delegate* unmanaged glGetQueryiv; - internal delegate* unmanaged glGetQueryObjectiv; - internal delegate* unmanaged glGetQueryObjectuiv; - internal delegate* unmanaged glBindBuffer; - internal delegate* unmanaged glDeleteBuffers; - internal delegate* unmanaged glGenBuffers; - internal delegate* unmanaged glIsBuffer; - internal delegate* unmanaged glBufferData; - internal delegate* unmanaged glBufferSubData; - internal delegate* unmanaged glGetBufferSubData; - internal delegate* unmanaged glMapBuffer; - internal delegate* unmanaged glUnmapBuffer; - internal delegate* unmanaged glGetBufferParameteriv; - internal delegate* unmanaged glGetBufferPointerv; - internal delegate* unmanaged glBlendEquationSeparate; - internal delegate* unmanaged glDrawBuffers; - internal delegate* unmanaged glStencilOpSeparate; - internal delegate* unmanaged glStencilFuncSeparate; - internal delegate* unmanaged glStencilMaskSeparate; - internal delegate* unmanaged glAttachShader; - internal delegate* unmanaged glBindAttribLocation; - internal delegate* unmanaged glCompileShader; - internal delegate* unmanaged glCreateProgram; - internal delegate* unmanaged glCreateShader; - internal delegate* unmanaged glDeleteProgram; - internal delegate* unmanaged glDeleteShader; - internal delegate* unmanaged glDetachShader; - internal delegate* unmanaged glDisableVertexAttribArray; - internal delegate* unmanaged glEnableVertexAttribArray; - internal delegate* unmanaged glGetActiveAttrib; - internal delegate* unmanaged glGetActiveUniform; - internal delegate* unmanaged glGetAttachedShaders; - internal delegate* unmanaged glGetAttribLocation; - internal delegate* unmanaged glGetProgramiv; - internal delegate* unmanaged glGetProgramInfoLog; - internal delegate* unmanaged glGetShaderiv; - internal delegate* unmanaged glGetShaderInfoLog; - internal delegate* unmanaged glGetShaderSource; - internal delegate* unmanaged glGetUniformLocation; - internal delegate* unmanaged glGetUniformfv; - internal delegate* unmanaged glGetUniformiv; - internal delegate* unmanaged glGetVertexAttribdv; - internal delegate* unmanaged glGetVertexAttribfv; - internal delegate* unmanaged glGetVertexAttribiv; - internal delegate* unmanaged glGetVertexAttribPointerv; - internal delegate* unmanaged glIsProgram; - internal delegate* unmanaged glIsShader; - internal delegate* unmanaged glLinkProgram; + internal delegate* unmanaged glPointSize; + internal delegate* unmanaged glPolygonMode; + internal delegate* unmanaged glPolygonOffset; + internal delegate* unmanaged glPolygonOffsetClamp; + internal delegate* unmanaged glPopDebugGroup; + internal delegate* unmanaged glPrimitiveRestartIndex; + internal delegate* unmanaged glProgramBinary; + internal delegate* unmanaged glProgramParameteri; + internal delegate* unmanaged glProgramUniform1d; + internal delegate* unmanaged glProgramUniform1dv; + internal delegate* unmanaged glProgramUniform1f; + internal delegate* unmanaged glProgramUniform1fv; + internal delegate* unmanaged glProgramUniform1i; + internal delegate* unmanaged glProgramUniform1iv; + internal delegate* unmanaged glProgramUniform1ui; + internal delegate* unmanaged glProgramUniform1uiv; + internal delegate* unmanaged glProgramUniform2d; + internal delegate* unmanaged glProgramUniform2dv; + internal delegate* unmanaged glProgramUniform2f; + internal delegate* unmanaged glProgramUniform2fv; + internal delegate* unmanaged glProgramUniform2i; + internal delegate* unmanaged glProgramUniform2iv; + internal delegate* unmanaged glProgramUniform2ui; + internal delegate* unmanaged glProgramUniform2uiv; + internal delegate* unmanaged glProgramUniform3d; + internal delegate* unmanaged glProgramUniform3dv; + internal delegate* unmanaged glProgramUniform3f; + internal delegate* unmanaged glProgramUniform3fv; + internal delegate* unmanaged glProgramUniform3i; + internal delegate* unmanaged glProgramUniform3iv; + internal delegate* unmanaged glProgramUniform3ui; + internal delegate* unmanaged glProgramUniform3uiv; + internal delegate* unmanaged glProgramUniform4d; + internal delegate* unmanaged glProgramUniform4dv; + internal delegate* unmanaged glProgramUniform4f; + internal delegate* unmanaged glProgramUniform4fv; + internal delegate* unmanaged glProgramUniform4i; + internal delegate* unmanaged glProgramUniform4iv; + internal delegate* unmanaged glProgramUniform4ui; + internal delegate* unmanaged glProgramUniform4uiv; + internal delegate* unmanaged glProgramUniformMatrix2dv; + internal delegate* unmanaged glProgramUniformMatrix2fv; + internal delegate* unmanaged glProgramUniformMatrix2x3dv; + internal delegate* unmanaged glProgramUniformMatrix2x3fv; + internal delegate* unmanaged glProgramUniformMatrix2x4dv; + internal delegate* unmanaged glProgramUniformMatrix2x4fv; + internal delegate* unmanaged glProgramUniformMatrix3dv; + internal delegate* unmanaged glProgramUniformMatrix3fv; + internal delegate* unmanaged glProgramUniformMatrix3x2dv; + internal delegate* unmanaged glProgramUniformMatrix3x2fv; + internal delegate* unmanaged glProgramUniformMatrix3x4dv; + internal delegate* unmanaged glProgramUniformMatrix3x4fv; + internal delegate* unmanaged glProgramUniformMatrix4dv; + internal delegate* unmanaged glProgramUniformMatrix4fv; + internal delegate* unmanaged glProgramUniformMatrix4x2dv; + internal delegate* unmanaged glProgramUniformMatrix4x2fv; + internal delegate* unmanaged glProgramUniformMatrix4x3dv; + internal delegate* unmanaged glProgramUniformMatrix4x3fv; + internal delegate* unmanaged glProvokingVertex; + internal delegate* unmanaged glPushDebugGroup; + internal delegate* unmanaged glQueryCounter; + internal delegate* unmanaged glReadBuffer; + internal delegate* unmanaged glReadPixels; + internal delegate* unmanaged glReadnPixels; + internal delegate* unmanaged glReleaseShaderCompiler; + internal delegate* unmanaged glRenderbufferStorage; + internal delegate* unmanaged glRenderbufferStorageMultisample; + internal delegate* unmanaged glResumeTransformFeedback; + internal delegate* unmanaged glSampleCoverage; + internal delegate* unmanaged glSampleMaski; + internal delegate* unmanaged glSamplerParameterIiv; + internal delegate* unmanaged glSamplerParameterIuiv; + internal delegate* unmanaged glSamplerParameterf; + internal delegate* unmanaged glSamplerParameterfv; + internal delegate* unmanaged glSamplerParameteri; + internal delegate* unmanaged glSamplerParameteriv; + internal delegate* unmanaged glScissor; + internal delegate* unmanaged glScissorArrayv; + internal delegate* unmanaged glScissorIndexed; + internal delegate* unmanaged glScissorIndexedv; + internal delegate* unmanaged glShaderBinary; internal delegate* unmanaged glShaderSource; - internal delegate* unmanaged glUseProgram; + internal delegate* unmanaged glShaderStorageBlockBinding; + internal delegate* unmanaged glSpecializeShader; + internal delegate* unmanaged glStencilFunc; + internal delegate* unmanaged glStencilFuncSeparate; + internal delegate* unmanaged glStencilMask; + internal delegate* unmanaged glStencilMaskSeparate; + internal delegate* unmanaged glStencilOp; + internal delegate* unmanaged glStencilOpSeparate; + internal delegate* unmanaged glTexBuffer; + internal delegate* unmanaged glTexBufferRange; + internal delegate* unmanaged glTexImage1D; + internal delegate* unmanaged glTexImage2D; + internal delegate* unmanaged glTexImage2DMultisample; + internal delegate* unmanaged glTexImage3D; + internal delegate* unmanaged glTexImage3DMultisample; + internal delegate* unmanaged glTexParameterIiv; + internal delegate* unmanaged glTexParameterIuiv; + internal delegate* unmanaged glTexParameterf; + internal delegate* unmanaged glTexParameterfv; + internal delegate* unmanaged glTexParameteri; + internal delegate* unmanaged glTexParameteriv; + internal delegate* unmanaged glTexStorage1D; + internal delegate* unmanaged glTexStorage2D; + internal delegate* unmanaged glTexStorage2DMultisample; + internal delegate* unmanaged glTexStorage3D; + internal delegate* unmanaged glTexStorage3DMultisample; + internal delegate* unmanaged glTexSubImage1D; + internal delegate* unmanaged glTexSubImage2D; + internal delegate* unmanaged glTexSubImage3D; + internal delegate* unmanaged glTextureBarrier; + internal delegate* unmanaged glTextureBuffer; + internal delegate* unmanaged glTextureBufferRange; + internal delegate* unmanaged glTextureParameterIiv; + internal delegate* unmanaged glTextureParameterIuiv; + internal delegate* unmanaged glTextureParameterf; + internal delegate* unmanaged glTextureParameterfv; + internal delegate* unmanaged glTextureParameteri; + internal delegate* unmanaged glTextureParameteriv; + internal delegate* unmanaged glTextureStorage1D; + internal delegate* unmanaged glTextureStorage2D; + internal delegate* unmanaged glTextureStorage2DMultisample; + internal delegate* unmanaged glTextureStorage3D; + internal delegate* unmanaged glTextureStorage3DMultisample; + internal delegate* unmanaged glTextureSubImage1D; + internal delegate* unmanaged glTextureSubImage2D; + internal delegate* unmanaged glTextureSubImage3D; + internal delegate* unmanaged glTextureView; + internal delegate* unmanaged glTransformFeedbackBufferBase; + internal delegate* unmanaged glTransformFeedbackBufferRange; + internal delegate* unmanaged glTransformFeedbackVaryings; + internal delegate* unmanaged glUniform1d; + internal delegate* unmanaged glUniform1dv; internal delegate* unmanaged glUniform1f; - internal delegate* unmanaged glUniform2f; - internal delegate* unmanaged glUniform3f; - internal delegate* unmanaged glUniform4f; - internal delegate* unmanaged glUniform1i; - internal delegate* unmanaged glUniform2i; - internal delegate* unmanaged glUniform3i; - internal delegate* unmanaged glUniform4i; internal delegate* unmanaged glUniform1fv; - internal delegate* unmanaged glUniform2fv; - internal delegate* unmanaged glUniform3fv; - internal delegate* unmanaged glUniform4fv; + internal delegate* unmanaged glUniform1i; internal delegate* unmanaged glUniform1iv; + internal delegate* unmanaged glUniform1ui; + internal delegate* unmanaged glUniform1uiv; + internal delegate* unmanaged glUniform2d; + internal delegate* unmanaged glUniform2dv; + internal delegate* unmanaged glUniform2f; + internal delegate* unmanaged glUniform2fv; + internal delegate* unmanaged glUniform2i; internal delegate* unmanaged glUniform2iv; + internal delegate* unmanaged glUniform2ui; + internal delegate* unmanaged glUniform2uiv; + internal delegate* unmanaged glUniform3d; + internal delegate* unmanaged glUniform3dv; + internal delegate* unmanaged glUniform3f; + internal delegate* unmanaged glUniform3fv; + internal delegate* unmanaged glUniform3i; internal delegate* unmanaged glUniform3iv; + internal delegate* unmanaged glUniform3ui; + internal delegate* unmanaged glUniform3uiv; + internal delegate* unmanaged glUniform4d; + internal delegate* unmanaged glUniform4dv; + internal delegate* unmanaged glUniform4f; + internal delegate* unmanaged glUniform4fv; + internal delegate* unmanaged glUniform4i; internal delegate* unmanaged glUniform4iv; + internal delegate* unmanaged glUniform4ui; + internal delegate* unmanaged glUniform4uiv; + internal delegate* unmanaged glUniformBlockBinding; + internal delegate* unmanaged glUniformMatrix2dv; internal delegate* unmanaged glUniformMatrix2fv; + internal delegate* unmanaged glUniformMatrix2x3dv; + internal delegate* unmanaged glUniformMatrix2x3fv; + internal delegate* unmanaged glUniformMatrix2x4dv; + internal delegate* unmanaged glUniformMatrix2x4fv; + internal delegate* unmanaged glUniformMatrix3dv; internal delegate* unmanaged glUniformMatrix3fv; + internal delegate* unmanaged glUniformMatrix3x2dv; + internal delegate* unmanaged glUniformMatrix3x2fv; + internal delegate* unmanaged glUniformMatrix3x4dv; + internal delegate* unmanaged glUniformMatrix3x4fv; + internal delegate* unmanaged glUniformMatrix4dv; internal delegate* unmanaged glUniformMatrix4fv; + internal delegate* unmanaged glUniformMatrix4x2dv; + internal delegate* unmanaged glUniformMatrix4x2fv; + internal delegate* unmanaged glUniformMatrix4x3dv; + internal delegate* unmanaged glUniformMatrix4x3fv; + internal delegate* unmanaged glUniformSubroutinesuiv; + internal delegate* unmanaged glUnmapBuffer; + internal delegate* unmanaged glUnmapNamedBuffer; + internal delegate* unmanaged glUseProgram; + internal delegate* unmanaged glUseProgramStages; internal delegate* unmanaged glValidateProgram; + internal delegate* unmanaged glValidateProgramPipeline; + internal delegate* unmanaged glVertexArrayAttribBinding; + internal delegate* unmanaged glVertexArrayAttribFormat; + internal delegate* unmanaged glVertexArrayAttribIFormat; + internal delegate* unmanaged glVertexArrayAttribLFormat; + internal delegate* unmanaged glVertexArrayBindingDivisor; + internal delegate* unmanaged glVertexArrayElementBuffer; + internal delegate* unmanaged glVertexArrayVertexBuffer; + internal delegate* unmanaged glVertexArrayVertexBuffers; internal delegate* unmanaged glVertexAttrib1d; internal delegate* unmanaged glVertexAttrib1dv; internal delegate* unmanaged glVertexAttrib1f; @@ -202,148 +614,41 @@ namespace StgSharp.Graphics.OpenGL internal delegate* unmanaged glVertexAttrib4ubv; internal delegate* unmanaged glVertexAttrib4uiv; internal delegate* unmanaged glVertexAttrib4usv; - internal delegate* unmanaged glVertexAttribPointer; - internal delegate* unmanaged glUniformMatrix2x3fv; - internal delegate* unmanaged glUniformMatrix3x2fv; - internal delegate* unmanaged glUniformMatrix2x4fv; - internal delegate* unmanaged glUniformMatrix4x2fv; - internal delegate* unmanaged glUniformMatrix3x4fv; - internal delegate* unmanaged glUniformMatrix4x3fv; - internal delegate* unmanaged glColorMaski; - internal delegate* unmanaged glGetBooleani_v; - internal delegate* unmanaged glGetIntegeri_v; - internal delegate* unmanaged glEnablei; - internal delegate* unmanaged glDisablei; - internal delegate* unmanaged glIsEnabledi; - internal delegate* unmanaged glBeginTransformFeedback; - internal delegate* unmanaged glEndTransformFeedback; - internal delegate* unmanaged glBindBufferRange; - internal delegate* unmanaged glBindBufferBase; - internal delegate* unmanaged glTransformFeedbackVaryings; - internal delegate* unmanaged glGetTransformFeedbackVarying; - internal delegate* unmanaged glClampColor; - internal delegate* unmanaged glBeginConditionalRender; - internal delegate* unmanaged glEndConditionalRender; - internal delegate* unmanaged glVertexAttribIPointer; - internal delegate* unmanaged glGetVertexAttribIiv; - internal delegate* unmanaged glGetVertexAttribIuiv; + internal delegate* unmanaged glVertexAttribBinding; + internal delegate* unmanaged glVertexAttribDivisor; + internal delegate* unmanaged glVertexAttribFormat; internal delegate* unmanaged glVertexAttribI1i; - internal delegate* unmanaged glVertexAttribI2i; - internal delegate* unmanaged glVertexAttribI3i; - internal delegate* unmanaged glVertexAttribI4i; - internal delegate* unmanaged glVertexAttribI1ui; - internal delegate* unmanaged glVertexAttribI2ui; - internal delegate* unmanaged glVertexAttribI3ui; - internal delegate* unmanaged glVertexAttribI4ui; internal delegate* unmanaged glVertexAttribI1iv; - internal delegate* unmanaged glVertexAttribI2iv; - internal delegate* unmanaged glVertexAttribI3iv; - internal delegate* unmanaged glVertexAttribI4iv; + internal delegate* unmanaged glVertexAttribI1ui; internal delegate* unmanaged glVertexAttribI1uiv; + internal delegate* unmanaged glVertexAttribI2i; + internal delegate* unmanaged glVertexAttribI2iv; + internal delegate* unmanaged glVertexAttribI2ui; internal delegate* unmanaged glVertexAttribI2uiv; + internal delegate* unmanaged glVertexAttribI3i; + internal delegate* unmanaged glVertexAttribI3iv; + internal delegate* unmanaged glVertexAttribI3ui; internal delegate* unmanaged glVertexAttribI3uiv; - internal delegate* unmanaged glVertexAttribI4uiv; internal delegate* unmanaged glVertexAttribI4bv; + internal delegate* unmanaged glVertexAttribI4i; + internal delegate* unmanaged glVertexAttribI4iv; internal delegate* unmanaged glVertexAttribI4sv; internal delegate* unmanaged glVertexAttribI4ubv; + internal delegate* unmanaged glVertexAttribI4ui; + internal delegate* unmanaged glVertexAttribI4uiv; internal delegate* unmanaged glVertexAttribI4usv; - internal delegate* unmanaged glGetUniformuiv; - internal delegate* unmanaged glBindFragDataLocation; - internal delegate* unmanaged glGetFragDataLocation; - internal delegate* unmanaged glUniform1ui; - internal delegate* unmanaged glUniform2ui; - internal delegate* unmanaged glUniform3ui; - internal delegate* unmanaged glUniform4ui; - internal delegate* unmanaged glUniform1uiv; - internal delegate* unmanaged glUniform2uiv; - internal delegate* unmanaged glUniform3uiv; - internal delegate* unmanaged glUniform4uiv; - internal delegate* unmanaged glTexParameterIiv; - internal delegate* unmanaged glTexParameterIuiv; - internal delegate* unmanaged glGetTexParameterIiv; - internal delegate* unmanaged glGetTexParameterIuiv; - internal delegate* unmanaged glClearBufferiv; - internal delegate* unmanaged glClearBufferuiv; - internal delegate* unmanaged glClearBufferfv; - internal delegate* unmanaged glClearBufferfi; - internal delegate* unmanaged glGetStringi; - internal delegate* unmanaged glIsRenderbuffer; - internal delegate* unmanaged glBindRenderbuffer; - internal delegate* unmanaged glDeleteRenderbuffers; - internal delegate* unmanaged glGenRenderbuffers; - internal delegate* unmanaged glRenderbufferStorage; - internal delegate* unmanaged glGetRenderbufferParameteriv; - internal delegate* unmanaged glIsFramebuffer; - internal delegate* unmanaged glBindFramebuffer; - internal delegate* unmanaged glDeleteFramebuffers; - internal delegate* unmanaged glGenFramebuffers; - internal delegate* unmanaged glCheckFramebufferStatus; - internal delegate* unmanaged glFramebufferTexture1D; - internal delegate* unmanaged glFramebufferTexture2D; - internal delegate* unmanaged glFramebufferTexture3D; - internal delegate* unmanaged glFramebufferRenderbuffer; - internal delegate* unmanaged glGetFramebufferAttachmentParameteriv; - internal delegate* unmanaged glGenerateMipmap; - internal delegate* unmanaged glBlitFramebuffer; - internal delegate* unmanaged glRenderbufferStorageMultisample; - internal delegate* unmanaged glFramebufferTextureLayer; - internal delegate* unmanaged glMapBufferRange; - internal delegate* unmanaged glFlushMappedBufferRange; - internal delegate* unmanaged glBindVertexArray; - internal delegate* unmanaged glDeleteVertexArrays; - internal delegate* unmanaged glGenVertexArrays; - internal delegate* unmanaged glIsVertexArray; - internal delegate* unmanaged glDrawArraysInstanced; - internal delegate* unmanaged glDrawElementsInstanced; - internal delegate* unmanaged glTexBuffer; - internal delegate* unmanaged glPrimitiveRestartIndex; - internal delegate* unmanaged glCopyBufferSubData; - internal delegate* unmanaged glGetUniformIndices; - internal delegate* unmanaged glGetActiveUniformsiv; - internal delegate* unmanaged glGetActiveUniformName; - internal delegate* unmanaged glGetUniformBlockIndex; - internal delegate* unmanaged glGetActiveUniformBlockiv; - internal delegate* unmanaged glGetActiveUniformBlockName; - internal delegate* unmanaged glUniformBlockBinding; - internal delegate* unmanaged glDrawElementsBaseVertex; - internal delegate* unmanaged glDrawRangeElementsBaseVertex; - internal delegate* unmanaged glDrawElementsInstancedBaseVertex; - internal delegate* unmanaged glMultiDrawElementsBaseVertex; - internal delegate* unmanaged glProvokingVertex; - internal delegate* unmanaged glFenceSync; - internal delegate* unmanaged glIsSync; - internal delegate* unmanaged glDeleteSync; - internal delegate* unmanaged glClientWaitSync; - internal delegate* unmanaged glWaitSync; - internal delegate* unmanaged glGetInteger64v; - internal delegate* unmanaged glGetSynciv; - internal delegate* unmanaged glGetInteger64i_v; - internal delegate* unmanaged glGetBufferParameteri64v; - internal delegate* unmanaged glFramebufferTexture; - internal delegate* unmanaged glTexImage2DMultisample; - internal delegate* unmanaged glTexImage3DMultisample; - internal delegate* unmanaged glGetMultisamplefv; - internal delegate* unmanaged glSampleMaski; - internal delegate* unmanaged glBindFragDataLocationIndexed; - internal delegate* unmanaged glGetFragDataIndex; - internal delegate* unmanaged glGenSamplers; - internal delegate* unmanaged glDeleteSamplers; - internal delegate* unmanaged glIsSampler; - internal delegate* unmanaged glBindSampler; - internal delegate* unmanaged glSamplerParameteri; - internal delegate* unmanaged glSamplerParameteriv; - internal delegate* unmanaged glSamplerParameterf; - internal delegate* unmanaged glSamplerParameterfv; - internal delegate* unmanaged glSamplerParameterIiv; - internal delegate* unmanaged glSamplerParameterIuiv; - internal delegate* unmanaged glGetSamplerParameteriv; - internal delegate* unmanaged glGetSamplerParameterIiv; - internal delegate* unmanaged glGetSamplerParameterfv; - internal delegate* unmanaged glGetSamplerParameterIuiv; - internal delegate* unmanaged glQueryCounter; - internal delegate* unmanaged glGetQueryObjecti64v; - internal delegate* unmanaged glGetQueryObjectui64v; - internal delegate* unmanaged glVertexAttribDivisor; + internal delegate* unmanaged glVertexAttribIFormat; + internal delegate* unmanaged glVertexAttribIPointer; + internal delegate* unmanaged glVertexAttribL1d; + internal delegate* unmanaged glVertexAttribL1dv; + internal delegate* unmanaged glVertexAttribL2d; + internal delegate* unmanaged glVertexAttribL2dv; + internal delegate* unmanaged glVertexAttribL3d; + internal delegate* unmanaged glVertexAttribL3dv; + internal delegate* unmanaged glVertexAttribL4d; + internal delegate* unmanaged glVertexAttribL4dv; + internal delegate* unmanaged glVertexAttribLFormat; + internal delegate* unmanaged glVertexAttribLPointer; internal delegate* unmanaged glVertexAttribP1ui; internal delegate* unmanaged glVertexAttribP1uiv; internal delegate* unmanaged glVertexAttribP2ui; @@ -352,317 +657,12 @@ namespace StgSharp.Graphics.OpenGL internal delegate* unmanaged glVertexAttribP3uiv; internal delegate* unmanaged glVertexAttribP4ui; internal delegate* unmanaged glVertexAttribP4uiv; - internal delegate* unmanaged glMinSampleShading; - internal delegate* unmanaged glBlendEquationi; - internal delegate* unmanaged glBlendEquationSeparatei; - internal delegate* unmanaged glBlendFunci; - internal delegate* unmanaged glBlendFuncSeparatei; - internal delegate* unmanaged glDrawArraysIndirect; - internal delegate* unmanaged glDrawElementsIndirect; - internal delegate* unmanaged glUniform1d; - internal delegate* unmanaged glUniform2d; - internal delegate* unmanaged glUniform3d; - internal delegate* unmanaged glUniform4d; - internal delegate* unmanaged glUniform1dv; - internal delegate* unmanaged glUniform2dv; - internal delegate* unmanaged glUniform3dv; - internal delegate* unmanaged glUniform4dv; - internal delegate* unmanaged glUniformMatrix2dv; - internal delegate* unmanaged glUniformMatrix3dv; - internal delegate* unmanaged glUniformMatrix4dv; - internal delegate* unmanaged glUniformMatrix2x3dv; - internal delegate* unmanaged glUniformMatrix2x4dv; - internal delegate* unmanaged glUniformMatrix3x2dv; - internal delegate* unmanaged glUniformMatrix3x4dv; - internal delegate* unmanaged glUniformMatrix4x2dv; - internal delegate* unmanaged glUniformMatrix4x3dv; - internal delegate* unmanaged glGetUniformdv; - internal delegate* unmanaged glGetSubroutineUniformLocation; - internal delegate* unmanaged glGetSubroutineIndex; - internal delegate* unmanaged glGetActiveSubroutineUniformiv; - internal delegate* unmanaged glGetActiveSubroutineUniformName; - internal delegate* unmanaged glGetActiveSubroutineName; - internal delegate* unmanaged glUniformSubroutinesuiv; - internal delegate* unmanaged glGetUniformSubroutineuiv; - internal delegate* unmanaged glGetProgramStageiv; - internal delegate* unmanaged glPatchParameteri; - internal delegate* unmanaged glPatchParameterfv; - internal delegate* unmanaged glBindTransformFeedback; - internal delegate* unmanaged glDeleteTransformFeedbacks; - internal delegate* unmanaged glGenTransformFeedbacks; - internal delegate* unmanaged glIsTransformFeedback; - internal delegate* unmanaged glPauseTransformFeedback; - internal delegate* unmanaged glResumeTransformFeedback; - internal delegate* unmanaged glDrawTransformFeedback; - internal delegate* unmanaged glDrawTransformFeedbackStream; - internal delegate* unmanaged glBeginQueryIndexed; - internal delegate* unmanaged glEndQueryIndexed; - internal delegate* unmanaged glGetQueryIndexediv; - internal delegate* unmanaged glReleaseShaderCompiler; - internal delegate* unmanaged glShaderBinary; - internal delegate* unmanaged glGetShaderPrecisionFormat; - internal delegate* unmanaged glDepthRangef; - internal delegate* unmanaged glClearDepthf; - internal delegate* unmanaged glGetProgramBinary; - internal delegate* unmanaged glProgramBinary; - internal delegate* unmanaged glProgramParameteri; - internal delegate* unmanaged glUseProgramStages; - internal delegate* unmanaged glActiveShaderProgram; - internal delegate* unmanaged glCreateShaderProgramv; - internal delegate* unmanaged glBindProgramPipeline; - internal delegate* unmanaged glDeleteProgramPipelines; - internal delegate* unmanaged glGenProgramPipelines; - internal delegate* unmanaged glIsProgramPipeline; - internal delegate* unmanaged glGetProgramPipelineiv; - internal delegate* unmanaged glProgramUniform1i; - internal delegate* unmanaged glProgramUniform1iv; - internal delegate* unmanaged glProgramUniform1f; - internal delegate* unmanaged glProgramUniform1fv; - internal delegate* unmanaged glProgramUniform1d; - internal delegate* unmanaged glProgramUniform1dv; - internal delegate* unmanaged glProgramUniform1ui; - internal delegate* unmanaged glProgramUniform1uiv; - internal delegate* unmanaged glProgramUniform2i; - internal delegate* unmanaged glProgramUniform2iv; - internal delegate* unmanaged glProgramUniform2f; - internal delegate* unmanaged glProgramUniform2fv; - internal delegate* unmanaged glProgramUniform2d; - internal delegate* unmanaged glProgramUniform2dv; - internal delegate* unmanaged glProgramUniform2ui; - internal delegate* unmanaged glProgramUniform2uiv; - internal delegate* unmanaged glProgramUniform3i; - internal delegate* unmanaged glProgramUniform3iv; - internal delegate* unmanaged glProgramUniform3f; - internal delegate* unmanaged glProgramUniform3fv; - internal delegate* unmanaged glProgramUniform3d; - internal delegate* unmanaged glProgramUniform3dv; - internal delegate* unmanaged glProgramUniform3ui; - internal delegate* unmanaged glProgramUniform3uiv; - internal delegate* unmanaged glProgramUniform4i; - internal delegate* unmanaged glProgramUniform4iv; - internal delegate* unmanaged glProgramUniform4f; - internal delegate* unmanaged glProgramUniform4fv; - internal delegate* unmanaged glProgramUniform4d; - internal delegate* unmanaged glProgramUniform4dv; - internal delegate* unmanaged glProgramUniform4ui; - internal delegate* unmanaged glProgramUniform4uiv; - internal delegate* unmanaged glProgramUniformMatrix2fv; - internal delegate* unmanaged glProgramUniformMatrix3fv; - internal delegate* unmanaged glProgramUniformMatrix4fv; - internal delegate* unmanaged glProgramUniformMatrix2dv; - internal delegate* unmanaged glProgramUniformMatrix3dv; - internal delegate* unmanaged glProgramUniformMatrix4dv; - internal delegate* unmanaged glProgramUniformMatrix2x3fv; - internal delegate* unmanaged glProgramUniformMatrix3x2fv; - internal delegate* unmanaged glProgramUniformMatrix2x4fv; - internal delegate* unmanaged glProgramUniformMatrix4x2fv; - internal delegate* unmanaged glProgramUniformMatrix3x4fv; - internal delegate* unmanaged glProgramUniformMatrix4x3fv; - internal delegate* unmanaged glProgramUniformMatrix2x3dv; - internal delegate* unmanaged glProgramUniformMatrix3x2dv; - internal delegate* unmanaged glProgramUniformMatrix2x4dv; - internal delegate* unmanaged glProgramUniformMatrix4x2dv; - internal delegate* unmanaged glProgramUniformMatrix3x4dv; - internal delegate* unmanaged glProgramUniformMatrix4x3dv; - internal delegate* unmanaged glValidateProgramPipeline; - internal delegate* unmanaged glGetProgramPipelineInfoLog; - internal delegate* unmanaged glVertexAttribL1d; - internal delegate* unmanaged glVertexAttribL2d; - internal delegate* unmanaged glVertexAttribL3d; - internal delegate* unmanaged glVertexAttribL4d; - internal delegate* unmanaged glVertexAttribL1dv; - internal delegate* unmanaged glVertexAttribL2dv; - internal delegate* unmanaged glVertexAttribL3dv; - internal delegate* unmanaged glVertexAttribL4dv; - internal delegate* unmanaged glVertexAttribLPointer; - internal delegate* unmanaged glGetVertexAttribLdv; + internal delegate* unmanaged glVertexAttribPointer; + internal delegate* unmanaged glVertexBindingDivisor; + internal delegate* unmanaged glViewport; internal delegate* unmanaged glViewportArrayv; internal delegate* unmanaged glViewportIndexedf; internal delegate* unmanaged glViewportIndexedfv; - internal delegate* unmanaged glScissorArrayv; - internal delegate* unmanaged glScissorIndexed; - internal delegate* unmanaged glScissorIndexedv; - internal delegate* unmanaged glDepthRangeArrayv; - internal delegate* unmanaged glDepthRangeIndexed; - internal delegate* unmanaged glGetFloati_v; - internal delegate* unmanaged glGetDoublei_v; - internal delegate* unmanaged glDrawArraysInstancedBaseInstance; - internal delegate* unmanaged glDrawElementsInstancedBaseInstance; - internal delegate* unmanaged glDrawElementsInstancedBaseVertexBaseInstance; - internal delegate* unmanaged glGetInternalformativ; - internal delegate* unmanaged glGetActiveAtomicCounterBufferiv; - internal delegate* unmanaged glBindImageTexture; - internal delegate* unmanaged glMemoryBarrier; - internal delegate* unmanaged glTexStorage1D; - internal delegate* unmanaged glTexStorage2D; - internal delegate* unmanaged glTexStorage3D; - internal delegate* unmanaged glDrawTransformFeedbackInstanced; - internal delegate* unmanaged glDrawTransformFeedbackStreamInstanced; - internal delegate* unmanaged glClearBufferData; - internal delegate* unmanaged glClearBufferSubData; - internal delegate* unmanaged glDispatchCompute; - internal delegate* unmanaged glDispatchComputeIndirect; - internal delegate* unmanaged glCopyImageSubData; - internal delegate* unmanaged glFramebufferParameteri; - internal delegate* unmanaged glGetFramebufferParameteriv; - internal delegate* unmanaged glGetInternalformati64v; - internal delegate* unmanaged glInvalidateTexSubImage; - internal delegate* unmanaged glInvalidateTexImage; - internal delegate* unmanaged glInvalidateBufferSubData; - internal delegate* unmanaged glInvalidateBufferData; - internal delegate* unmanaged glInvalidateFramebuffer; - internal delegate* unmanaged glInvalidateSubFramebuffer; - internal delegate* unmanaged glMultiDrawArraysIndirect; - internal delegate* unmanaged glMultiDrawElementsIndirect; - internal delegate* unmanaged glGetProgramInterfaceiv; - internal delegate* unmanaged glGetProgramResourceIndex; - internal delegate* unmanaged glGetProgramResourceName; - internal delegate* unmanaged glGetProgramResourceiv; - internal delegate* unmanaged glGetProgramResourceLocation; - internal delegate* unmanaged glGetProgramResourceLocationIndex; - internal delegate* unmanaged glShaderStorageBlockBinding; - internal delegate* unmanaged glTexBufferRange; - internal delegate* unmanaged glTexStorage2DMultisample; - internal delegate* unmanaged glTexStorage3DMultisample; - internal delegate* unmanaged glTextureView; - internal delegate* unmanaged glBindVertexBuffer; - internal delegate* unmanaged glVertexAttribFormat; - internal delegate* unmanaged glVertexAttribIFormat; - internal delegate* unmanaged glVertexAttribLFormat; - internal delegate* unmanaged glVertexAttribBinding; - internal delegate* unmanaged glVertexBindingDivisor; - internal delegate* unmanaged glDebugMessageControl; - internal delegate* unmanaged glDebugMessageInsert; - internal delegate* unmanaged, void*, void> glDebugMessageCallback; - internal delegate* unmanaged glGetDebugMessageLog; - internal delegate* unmanaged glPushDebugGroup; - internal delegate* unmanaged glPopDebugGroup; - internal delegate* unmanaged glObjectLabel; - internal delegate* unmanaged glGetObjectLabel; - internal delegate* unmanaged glObjectPtrLabel; - internal delegate* unmanaged glGetObjectPtrLabel; - internal delegate* unmanaged glBufferStorage; - internal delegate* unmanaged glClearTexImage; - internal delegate* unmanaged glClearTexSubImage; - internal delegate* unmanaged glBindBuffersBase; - internal delegate* unmanaged glBindBuffersRange; - internal delegate* unmanaged glBindTextures; - internal delegate* unmanaged glBindSamplers; - internal delegate* unmanaged glBindImageTextures; - internal delegate* unmanaged glBindVertexBuffers; - internal delegate* unmanaged glClipControl; - internal delegate* unmanaged glCreateTransformFeedbacks; - internal delegate* unmanaged glTransformFeedbackBufferBase; - internal delegate* unmanaged glTransformFeedbackBufferRange; - internal delegate* unmanaged glGetTransformFeedbackiv; - internal delegate* unmanaged glGetTransformFeedbacki_v; - internal delegate* unmanaged glGetTransformFeedbacki64_v; - internal delegate* unmanaged glCreateBuffers; - internal delegate* unmanaged glNamedBufferStorage; - internal delegate* unmanaged glNamedBufferData; - internal delegate* unmanaged glNamedBufferSubData; - internal delegate* unmanaged glCopyNamedBufferSubData; - internal delegate* unmanaged glClearNamedBufferData; - internal delegate* unmanaged glClearNamedBufferSubData; - internal delegate* unmanaged glMapNamedBuffer; - internal delegate* unmanaged glMapNamedBufferRange; - internal delegate* unmanaged glUnmapNamedBuffer; - internal delegate* unmanaged glFlushMappedNamedBufferRange; - internal delegate* unmanaged glGetNamedBufferParameteriv; - internal delegate* unmanaged glGetNamedBufferParameteri64v; - internal delegate* unmanaged glGetNamedBufferPointerv; - internal delegate* unmanaged glGetNamedBufferSubData; - internal delegate* unmanaged glCreateFramebuffers; - internal delegate* unmanaged glNamedFramebufferRenderbuffer; - internal delegate* unmanaged glNamedFramebufferParameteri; - internal delegate* unmanaged glNamedFramebufferTexture; - internal delegate* unmanaged glNamedFramebufferTextureLayer; - internal delegate* unmanaged glNamedFramebufferDrawBuffer; - internal delegate* unmanaged glNamedFramebufferDrawBuffers; - internal delegate* unmanaged glNamedFramebufferReadBuffer; - internal delegate* unmanaged glInvalidateNamedFramebufferData; - internal delegate* unmanaged glInvalidateNamedFramebufferSubData; - internal delegate* unmanaged glClearNamedFramebufferiv; - internal delegate* unmanaged glClearNamedFramebufferuiv; - internal delegate* unmanaged glClearNamedFramebufferfv; - internal delegate* unmanaged glClearNamedFramebufferfi; - internal delegate* unmanaged glBlitNamedFramebuffer; - internal delegate* unmanaged glCheckNamedFramebufferStatus; - internal delegate* unmanaged glGetNamedFramebufferParameteriv; - internal delegate* unmanaged glGetNamedFramebufferAttachmentParameteriv; - internal delegate* unmanaged glCreateRenderbuffers; - internal delegate* unmanaged glNamedRenderbufferStorage; - internal delegate* unmanaged glNamedRenderbufferStorageMultisample; - internal delegate* unmanaged glGetNamedRenderbufferParameteriv; - internal delegate* unmanaged glCreateTextures; - internal delegate* unmanaged glTextureBuffer; - internal delegate* unmanaged glTextureBufferRange; - internal delegate* unmanaged glTextureStorage1D; - internal delegate* unmanaged glTextureStorage2D; - internal delegate* unmanaged glTextureStorage3D; - internal delegate* unmanaged glTextureStorage2DMultisample; - internal delegate* unmanaged glTextureStorage3DMultisample; - internal delegate* unmanaged glTextureSubImage1D; - internal delegate* unmanaged glTextureSubImage2D; - internal delegate* unmanaged glTextureSubImage3D; - internal delegate* unmanaged glCompressedTextureSubImage1D; - internal delegate* unmanaged glCompressedTextureSubImage2D; - internal delegate* unmanaged glCompressedTextureSubImage3D; - internal delegate* unmanaged glCopyTextureSubImage1D; - internal delegate* unmanaged glCopyTextureSubImage2D; - internal delegate* unmanaged glCopyTextureSubImage3D; - internal delegate* unmanaged glTextureParameterf; - internal delegate* unmanaged glTextureParameterfv; - internal delegate* unmanaged glTextureParameteri; - internal delegate* unmanaged glTextureParameterIiv; - internal delegate* unmanaged glTextureParameterIuiv; - internal delegate* unmanaged glTextureParameteriv; - internal delegate* unmanaged glGenerateTextureMipmap; - internal delegate* unmanaged glBindTextureUnit; - internal delegate* unmanaged glGetTextureImage; - internal delegate* unmanaged glGetCompressedTextureImage; - internal delegate* unmanaged glGetTextureLevelParameterfv; - internal delegate* unmanaged glGetTextureLevelParameteriv; - internal delegate* unmanaged glGetTextureParameterfv; - internal delegate* unmanaged glGetTextureParameterIiv; - internal delegate* unmanaged glGetTextureParameterIuiv; - internal delegate* unmanaged glGetTextureParameteriv; - internal delegate* unmanaged glCreateVertexArrays; - internal delegate* unmanaged glDisableVertexArrayAttrib; - internal delegate* unmanaged glEnableVertexArrayAttrib; - internal delegate* unmanaged glVertexArrayElementBuffer; - internal delegate* unmanaged glVertexArrayVertexBuffer; - internal delegate* unmanaged glVertexArrayVertexBuffers; - internal delegate* unmanaged glVertexArrayAttribBinding; - internal delegate* unmanaged glVertexArrayAttribFormat; - internal delegate* unmanaged glVertexArrayAttribIFormat; - internal delegate* unmanaged glVertexArrayAttribLFormat; - internal delegate* unmanaged glVertexArrayBindingDivisor; - internal delegate* unmanaged glGetVertexArrayiv; - internal delegate* unmanaged glGetVertexArrayIndexediv; - internal delegate* unmanaged glGetVertexArrayIndexed64iv; - internal delegate* unmanaged glCreateSamplers; - internal delegate* unmanaged glCreateProgramPipelines; - internal delegate* unmanaged glCreateQueries; - internal delegate* unmanaged glGetQueryBufferObjecti64v; - internal delegate* unmanaged glGetQueryBufferObjectiv; - internal delegate* unmanaged glGetQueryBufferObjectui64v; - internal delegate* unmanaged glGetQueryBufferObjectuiv; - internal delegate* unmanaged glMemoryBarrierByRegion; - internal delegate* unmanaged glGetTextureSubImage; - internal delegate* unmanaged glGetCompressedTextureSubImage; - internal delegate* unmanaged glGetGraphicsResetStatus; - internal delegate* unmanaged glGetnCompressedTexImage; - internal delegate* unmanaged glGetnTexImage; - internal delegate* unmanaged glGetnUniformdv; - internal delegate* unmanaged glGetnUniformfv; - internal delegate* unmanaged glGetnUniformiv; - internal delegate* unmanaged glGetnUniformuiv; - internal delegate* unmanaged glReadnPixels; - internal delegate* unmanaged glTextureBarrier; - internal delegate* unmanaged glSpecializeShader; - internal delegate* unmanaged glMultiDrawArraysIndirectCount; - internal delegate* unmanaged glMultiDrawElementsIndirectCount; - internal delegate* unmanaged glPolygonOffsetClamp; + internal delegate* unmanaged glWaitSync; } } diff --git a/src/StgSharp.Graphics/StgSharp.Graphics.csproj b/src/StgSharp.Graphics/StgSharp.Graphics.csproj index 411e8adc..1bec9387 100644 --- a/src/StgSharp.Graphics/StgSharp.Graphics.csproj +++ b/src/StgSharp.Graphics/StgSharp.Graphics.csproj @@ -5,4 +5,8 @@ + + + + diff --git a/tools/StgSharp.GenerateGL/Generation/OpenGlGenerator.cs b/tools/StgSharp.GenerateGL/Generation/OpenGlGenerator.cs index df81ba8f..35b91b2f 100644 --- a/tools/StgSharp.GenerateGL/Generation/OpenGlGenerator.cs +++ b/tools/StgSharp.GenerateGL/Generation/OpenGlGenerator.cs @@ -331,7 +331,9 @@ namespace StgSharp.GenerateGL.Generation builder.Append("{\n"); builder.Append(" public unsafe partial struct OpenglContext\n"); builder.Append(" {\n"); - foreach (GlCommandDefinition command in commands) + foreach (GlCommandDefinition command in commands.OrderBy( + value => value.Name, + StringComparer.Ordinal)) { builder.Append(" internal delegate* unmanaged<"); foreach (GlParameterDefinition parameter in command.Parameters) @@ -415,12 +417,15 @@ namespace StgSharp.GenerateGL.Generation { string declaration = ReadNativeDeclaration(method.NativeCommand); string page = method.DocumentationPage ?? method.NativeCommand.Name; - builder.Append("\n /// Forwards to the native C API "); + builder.Append("\n /// \n"); + builder.Append(" /// Forwards to the native OpenGL entry point.\n"); + builder.Append(" /// "); builder.Append(EscapeXml(declaration)); - builder.Append(".\n"); - builder.Append(" /// \n"); + builder.Append(" /// See "); + builder.Append("\">docs.gl.\n"); + builder.Append(" /// "); } private static string ReadNativeDeclaration(