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