Exemple #1
0
 public TextureSlice Add(Pixmap image)
 {
     return(Allocate(image.Width, image.Height).Update(image));
 }
Exemple #2
0
 public void Update(Pixmap image)
 {
     Update(0, 0, image);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public TextureSlice Update(Pixmap image)
 {
     tex.Bind();
     tex.Update(X, Y, image);
     return(this);
 }