public static OutputPixel OperationPerComponent(OutputPixel c1, OutputPixel c2, Func <byte, byte, byte> func) => new OutputPixel { R = func(c1.R, c2.R), G = func(c1.G, c2.G), B = func(c1.B, c2.B), A = func(c1.A, c2.A), };
public static OutputPixel OperationPerComponent(OutputPixel c1, OutputPixel c2, Func<byte, byte, byte> func) { return new OutputPixel() { R = func(c1.R, c2.R), G = func(c1.G, c2.G), B = func(c1.B, c2.B), A = func(c1.A, c2.A), }; }
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); }
public virtual void DrawVideo(uint FrameBufferAddress, OutputPixel* OutputPixel, int Width, int Height) { }