Example #1
0
 public void TexSubImage2D(Texture2DTarget target, int level, int xoffset, int yoffset, int width, int height, TexturePixelFormat format, PixelComponentType type, byte[] pixels)
 {
     gl.glTexSubImage2D((int)target, level, xoffset, yoffset, width, height, (int)format, (int)type, pixels);
 }
Example #2
0
        public void TexSubImage2D(Texture2DTarget target, int level, int xoffset, int yoffset, int width, int height, TexturePixelFormat format, PixelComponentType type, IntPtr pixels)
        {
            if (null == pixels || pixels == IntPtr.Zero)
                return;

            gl.glTexSubImage2D((int)target, level, xoffset, yoffset, width, height, (int)format, (int)type, pixels);
        }
Example #3
0
 public void TexImage2D(Texture2DTarget target, int level, TextureInternalFormat internalformat, int width, int height, int border, TexturePixelFormat format, PixelComponentType type, object pixels)
 {
     gl.glTexImage2D((int)target, level, (int)internalformat, width, height, border, (int)format, (int)type, pixels);
     CheckException();
 }
Example #4
0
 internal void CopyTexSubImage2D(Texture2DTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
 {
     gl.glCopyTexSubImage2D((int)target, level, xoffset, yoffset, x, y, width, height);
     CheckException();
 }
Example #5
0
 internal void CopyTexImage2D(Texture2DTarget target, int level, TextureInternalFormat internalFormat, int x, int y, int width, int height, int border)
 {
     gl.glCopyTexImage2D((int)target, level, (int)internalFormat, x, y, width, height, border);
     CheckException();
 }
Example #6
0
 public static void CopyTexSubImage2D(Texture2DTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
 {
     gl.glCopyTexSubImage2D((int)target, level, xoffset, yoffset, x, y, width, height);
 }