public override void OnRenderFrame(FrameEventArgs e) { mouse_current = System.Windows.Forms.Cursor.Position; mouse_current.Offset(-window.X, -window.Y); mouse_current.Offset(0, -20); the3d.OrthoMode(window.Width, window.Height); hud.OnRenderFrame(e); }
public override void OnRenderFrame(OpenTK.FrameEventArgs e) { GL.ClearColor(Color.Green); GL.Clear(ClearBufferMask.ColorBufferBit); the3d.OrthoMode(window.Width, window.Height); for (int i = 0; i < 7; i++) { the3d.Draw2dText("Hello!", 50, 100 + i * 50, 8 + i * 6, colors[i]); } for (int i = 0; i < 16; i++) { the3d.Draw2dText(colorCodes[i] + "Color" + "&f & " + colorCodes[i][1], 300, 100 + i * 30, 14, null); } }