public static void TexImage2D(TextureTarget target, int level, InternalPixelFormat internalFormat, uint width, uint height, int border, PixelFormat format, PixelType pixelType, IntPtr data) { glTexImage2D((uint)target, level, (int)internalFormat, width, height, border, (uint)format, (uint)pixelType, data); }
public RenderBuffer(int width, int height, int multisamplingSamples, InternalPixelFormat internalPixelFormat) { m_Width = width; m_Height = height; m_MultisamplingSamples = multisamplingSamples; m_Id = GL.GenRenderbuffer(); Bind(); if (m_MultisamplingSamples > 0) { GL.RenderbufferStorageMultisample(RenderbufferTarget.Renderbuffer, m_MultisamplingSamples, internalPixelFormat, (uint)width, (uint)height); } else { GL.RenderbufferStorage(RenderbufferTarget.Renderbuffer, internalPixelFormat, (uint)width, (uint)height); } Unbind(); }
public static void RenderbufferStorage(RenderbufferTarget target, InternalPixelFormat format, uint width, uint height) { Delegates.RenderbufferStorageEXT(target, format, width, height); }
public static void RenderbufferStorageMultisample(RenderbufferTarget target, int samples, InternalPixelFormat format, uint width, uint height) { Delegates.RenderbufferStorageMultisample(target, samples, format, width, height); }
public static void TexImage2DMultisample(TextureTarget target, int samples, InternalPixelFormat internalFormat, int width, int height, bool fixedSampleLocations) { Delegates.TexImage2DMultisample(target, samples, internalFormat, width, height, (byte)(fixedSampleLocations ? 1 : 0)); }
public static void TexImage2D(TextureTarget target, int level, InternalPixelFormat internalFormat, int width, int height, int border, PixelFormatEnum format, PixelType type, IntPtr pixelPtr) { Delegates.TexImage2D(target, level, internalFormat, width, height, border, format, type, pixelPtr); }