Example #1
0
        public D3D9Renderer([Import] ID3D9Context context, [Import] FontCache fontCache)
        {
            this.context   = context;
            this.fontCache = fontCache;

            this.line   = new Line(this.context.Device);
            this.sprite = new Sprite(this.context.Device);

            context.PreReset  += this.OnPreReset;
            context.PostReset += this.OnPostReset;
        }
Example #2
0
 public D3D9Renderer(ID3D9Context context, FontCache fontCache, D3D9TextureManager9 textureManager)
 {
     this.context        = context;
     this.fontCache      = fontCache;
     this.textureManager = textureManager;
     this.line           = new Line(this.context.Device);
     this.sprite         = new Sprite(this.context.Device);
     context.PreReset   += this.OnPreReset;
     context.PostReset  += this.OnPostReset;
     context.Draw       += this.OnDraw;
 }
Example #3
0
        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;
        }
Example #4
0
 public D3D9TextureManager9(ID3D9Context renderContext, VpkBrowser9 vpkBrowser) : base(vpkBrowser)
 {
     this.renderContext = renderContext;
     base.LoadFromDota(AbilityId.invoker_empty1, false);
 }
Example #5
0
 public FontCache([Import] ID3D9Context context)
 {
     this.Context            = context;
     this.Context.PreReset  += this.PreReset;
     this.Context.PostReset += this.PostReset;
 }
Example #6
0
 public D3D9TextureManager([Import] ID3D9Context renderContext, [Import] VpkBrowser vpkBrowser)
 {
     this.renderContext = renderContext;
     this.vpkBrowser    = vpkBrowser;
 }
Example #7
0
 public D3D9TextureManager(ID3D9Context renderContext)
 {
     this.renderContext = renderContext;
 }
Example #8
0
 public SimpleD3D9Renderer(ID3D9Context context, FontCache fontCache)
 {
     this.context   = context;
     this.fontCache = fontCache;
 }