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.
I have made GUIs before but now i am trying to make a double buffer.
It sounds rather easy but following is my problem –
I cant use any methods from the System.Drawing 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?
I know it is possible because I know someone who did it.
Additionally, the only graphical functions I have are SetPixel , GetPixel and Clear. All though I prefer an answer , if any one knows a good article about double buffering ect please tell me.
PS. My OS in 320 x 200 Res LOL
You will need to learn a little bit of DOS C VGA game lore it sounds like 😉
See Double Buffering, Page Flipping, & Unchained Mode. All the same concepts apply, not sure how they will translate to the C# code though.
Happy coding.