public void UpdateImage(PixelAccessorBGRb accessor) { if (accessor.Width != Width || accessor.Height != Height) { newWidth = accessor.Width; newHeight = accessor.Height; newPixels = accessor.Pixels; fNeedsResize = true; } fPixelPtr = accessor.Pixels; latestFrame++; }
public GLTexture2D(GraphicsInterface gi, PixelAccessorBGRb pixMap, bool createMipMaps) : this(gi, pixMap.Width, pixMap.Height, TextureInternalFormat.Rgb8, TexturePixelFormat.Bgr, PixelComponentType.Byte, pixMap.Pixels, createMipMaps) { }