Exemplo n.º 1
0
        public RendererCanvasTest(Renderer renderer, SpriteFont font)
        {
            this.renderer      = renderer;
            this.renderOptions = renderer.Options | Renderer.RenderOptions.Canvas;
            this.policy        = default(Renderer.ViewportPolicy);
            this.renderer.ChangeOptions(this.policy, this.renderOptions);
            this.font = font;

            this.timer           = 0;
            this.resolutionIndex = 0;

            this.keyboard = Keyboard.GetState();
            this.GenerateColors();
        }
Exemplo n.º 2
0
        public RendererCanvasTest(Renderer renderer, SpriteFont font)
        {
            this.renderer = renderer;
            this.renderOptions = renderer.Options | Renderer.RenderOptions.Canvas;
            this.policy = default(Renderer.ViewportPolicy);
            this.renderer.ChangeOptions(this.policy, this.renderOptions);
            this.font = font;

            this.timer = 0;
            this.resolutionIndex = 0;

            this.keyboard = Keyboard.GetState();
            this.GenerateColors();
        }