opengl source gen tool works

This commit is contained in:
Youmu Liu
2026-08-27 15:05:43 +08:00
parent 5db9f39a46
commit 648cac9d9b
42 changed files with 10247 additions and 10189 deletions
@@ -0,0 +1,927 @@
// <auto-generated>
// Generated by StgSharp.GenerateGL.
// Desktop OpenGL 4.5 core-profile forwarding methods.
// </auto-generated>
using StgSharp.Mathematics.Graphics;
using System;
using System.Runtime.CompilerServices;
namespace StgSharp.Graphics.OpenGL
{
public unsafe partial class OpenGLFunction
{
/// <summary>Forwards to the native C API <c>void glClipControl(GLenum origin, GLenum depth);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClipControl" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClipControl(uint origin, uint depth)
{
__context->glClipControl(origin, depth);
}
/// <summary>Forwards to the native C API <c>void glCreateTransformFeedbacks(GLsizei n, GLuint *ids);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateTransformFeedbacks" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateTransformFeedbacks(Span<GlHandle> ids)
{
fixed (GlHandle* __ids = ids)
{
__context->glCreateTransformFeedbacks(ids.Length, (uint*)__ids);
}
}
/// <summary>Forwards to the native C API <c>void glTransformFeedbackBufferBase(GLuint xfb, GLuint index, GLuint buffer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTransformFeedbackBufferBase" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TransformFeedbackBufferBase(GlHandle xfb, uint index, GlHandle buffer)
{
__context->glTransformFeedbackBufferBase(xfb.Value, index, buffer.Value);
}
/// <summary>Forwards to the native C API <c>void glTransformFeedbackBufferRange(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTransformFeedbackBufferRange" />
[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);
}
/// <summary>Forwards to the native C API <c>void glGetTransformFeedbackiv(GLuint xfb, GLenum pname, GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTransformFeedbackiv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetTransformFeedbackiv(GlHandle xfb, uint pname, int* param)
{
__context->glGetTransformFeedbackiv(xfb.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glGetTransformFeedbacki_v(GLuint xfb, GLenum pname, GLuint index, GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTransformFeedbacki_v" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetTransformFeedbacki_v(GlHandle xfb, uint pname, uint index, int* param)
{
__context->glGetTransformFeedbacki_v(xfb.Value, pname, index, param);
}
/// <summary>Forwards to the native C API <c>void glGetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, GLint64 *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTransformFeedbacki64_v" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetTransformFeedbacki64_v(GlHandle xfb, uint pname, uint index, long* param)
{
__context->glGetTransformFeedbacki64_v(xfb.Value, pname, index, param);
}
/// <summary>Forwards to the native C API <c>void glCreateBuffers(GLsizei n, GLuint *buffers);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateBuffers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateBuffers(Span<GlHandle> buffers)
{
fixed (GlHandle* __buffers = buffers)
{
__context->glCreateBuffers(buffers.Length, (uint*)__buffers);
}
}
/// <summary>Forwards to the native C API <c>void glNamedBufferStorage(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedBufferStorage" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedBufferStorage(GlHandle buffer, nint size, void* data, uint flags)
{
__context->glNamedBufferStorage(buffer.Value, size, data, flags);
}
/// <summary>Forwards to the native C API <c>void glNamedBufferData(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedBufferData" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedBufferData(GlHandle buffer, nint size, void* data, uint usage)
{
__context->glNamedBufferData(buffer.Value, size, data, usage);
}
/// <summary>Forwards to the native C API <c>void glNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedBufferSubData" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedBufferSubData(GlHandle buffer, nint offset, nint size, void* data)
{
__context->glNamedBufferSubData(buffer.Value, offset, size, data);
}
/// <summary>Forwards to the native C API <c>void glCopyNamedBufferSubData(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCopyNamedBufferSubData" />
[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);
}
/// <summary>Forwards to the native C API <c>void glClearNamedBufferData(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedBufferData" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClearNamedBufferData(GlHandle buffer, uint internalFormat, uint format, uint type, void* data)
{
__context->glClearNamedBufferData(buffer.Value, internalFormat, format, type, data);
}
/// <summary>Forwards to the native C API <c>void glClearNamedBufferSubData(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedBufferSubData" />
[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);
}
/// <summary>Forwards to the native C API <c>void *glMapNamedBuffer(GLuint buffer, GLenum access);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glMapNamedBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void* MapNamedBuffer(GlHandle buffer, uint access)
{
return __context->glMapNamedBuffer(buffer.Value, access);
}
/// <summary>Forwards to the native C API <c>void *glMapNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glMapNamedBufferRange" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void* MapNamedBufferRange(GlHandle buffer, nint offset, nint length, uint access)
{
return __context->glMapNamedBufferRange(buffer.Value, offset, length, access);
}
/// <summary>Forwards to the native C API <c>GLboolean glUnmapNamedBuffer(GLuint buffer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glUnmapNamedBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public byte UnmapNamedBuffer(GlHandle buffer)
{
return __context->glUnmapNamedBuffer(buffer.Value);
}
/// <summary>Forwards to the native C API <c>void glFlushMappedNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glFlushMappedNamedBufferRange" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void FlushMappedNamedBufferRange(GlHandle buffer, nint offset, nint length)
{
__context->glFlushMappedNamedBufferRange(buffer.Value, offset, length);
}
/// <summary>Forwards to the native C API <c>void glGetNamedBufferParameteriv(GLuint buffer, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedBufferParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedBufferParameter(GlHandle buffer, uint pname, int* @params)
{
__context->glGetNamedBufferParameteriv(buffer.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetNamedBufferParameteri64v(GLuint buffer, GLenum pname, GLint64 *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedBufferParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedBufferParameter(GlHandle buffer, uint pname, long* @params)
{
__context->glGetNamedBufferParameteri64v(buffer.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetNamedBufferPointerv(GLuint buffer, GLenum pname, void **params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedBufferPointerv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedBufferPointerv(GlHandle buffer, uint pname, void** @params)
{
__context->glGetNamedBufferPointerv(buffer.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedBufferSubData" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedBufferSubData(GlHandle buffer, nint offset, nint size, void* data)
{
__context->glGetNamedBufferSubData(buffer.Value, offset, size, data);
}
/// <summary>Forwards to the native C API <c>void glCreateFramebuffers(GLsizei n, GLuint *framebuffers);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateFramebuffers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateFrameBuffers(Span<GlHandle> frameBuffers)
{
fixed (GlHandle* __frameBuffers = frameBuffers)
{
__context->glCreateFramebuffers(frameBuffers.Length, (uint*)__frameBuffers);
}
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferRenderbuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferRenderBuffer(GlHandle frameBuffer, uint attachment, uint renderBuffertarget, GlHandle renderBuffer)
{
__context->glNamedFramebufferRenderbuffer(frameBuffer.Value, attachment, renderBuffertarget, renderBuffer.Value);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname, GLint param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferParameteri" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferParameteri(GlHandle frameBuffer, uint pname, int param)
{
__context->glNamedFramebufferParameteri(frameBuffer.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferTexture(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferTexture" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferTexture(GlHandle frameBuffer, uint attachment, GlHandle texture, int level)
{
__context->glNamedFramebufferTexture(frameBuffer.Value, attachment, texture.Value, level);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferTextureLayer" />
[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);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferDrawBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferDrawBuffer(GlHandle frameBuffer, uint buf)
{
__context->glNamedFramebufferDrawBuffer(frameBuffer.Value, buf);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n, const GLenum *bufs);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferDrawBuffers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferDrawBuffers(GlHandle frameBuffer, int n, uint* bufs)
{
__context->glNamedFramebufferDrawBuffers(frameBuffer.Value, n, bufs);
}
/// <summary>Forwards to the native C API <c>void glNamedFramebufferReadBuffer(GLuint framebuffer, GLenum src);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedFramebufferReadBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedFrameBufferReadBuffer(GlHandle frameBuffer, uint src)
{
__context->glNamedFramebufferReadBuffer(frameBuffer.Value, src);
}
/// <summary>Forwards to the native C API <c>void glInvalidateNamedFramebufferData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glInvalidateNamedFramebufferData" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void InvalidateNamedFrameBufferData(GlHandle frameBuffer, int numAttachments, uint* attachments)
{
__context->glInvalidateNamedFramebufferData(frameBuffer.Value, numAttachments, attachments);
}
/// <summary>Forwards to the native C API <c>void glInvalidateNamedFramebufferSubData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glInvalidateNamedFramebufferSubData" />
[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);
}
/// <summary>Forwards to the native C API <c>void glClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedFramebuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, int* value)
{
__context->glClearNamedFramebufferiv(frameBuffer.Value, buffer, drawbuffer, value);
}
/// <summary>Forwards to the native C API <c>void glClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedFramebuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, uint* value)
{
__context->glClearNamedFramebufferuiv(frameBuffer.Value, buffer, drawbuffer, value);
}
/// <summary>Forwards to the native C API <c>void glClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedFramebuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, float* value)
{
__context->glClearNamedFramebufferfv(frameBuffer.Value, buffer, drawbuffer, value);
}
/// <summary>Forwards to the native C API <c>void glClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glClearNamedFramebuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ClearNamedFrameBuffer(GlHandle frameBuffer, uint buffer, int drawbuffer, float depth, int stencil)
{
__context->glClearNamedFramebufferfi(frameBuffer.Value, buffer, drawbuffer, depth, stencil);
}
/// <summary>Forwards to the native C API <c>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);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glBlitNamedFramebuffer" />
[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);
}
/// <summary>Forwards to the native C API <c>GLenum glCheckNamedFramebufferStatus(GLuint framebuffer, GLenum target);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCheckNamedFramebufferStatus" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public uint CheckNamedFrameBufferStatus(GlHandle frameBuffer, uint target)
{
return __context->glCheckNamedFramebufferStatus(frameBuffer.Value, target);
}
/// <summary>Forwards to the native C API <c>void glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedFramebufferParameteriv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedFrameBufferParameteriv(GlHandle frameBuffer, uint pname, int* param)
{
__context->glGetNamedFramebufferParameteriv(frameBuffer.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glGetNamedFramebufferAttachmentParameteriv(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedFramebufferAttachmentParameteriv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedFrameBufferAttachmentParameteriv(GlHandle frameBuffer, uint attachment, uint pname, int* @params)
{
__context->glGetNamedFramebufferAttachmentParameteriv(frameBuffer.Value, attachment, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glCreateRenderbuffers(GLsizei n, GLuint *renderbuffers);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateRenderbuffers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateRenderBuffers(Span<GlHandle> renderBuffers)
{
fixed (GlHandle* __renderBuffers = renderBuffers)
{
__context->glCreateRenderbuffers(renderBuffers.Length, (uint*)__renderBuffers);
}
}
/// <summary>Forwards to the native C API <c>void glNamedRenderbufferStorage(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedRenderbufferStorage" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedRenderBufferStorage(GlHandle renderBuffer, uint internalFormat, int width, int height)
{
__context->glNamedRenderbufferStorage(renderBuffer.Value, internalFormat, width, height);
}
/// <summary>Forwards to the native C API <c>void glNamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glNamedRenderbufferStorageMultisample" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedRenderBufferStorageMultisample(GlHandle renderBuffer, int samples, uint internalFormat, int width, int height)
{
__context->glNamedRenderbufferStorageMultisample(renderBuffer.Value, samples, internalFormat, width, height);
}
/// <summary>Forwards to the native C API <c>void glGetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetNamedRenderbufferParameteriv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedRenderBufferParameteriv(GlHandle renderBuffer, uint pname, int* @params)
{
__context->glGetNamedRenderbufferParameteriv(renderBuffer.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glCreateTextures(GLenum target, GLsizei n, GLuint *textures);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateTextures" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateTextures(uint target, Span<GlHandle> textures)
{
fixed (GlHandle* __textures = textures)
{
__context->glCreateTextures(target, textures.Length, (uint*)__textures);
}
}
/// <summary>Forwards to the native C API <c>void glTextureBuffer(GLuint texture, GLenum internalformat, GLuint buffer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TextureBuffer(GlHandle texture, uint internalFormat, GlHandle buffer)
{
__context->glTextureBuffer(texture.Value, internalFormat, buffer.Value);
}
/// <summary>Forwards to the native C API <c>void glTextureBufferRange(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureBufferRange" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureStorage1D" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TextureStorage1D(GlHandle texture, int levels, uint internalFormat, int width)
{
__context->glTextureStorage1D(texture.Value, levels, internalFormat, width);
}
/// <summary>Forwards to the native C API <c>void glTextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureStorage2D" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TextureStorage2D(GlHandle texture, int levels, uint internalFormat, int width, int height)
{
__context->glTextureStorage2D(texture.Value, levels, internalFormat, width, height);
}
/// <summary>Forwards to the native C API <c>void glTextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureStorage3D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureStorage2DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureStorage2DMultisample" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureStorage3DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureStorage3DMultisample" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureSubImage1D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureSubImage2D" />
[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);
}
/// <summary>Forwards to the native C API <c>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);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureSubImage3D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glCompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCompressedTextureSubImage1D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glCompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCompressedTextureSubImage2D" />
[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);
}
/// <summary>Forwards to the native C API <c>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);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCompressedTextureSubImage3D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glCopyTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCopyTextureSubImage1D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glCopyTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCopyTextureSubImage2D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glCopyTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCopyTextureSubImage3D" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureParameterf(GLuint texture, GLenum pname, GLfloat param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameter(GlHandle texture, uint pname, float param)
{
__context->glTextureParameterf(texture.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glTextureParameterfv(GLuint texture, GLenum pname, const GLfloat *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameter(GlHandle texture, uint pname, float* param)
{
__context->glTextureParameterfv(texture.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glTextureParameteri(GLuint texture, GLenum pname, GLint param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameter(GlHandle texture, uint pname, int param)
{
__context->glTextureParameteri(texture.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glTextureParameterIiv(GLuint texture, GLenum pname, const GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameterInteger(GlHandle texture, uint pname, int* @params)
{
__context->glTextureParameterIiv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glTextureParameterIuiv(GLuint texture, GLenum pname, const GLuint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameterInteger(GlHandle texture, uint pname, uint* @params)
{
__context->glTextureParameterIuiv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glTextureParameteriv(GLuint texture, GLenum pname, const GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void NamedTextureParameter(GlHandle texture, uint pname, int* param)
{
__context->glTextureParameteriv(texture.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glGenerateTextureMipmap(GLuint texture);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGenerateTextureMipmap" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GenerateTextureMipmap(GlHandle texture)
{
__context->glGenerateTextureMipmap(texture.Value);
}
/// <summary>Forwards to the native C API <c>void glBindTextureUnit(GLuint unit, GLuint texture);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glBindTextureUnit" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void BindTextureUnit(uint unit, GlHandle texture)
{
__context->glBindTextureUnit(unit, texture.Value);
}
/// <summary>Forwards to the native C API <c>void glGetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureImage" />
[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);
}
/// <summary>Forwards to the native C API <c>void glGetCompressedTextureImage(GLuint texture, GLint level, GLsizei bufSize, void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetCompressedTextureImage" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetCompressedTextureImage(GlHandle texture, int level, int bufSize, void* pixels)
{
__context->glGetCompressedTextureImage(texture.Value, level, bufSize, pixels);
}
/// <summary>Forwards to the native C API <c>void glGetTextureLevelParameterfv(GLuint texture, GLint level, GLenum pname, GLfloat *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureLevelParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureLevelParameter(GlHandle texture, int level, uint pname, float* @params)
{
__context->glGetTextureLevelParameterfv(texture.Value, level, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetTextureLevelParameteriv(GLuint texture, GLint level, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureLevelParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureLevelParameter(GlHandle texture, int level, uint pname, int* @params)
{
__context->glGetTextureLevelParameteriv(texture.Value, level, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetTextureParameterfv(GLuint texture, GLenum pname, GLfloat *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureParameter(GlHandle texture, uint pname, float* @params)
{
__context->glGetTextureParameterfv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetTextureParameterIiv(GLuint texture, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureParameterInteger(GlHandle texture, uint pname, int* @params)
{
__context->glGetTextureParameterIiv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetTextureParameterIuiv(GLuint texture, GLenum pname, GLuint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureParameterInteger(GlHandle texture, uint pname, uint* @params)
{
__context->glGetTextureParameterIuiv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glGetTextureParameteriv(GLuint texture, GLenum pname, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureParameter" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetNamedTextureParameter(GlHandle texture, uint pname, int* @params)
{
__context->glGetTextureParameteriv(texture.Value, pname, @params);
}
/// <summary>Forwards to the native C API <c>void glCreateVertexArrays(GLsizei n, GLuint *arrays);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateVertexArrays" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateVertexArrays(Span<GlHandle> arrays)
{
fixed (GlHandle* __arrays = arrays)
{
__context->glCreateVertexArrays(arrays.Length, (uint*)__arrays);
}
}
/// <summary>Forwards to the native C API <c>void glDisableVertexArrayAttrib(GLuint vaobj, GLuint index);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glDisableVertexArrayAttrib" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void DisableVertexArrayAttribute(GlHandle vaobj, uint index)
{
__context->glDisableVertexArrayAttrib(vaobj.Value, index);
}
/// <summary>Forwards to the native C API <c>void glEnableVertexArrayAttrib(GLuint vaobj, GLuint index);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glEnableVertexArrayAttrib" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void EnableVertexArrayAttribute(GlHandle vaobj, uint index)
{
__context->glEnableVertexArrayAttrib(vaobj.Value, index);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexArrayElementBuffer" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayElementBuffer(GlHandle vaobj, GlHandle buffer)
{
__context->glVertexArrayElementBuffer(vaobj.Value, buffer.Value);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayVertexBuffer(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexArrayVertexBuffer" />
[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);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexArrayVertexBuffers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayVertexBuffers(GlHandle vaobj, uint first, ReadOnlySpan<GlHandle> buffers, nint* offsets, int* strides)
{
fixed (GlHandle* __buffers = buffers)
{
__context->glVertexArrayVertexBuffers(vaobj.Value, first, buffers.Length, (uint*)__buffers, offsets, strides);
}
}
/// <summary>Forwards to the native C API <c>void glVertexArrayAttribBinding(GLuint vaobj, GLuint attribindex, GLuint bindingindex);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexArrayAttribBinding" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayAttributeBinding(GlHandle vaobj, uint attributeIndex, uint bindingIndex)
{
__context->glVertexArrayAttribBinding(vaobj.Value, attributeIndex, bindingIndex);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayAttribFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexAttribFormat" />
[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);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayAttribIFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexAttribFormat" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayAttributeIntegerFormat(GlHandle vaobj, uint attributeIndex, int size, uint type, uint relativeOffset)
{
__context->glVertexArrayAttribIFormat(vaobj.Value, attributeIndex, size, type, relativeOffset);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayAttribLFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexAttribFormat" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayAttributeDoubleFormat(GlHandle vaobj, uint attributeIndex, int size, uint type, uint relativeOffset)
{
__context->glVertexArrayAttribLFormat(vaobj.Value, attributeIndex, size, type, relativeOffset);
}
/// <summary>Forwards to the native C API <c>void glVertexArrayBindingDivisor(GLuint vaobj, GLuint bindingindex, GLuint divisor);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glVertexArrayBindingDivisor" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void VertexArrayBindingDivisor(GlHandle vaobj, uint bindingIndex, uint divisor)
{
__context->glVertexArrayBindingDivisor(vaobj.Value, bindingIndex, divisor);
}
/// <summary>Forwards to the native C API <c>void glGetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetVertexArrayiv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetVertexArrayiv(GlHandle vaobj, uint pname, int* param)
{
__context->glGetVertexArrayiv(vaobj.Value, pname, param);
}
/// <summary>Forwards to the native C API <c>void glGetVertexArrayIndexediv(GLuint vaobj, GLuint index, GLenum pname, GLint *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetVertexArrayIndexediv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetVertexArrayIndexediv(GlHandle vaobj, uint index, uint pname, int* param)
{
__context->glGetVertexArrayIndexediv(vaobj.Value, index, pname, param);
}
/// <summary>Forwards to the native C API <c>void glGetVertexArrayIndexed64iv(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetVertexArrayIndexed64iv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetVertexArrayIndexed64iv(GlHandle vaobj, uint index, uint pname, long* param)
{
__context->glGetVertexArrayIndexed64iv(vaobj.Value, index, pname, param);
}
/// <summary>Forwards to the native C API <c>void glCreateSamplers(GLsizei n, GLuint *samplers);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateSamplers" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateSamplers(Span<GlHandle> samplers)
{
fixed (GlHandle* __samplers = samplers)
{
__context->glCreateSamplers(samplers.Length, (uint*)__samplers);
}
}
/// <summary>Forwards to the native C API <c>void glCreateProgramPipelines(GLsizei n, GLuint *pipelines);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateProgramPipelines" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateProgramPipelines(Span<GlHandle> pipelines)
{
fixed (GlHandle* __pipelines = pipelines)
{
__context->glCreateProgramPipelines(pipelines.Length, (uint*)__pipelines);
}
}
/// <summary>Forwards to the native C API <c>void glCreateQueries(GLenum target, GLsizei n, GLuint *ids);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glCreateQueries" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void CreateQueries(uint target, Span<GlHandle> ids)
{
fixed (GlHandle* __ids = ids)
{
__context->glCreateQueries(target, ids.Length, (uint*)__ids);
}
}
/// <summary>Forwards to the native C API <c>void glGetQueryBufferObjecti64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetQueryBufferObjecti64v" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetQueryBufferObjecti64v(GlHandle id, GlHandle buffer, uint pname, nint offset)
{
__context->glGetQueryBufferObjecti64v(id.Value, buffer.Value, pname, offset);
}
/// <summary>Forwards to the native C API <c>void glGetQueryBufferObjectiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetQueryBufferObjectiv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetQueryBufferObjectiv(GlHandle id, GlHandle buffer, uint pname, nint offset)
{
__context->glGetQueryBufferObjectiv(id.Value, buffer.Value, pname, offset);
}
/// <summary>Forwards to the native C API <c>void glGetQueryBufferObjectui64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetQueryBufferObjectui64v" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetQueryBufferObjectui64v(GlHandle id, GlHandle buffer, uint pname, nint offset)
{
__context->glGetQueryBufferObjectui64v(id.Value, buffer.Value, pname, offset);
}
/// <summary>Forwards to the native C API <c>void glGetQueryBufferObjectuiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetQueryBufferObjectuiv" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetQueryBufferObjectuiv(GlHandle id, GlHandle buffer, uint pname, nint offset)
{
__context->glGetQueryBufferObjectuiv(id.Value, buffer.Value, pname, offset);
}
/// <summary>Forwards to the native C API <c>void glMemoryBarrierByRegion(GLbitfield barriers);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glMemoryBarrierByRegion" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void MemoryBarrierByRegion(uint barriers)
{
__context->glMemoryBarrierByRegion(barriers);
}
/// <summary>Forwards to the native C API <c>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);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetTextureSubImage" />
[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);
}
/// <summary>Forwards to the native C API <c>void glGetCompressedTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetCompressedTextureSubImage" />
[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);
}
/// <summary>Forwards to the native C API <c>GLenum glGetGraphicsResetStatus();</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetGraphicsResetStatus" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public uint GetGraphicsResetStatus()
{
return __context->glGetGraphicsResetStatus();
}
/// <summary>Forwards to the native C API <c>void glGetnCompressedTexImage(GLenum target, GLint lod, GLsizei bufSize, void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnCompressedTexImage" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetnCompressedTexImage(uint target, int lod, int bufSize, void* pixels)
{
__context->glGetnCompressedTexImage(target, lod, bufSize, pixels);
}
/// <summary>Forwards to the native C API <c>void glGetnTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnTexImage" />
[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);
}
/// <summary>Forwards to the native C API <c>void glGetnUniformdv(GLuint program, GLint location, GLsizei bufSize, GLdouble *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnUniform" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetUniform(GlHandle program, int location, int bufSize, double* @params)
{
__context->glGetnUniformdv(program.Value, location, bufSize, @params);
}
/// <summary>Forwards to the native C API <c>void glGetnUniformfv(GLuint program, GLint location, GLsizei bufSize, GLfloat *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnUniform" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetUniform(GlHandle program, int location, int bufSize, float* @params)
{
__context->glGetnUniformfv(program.Value, location, bufSize, @params);
}
/// <summary>Forwards to the native C API <c>void glGetnUniformiv(GLuint program, GLint location, GLsizei bufSize, GLint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnUniform" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetUniform(GlHandle program, int location, int bufSize, int* @params)
{
__context->glGetnUniformiv(program.Value, location, bufSize, @params);
}
/// <summary>Forwards to the native C API <c>void glGetnUniformuiv(GLuint program, GLint location, GLsizei bufSize, GLuint *params);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glGetnUniform" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetUniform(GlHandle program, int location, int bufSize, uint* @params)
{
__context->glGetnUniformuiv(program.Value, location, bufSize, @params);
}
/// <summary>Forwards to the native C API <c>void glReadnPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glReadnPixels" />
[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);
}
/// <summary>Forwards to the native C API <c>void glTextureBarrier();</c>.</summary>
/// <seealso href="https://docs.gl/gl4/glTextureBarrier" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TextureBarrier()
{
__context->glTextureBarrier();
}
}
}