예제 #1
0
        public SimpleD3D11Renderer(ID3D11Context context, BrushCache brushCache, TextFormatCache textFormatCache)
        {
            this.context = context;

            this.brushCache      = brushCache;
            this.textFormatCache = textFormatCache;
        }
예제 #2
0
        public D3D11TextureManager([Import] ID3D11Context renderContext, [Import] VpkBrowser vpkBrowser)
        {
            this.renderContext = renderContext;
            this.vpkBrowser    = vpkBrowser;

            this.imagingFactory = new ImagingFactory();
        }
예제 #3
0
        public D3D11Renderer([Import] ID3D11Context context, [Import] BrushCache brushCache, [Import] TextFormatCache textFormatCache)
        {
            this.context = context;

            this.brushCache      = brushCache;
            this.textFormatCache = textFormatCache;
        }
 public D3D11TextureManager9(ID3D11Context renderContext, VpkBrowser9 vpkBrowser) : base(vpkBrowser)
 {
     base.ChangeBrightness = true;
     this.renderContext    = renderContext;
     this.imagingFactory   = new ImagingFactory();
     base.LoadFromDota(AbilityId.invoker_empty1, false);
 }
예제 #5
0
        public D3D11Renderer([Import] ID3D11Context context, [Import] BrushCache brushCache, [Import] TextFormatCache textFormatCache, [Import] D3D11TextureManager textureManager)
        {
            this.context = context;

            this.brushCache      = brushCache;
            this.textFormatCache = textFormatCache;
            this.textureManager  = textureManager;
        }
예제 #6
0
 public D3D11Renderer(ID3D11Context context, BrushCache brushCache, TextFormatCache textFormatCache, D3D11TextureManager9 textureManager)
 {
     this.context         = context;
     this.brushCache      = brushCache;
     this.textFormatCache = textFormatCache;
     this.textureManager  = textureManager;
     context.Draw        += this.OnDraw;
 }
예제 #7
0
        public D3D11Renderer(ID3D11Context context, BrushCache brushCache, TextFormatCache textFormatCache, D3D11TextureManager textureManager)
        {
            this.context         = context;
            this.brushCache      = brushCache;
            this.textFormatCache = textFormatCache;
            this.textureManager  = textureManager;

            this.textureManager.VpkLoaded += this.OnVpkLoaded;
        }
예제 #8
0
 public BrushCache([Import] ID3D11Context context)
 {
     this.Context = context;
     this.Create(Color.White);
     this.Create(Color.Black);
     this.Create(Color.Red);
     this.Create(Color.Blue);
     this.Create(Color.Green);
     this.Create(Color.Yellow);
 }
예제 #9
0
 public BrushCache([Import] ID3D11Context context)
 {
     Drawing.OnD3D11ResizeBuffers += this.OnResizeBuffers;
     this.Context = context;
     this.Create(Color.White);
     this.Create(Color.Black);
     this.Create(Color.Red);
     this.Create(Color.Blue);
     this.Create(Color.Green);
     this.Create(Color.Yellow);
 }
예제 #10
0
 public TextFormatCache([Import] ID3D11Context context)
 {
     this.Context = context;
 }
예제 #11
0
 public D3D11TextureManager(ID3D11Context renderContext)
 {
     this.renderContext  = renderContext;
     this.imagingFactory = new ImagingFactory();
 }