Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void HandleRenderEvent(object sender, FrameEventArgs e)
- {
- /*GL.Clear(ClearBufferMask.DepthBufferBit |
- ClearBufferMask.ColorBufferBit |
- ClearBufferMask.AccumBufferBit |
- ClearBufferMask.StencilBufferBit);*/
- GL.DrawPixels(10, 10, PixelFormat.Blue, PixelType.UnsignedByte, new byte[] {255,
- 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
- 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, });
- SwapBuffers();
- }
Advertisement
Add Comment
Please, Sign In to add comment