title: C# Double Buffering?
body: <p>I am using the COSMOS compiler to write an OS in C# (For those who dont know COSMOS converts IL code into x86 assembly) and I am making a GUI.<br>
  I have made GUIs before but now i am trying to make a double buffer.<br>
  It sounds rather easy but following is my problem -<br>
  I cant use any methods from the <code>System.Drawing</code> Library or any other namespace that uses p/ invokes. Also, I can not use multi Dimensional arrays (I CAN use regular arrays). So my question is how would I implement double buffer?<br>
  I know it is possible because I know someone who did it. </p>
  
  <p>Additionally, the only graphical functions I have are <code>SetPixel</code> , <code>GetPixel</code> and <code>Clear</code>. All though I prefer an answer , if any one knows a good article about double buffering ect please tell me.<br>
  PS. My OS in 320 x 200 Res LOL</p>