public TextureSlice Add(Pixmap image) { return(Allocate(image.Width, image.Height).Update(image)); }
public void Update(Pixmap image) { Update(0, 0, image); }
public void Update(int x, int y, Pixmap image) { GL.TexSubImage2D(Target, 0, x, y, image.Width, image.Height, image.Format, PixelType.UnsignedByte, image.PixelData); }
public TextureSlice Update(Pixmap image) { tex.Bind(); tex.Update(X, Y, image); return(this); }