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); }
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); }
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(); }
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(); }
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(); }
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); }