示例#1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            Window.TextInput += (s, a) =>
            {
                if (a.Character == '\t')
                {
                    return;
                }

                ImGui.GetIO().AddInputCharacter(a.Character);
            };

            this.IsMouseVisible           = true;
            this.IsFixedTimeStep          = true;
            this.Window.AllowUserResizing = true;

            this.Renderer      = new LiveImGuiRenderer();
            this.UserInterface = new UserInterface();
        }
示例#2
0
 public GameLoop()
 {
     Renderer      = new LiveImGuiRenderer();
     UserInterface = new UserInterface();
 }