Esempio n. 1
0
 public void SetTextureData(int x, int y, int width, int height, IntPtr data, int dataSizeInBytes)
 {
     Bind();
     GL.PixelStore(PixelStoreParameter.UnpackAlignment, FormatHelpers.GetPixelSize(_veldridFormat));
     GL.TexSubImage2D(TextureTarget.Texture2D, 0, x, y, width, height, _pixelFormat, _pixelType, data);
 }