Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public static void RenderbufferStorage(RenderbufferTarget target, InternalPixelFormat format, uint width, uint height)
 {
     Delegates.RenderbufferStorageEXT(target, format, width, height);
 }
Exemplo n.º 4
0
 public static void RenderbufferStorageMultisample(RenderbufferTarget target, int samples, InternalPixelFormat format, uint width, uint height)
 {
     Delegates.RenderbufferStorageMultisample(target, samples, format, width, height);
 }
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 6
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);
 }