Exemple #1
0
        public D3D9Renderer(ID3D9Context context, FontCache fontCache, D3D9TextureManager textureManager)
        {
            this.context        = context;
            this.fontCache      = fontCache;
            this.textureManager = textureManager;
            this.line           = new Line(this.context.Device);
            this.sprite         = new Sprite(this.context.Device);

            this.context.PreReset         += this.OnPreReset;
            this.context.PostReset        += this.OnPostReset;
            this.textureManager.VpkLoaded += this.OnVpkLoaded;
        }
        public D3D9Renderer([Import] ID3D9Context context, [Import] FontCache fontCache, [Import] D3D9TextureManager textureManager)
        {
            this.context        = context;
            this.fontCache      = fontCache;
            this.textureManager = textureManager;
            this.line           = new Line(this.context.Device)
            {
                //Antialias = true
            };
            this.sprite = new Sprite(this.context.Device);

            context.PreReset  += this.OnPreReset;
            context.PostReset += this.OnPostReset;
        }