CSPspEmu.Core.Gpu.Impl.Opengl.Modules.RenderbufferManager.DrawVideo C# (CSharp) Method

DrawVideo() public method

public DrawVideo ( uint FrameBufferAddress, OutputPixel OutputPixel, int Width, int Height ) : void
FrameBufferAddress uint
OutputPixel CSPspEmu.Core.Types.OutputPixel
Width int
Height int
return void
        public void DrawVideo(uint FrameBufferAddress, OutputPixel* OutputPixel, int Width, int Height)
        {
            var DrawBuffer = GetOrCreateDrawBufferTexture(new DrawBufferKey()
            {
                Address = FrameBufferAddress,
            });
            DrawBuffer.Bind();
            //GL.DrawPixels(Width, Height, PixelFormat.Bgra, PixelType.UnsignedInt8888Reversed, new IntPtr(OutputPixel));
            DrawBuffer.Unbind();
            Console.WriteLine("DrawVideo: {0:X8}, {1}x{2}", FrameBufferAddress, Width, Height);
        }