Ejemplo n.º 1
0
        protected override void LoadContent()
        {
            graphics  = new SharpDXGraphics(GraphicsDevice);
            resources = new ResourceCache(this);

            grid = new GridComponent(this);
            grid.Initialize();

            base.LoadContent();
        }
Ejemplo n.º 2
0
        protected override void OnLoad(EventArgs e)
        {
            // setup settings, load textures, sounds
            VSync  = VSyncMode.On;
            Title  = "Alliance";
            Width  = 800;
            Height = 600;

            graphics = new OpenGLGraphics();
            grid     = new GridComponent(this);
            grid.Initialize();

            base.OnLoad(e);
        }