Esempio n. 1
0
        public RendererXNA(Game1 game)
        {
            Game = game;
            Batch = new SpriteBatch(game.GraphicsDevice);

            BlankTexture = new Texture2D(Game.GraphicsDevice, 1, 1);
            BlankTexture.SetData<Color>(new Color[] { new Color(255, 255, 255, 255) });

            FontTypes.Add(Squid.Font.Default, new Squid.Font { Name = "Arial10", Family = "Arial", Size = 8, Bold = true, International = true });

            KeyboardLayout = GetKeyboardLayout(0);
            KeyStates = new byte[0x100];

            Rasterizer = new RasterizerState();
            Rasterizer.ScissorTestEnable = true;

            Sampler = new SamplerState();
            Sampler.Filter = TextureFilter.Anisotropic;
        }
Esempio n. 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var game = new Game1()) {
         game.Run();
     }
 }