//TODO: Protect the display public Window(WindowManager wm) { startX = wm.sX; startY = wm.sY; endX = wm.eX; endY = wm.eY; windowManager = wm; renderer = new WindowRenderer(this, wm); }
protected override void Run() { Font f = new BasicFont(); FontRenderer fr = new FontRenderer(display, f); Desktop desktop = null; WindowManager windowManager = new WindowManager(display, desktop, fr); //windowManager.addWindow(new HelloWorldProgram(windowManager)); int status = 0; while (true) { PrintDebug("Before Step"); status = windowManager.step(); PrintDebug("After Step"); mr.renderMouse(); display.step(); } }
public WindowRenderer(Window w, WindowManager wm, int bg = 0) { window = w; windowManager = wm; bgColour = bg; }
public HelloWorldProgram(WindowManager wm) : base(wm) { }