private static void Main()
        {
            var window = new ExampleWindow();
            var visual = new MyVisual(window.RenderContext.RenderState, window.ContentLoader);

            window.Render += visual.Render;
            window.Run();
        }
        private static void Main()
        {
            var window = new ExampleWindow();
            var visual = new MyVisual();

            window.Render += visual.Render;
            window.Run();
        }
Beispiel #3
0
        private static void Main()
        {
            var app    = new ExampleApplication();
            var visual = new MyVisual();

            app.Render += visual.Render;
            app.Run();
        }
Beispiel #4
0
        private static void Main()
        {
            var app    = new ExampleApplication();
            var visual = new MyVisual(app.GameWindow.Width, app.GameWindow.Height);

            app.Render += visual.Render;
            app.Update += visual.Update;
            app.Run();
        }
        private static void Main()
        {
            var window = new ExampleWindow();
            var visual = new MyVisual(window.RenderContext.RenderState, window.ContentLoader);
            var time   = new GameTime();

            window.Render += () => visual.Render(time.AbsoluteTime);
            window.Run();
        }
Beispiel #6
0
        private static void Main()
        {
            var window = new ExampleWindow();
            var visual = new MyVisual(window.RenderContext.RenderState);

            window.Update += visual.Update;
            window.Render += visual.Render;
            window.Run();
        }
Beispiel #7
0
        private static void Main()
        {
            var app = new ExampleApplication();
            //run the update loop, which calls our registered callbacks
            var visual = new MyVisual();

            app.Render += visual.Render;
            app.Run();
        }
        private static void Main()
        {
            var window = new ExampleWindow();
            var logic  = new Model();
            var visual = new MyVisual(window.RenderContext.RenderState, window.ContentLoader);

            window.Update += logic.Update;
            window.Render += () => visual.Render(logic.GetPlanets());
            window.Run();
        }
        private static void Main()
        {
            var window = new ExampleWindow();
            var logic  = new Model();
            var visual = new MyVisual();

            window.Update += logic.Update;
            window.Render += () => visual.Render(logic.Shapes);
            window.Resize += visual.Resize;
            window.Run();
        }
        private static void Main()
        {
            var window = new ExampleWindow();
            var model  = new Model();
            var visual = new MyVisual(window.RenderContext.RenderState, window.ContentLoader);
            var time   = new GameTime();

            window.Render += () => visual.Render(model.MovingObject);
            window.Update += (dt) => model.Update(time.AbsoluteTime);
            window.Run();
        }