// // Generated by StgSharp.GenerateGL. // Desktop OpenGL 4.5 core-profile forwarding methods. // using StgSharp.Mathematics.Numeric.Graphics; using System; using System.Runtime.CompilerServices; namespace StgSharp.Graphics.OpenGL { public unsafe partial class OpenGLFunction { /// /// 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 OpenGL entry point. /// void glCreateTransformFeedbacks(GLsizei n, GLuint *ids); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateTransformFeedbacks(Span ids) { fixed (GlHandle* __ids = ids) { __context->glCreateTransformFeedbacks(ids.Length, (uint*)__ids); } } /// /// 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 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 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 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 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 OpenGL entry point. /// void glCreateBuffers(GLsizei n, GLuint *buffers); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateBuffers(Span buffers) { fixed (GlHandle* __buffers = buffers) { __context->glCreateBuffers(buffers.Length, (uint*)__buffers); } } /// /// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 OpenGL entry point. /// void glCreateFramebuffers(GLsizei n, GLuint *framebuffers); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateFrameBuffers(Span frameBuffers) { fixed (GlHandle* __frameBuffers = frameBuffers) { __context->glCreateFramebuffers(frameBuffers.Length, (uint*)__frameBuffers); } } /// /// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 OpenGL entry point. /// void glCreateRenderbuffers(GLsizei n, GLuint *renderbuffers); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateRenderBuffers(Span renderBuffers) { fixed (GlHandle* __renderBuffers = renderBuffers) { __context->glCreateRenderbuffers(renderBuffers.Length, (uint*)__renderBuffers); } } /// /// 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 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 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 OpenGL entry point. /// void glCreateTextures(GLenum target, GLsizei n, GLuint *textures); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateTextures(uint target, Span textures) { fixed (GlHandle* __textures = textures) { __context->glCreateTextures(target, textures.Length, (uint*)__textures); } } /// /// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 OpenGL entry point. /// void glCreateVertexArrays(GLsizei n, GLuint *arrays); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateVertexArrays(Span arrays) { fixed (GlHandle* __arrays = arrays) { __context->glCreateVertexArrays(arrays.Length, (uint*)__arrays); } } /// /// Forwards to the native OpenGL entry point. /// void glDisableVertexArrayAttrib(GLuint vaobj, GLuint index); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void DisableVertexArrayAttribute(GlHandle vertexArray, uint index) { __context->glDisableVertexArrayAttrib(vertexArray.Value, index); } /// /// Forwards to the native OpenGL entry point. /// void glEnableVertexArrayAttrib(GLuint vaobj, GLuint index); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void EnableVertexArrayAttribute(GlHandle vertexArray, uint index) { __context->glEnableVertexArrayAttrib(vertexArray.Value, index); } /// /// Forwards to the native OpenGL entry point. /// void glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void VertexArrayElementBuffer(GlHandle vertexArray, GlHandle buffer) { __context->glVertexArrayElementBuffer(vertexArray.Value, buffer.Value); } /// /// 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 vertexArray, uint bindingIndex, GlHandle buffer, nint offset, int stride) { __context->glVertexArrayVertexBuffer(vertexArray.Value, bindingIndex, buffer.Value, offset, stride); } /// /// 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 vertexArray, uint first, ReadOnlySpan buffers, nint* offsets, int* strides) { fixed (GlHandle* __buffers = buffers) { __context->glVertexArrayVertexBuffers(vertexArray.Value, first, buffers.Length, (uint*)__buffers, offsets, strides); } } /// /// 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 vertexArray, uint attributeIndex, uint bindingIndex) { __context->glVertexArrayAttribBinding(vertexArray.Value, attributeIndex, bindingIndex); } /// /// 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 vertexArray, uint attributeIndex, int size, uint type, byte normalized, uint relativeOffset) { __context->glVertexArrayAttribFormat(vertexArray.Value, attributeIndex, size, type, normalized, 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 vertexArray, uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexArrayAttribIFormat(vertexArray.Value, attributeIndex, size, type, 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 vertexArray, uint attributeIndex, int size, uint type, uint relativeOffset) { __context->glVertexArrayAttribLFormat(vertexArray.Value, attributeIndex, size, type, relativeOffset); } /// /// 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 vertexArray, uint bindingIndex, uint divisor) { __context->glVertexArrayBindingDivisor(vertexArray.Value, bindingIndex, divisor); } /// /// 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 vertexArray, uint pName, int* param) { __context->glGetVertexArrayiv(vertexArray.Value, pName, 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 vertexArray, uint index, uint pName, int* param) { __context->glGetVertexArrayIndexediv(vertexArray.Value, index, pName, 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 vertexArray, uint index, uint pName, long* param) { __context->glGetVertexArrayIndexed64iv(vertexArray.Value, index, pName, param); } /// /// Forwards to the native OpenGL entry point. /// void glCreateSamplers(GLsizei n, GLuint *samplers); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateSamplers(Span samplers) { fixed (GlHandle* __samplers = samplers) { __context->glCreateSamplers(samplers.Length, (uint*)__samplers); } } /// /// Forwards to the native OpenGL entry point. /// void glCreateProgramPipelines(GLsizei n, GLuint *pipelines); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void CreateProgramPipelines(Span pipelines) { fixed (GlHandle* __pipelines = pipelines) { __context->glCreateProgramPipelines(pipelines.Length, (uint*)__pipelines); } } /// /// 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) { fixed (GlHandle* __ids = ids) { __context->glCreateQueries(target, ids.Length, (uint*)__ids); } } /// /// 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 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 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 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 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 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 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 OpenGL entry point. /// GLenum glGetGraphicsResetStatus(); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint GetGraphicsResetStatus() { return __context->glGetGraphicsResetStatus(); } /// /// 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 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 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 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 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 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 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 OpenGL entry point. /// void glTextureBarrier(); /// See docs.gl. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public void TextureBarrier() { __context->glTextureBarrier(); } } }