Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
 public D3D9TextureManager9(ID3D9Context renderContext, VpkBrowser9 vpkBrowser) : base(vpkBrowser)
 {
     this.renderContext = renderContext;
     base.LoadFromDota(AbilityId.invoker_empty1, false);
 }
Ejemplo n.º 5
0
 public FontCache([Import] ID3D9Context context)
 {
     this.Context            = context;
     this.Context.PreReset  += this.PreReset;
     this.Context.PostReset += this.PostReset;
 }
Ejemplo n.º 6
0
 public D3D9TextureManager([Import] ID3D9Context renderContext, [Import] VpkBrowser vpkBrowser)
 {
     this.renderContext = renderContext;
     this.vpkBrowser    = vpkBrowser;
 }
Ejemplo n.º 7
0
 public D3D9TextureManager(ID3D9Context renderContext)
 {
     this.renderContext = renderContext;
 }
Ejemplo n.º 8
0
 public SimpleD3D9Renderer(ID3D9Context context, FontCache fontCache)
 {
     this.context   = context;
     this.fontCache = fontCache;
 }