Inheritance: PixelAccessor
Exemplo n.º 1
0
        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++;
        }
Exemplo n.º 2
0
 public GLTexture2D(GraphicsInterface gi, PixelAccessorBGRb pixMap, bool createMipMaps)
     : this(gi, pixMap.Width, pixMap.Height, TextureInternalFormat.Rgb8, TexturePixelFormat.Bgr, PixelComponentType.Byte, pixMap.Pixels, createMipMaps)
 {
 }