sorry if you don't mind, can i add my os in cosmos wiki list?
Sure, feel free to also add a show and tell post to discussions.
Hey, newbie here, I've written multiple small oses using cmd line functionalities similar to linux. But I wanted to up a notch by using GUI elements. I tried out a mouse, and it was slow, and as expected when I tried to draw a taskbar you could see it flicker. The approach I'm using is draw, clear, draw in each run function, is this not good? Should I try something else?
How can I make an image variable? Image img = new Image() doesn't work.
or how can I convert a file to Cosmos OS Image?
@YoshiFan100 To create a GUI you will need to figure out which graphics driver you want to use. If you go with VGA, you will be stable and work on real hardware, but limited to 320x200. If you choose VMWare, you will have much faster and higher resolution graphics, but much less stable and doesn't work on real hardware. Once you've picked which device you want to use, You can look at mine or @nifanfa github for a good VMWareSVGA driver or VGA driver. To prevent the flickering, you will need to implement a double buffer which mine and nifanfas driver has built in, but if you want to do it yourself its not very difficult. Basically create an array/memory block of pixels, and draw that entire array to the screen at once instead of directly drawing to the screen