public virtual void UpdateScreen() { re.BeginFrame(0F); switch (currentState) { case 0: re.DrawStretchPic(0, 0, viddef.GetWidth(), viddef.GetHeight(), "conback"); re.DrawPic(viddef.GetWidth() / 2 - 50, viddef.GetHeight() / 2, "loading"); currentState = 1; break; case 1: re.SetSky("space1", 0, new float { 0, 0, 0 }); re.BeginRegistration("ColorTest"); re.EndRegistration(); currentState = 2; default: if (framecount % 500 == 0) { long time = System.CurrentTimeMillis(); fps = 500000F / (time - start); start = time; } string text = fps + " fps"; TestMap(); DrawString(10, viddef.GetHeight() - 16, text); } re.EndFrame(); framecount++; }