Guest User

Untitled

a guest
Oct 25th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public void HandleRenderEvent(object sender, FrameEventArgs e)
  2. {
  3. /*GL.Clear(ClearBufferMask.DepthBufferBit |
  4. ClearBufferMask.ColorBufferBit |
  5. ClearBufferMask.AccumBufferBit |
  6. ClearBufferMask.StencilBufferBit);*/
  7.  
  8. GL.DrawPixels(10, 10, PixelFormat.Blue, PixelType.UnsignedByte, new byte[] {255,
  9. 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
  10. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  11. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  12. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  13. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  14. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  15. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  16. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  17. 255, 0, 0, 0, 0, 0, 0, 0, 0, 255,
  18. 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, });
  19.  
  20. SwapBuffers();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment