Drawing Text

Jul 19, 2010 at 8:43 PM
I am making an Os with GUI. I have the basics (mouse and simple GUI) done but I cant figure out how to write text in the gui. I know how to write text in the console but not on GUI. If anyone knows how please tell me.
Jul 20, 2010 at 7:19 AM

create arrays with say 0s for blank and 1 for color and then make a loop testing weather its a 1 or a 0

ex:

unit[] example =

{

0, 0, 0, 1, 1, 0, 0, 0,

0, 0, 1, 1, 1, 1, 0, 0,

0, 1, 1, 0, 0, 1, 1, 0,

0, 1, 1, 0, 0, 1, 1, 0,

0, 0, 1, 1, 1, 1, 0, 0,

0, 0, 0, 1, 1, 0, 0, 0

}

for(int i = 0; i < 6; i++)

{

for(int t = 0, count = 0; t < 8; t++, count++)

{

if (example[count] == 0) VGAScreen.Setpixel320X200X8(x + t, y + i, color u want here);

}

}

unfortunatly ull have to get the arrays for each letter

Jul 20, 2010 at 3:02 PM
Thank you, but is there any way to put these in seprate classes so I can just call a command?
Jul 20, 2010 at 3:18 PM
VGAScreen.Setpixel320X200X8(x + t, y + i, 0); says "'Cosmos.Hardware.VgaScreen' does not contain a definition for 'Setpixel320X200X8'.