public void SetupMaskRenderer(RendererSettings settings, MeshRenderer r, out Camera renderCam, out Vector4 targetMeshInfo) { this.settings = settings; targetObject = r.gameObject; targetMeshInfo = GetMeshInfo(r); renderCam = SetupRenderCam(); RenderCamToTexture(renderCam); }
public Renderer(IKernel kernel, GraphicsDevice device, IServiceProvider services) { _kernel = kernel; _device = device; _data = new RendererMetadata(); _settings = new RendererSettings(this); _viewResults = new Queue<RenderPlan.Output>(); _spriteBatch = new SpriteBatch(device); Content.Initialise(kernel.Get<ContentManager>(), services); }
/// <summary> /// Initializes a new instance of the <see cref="Context"/> class. /// </summary> /// <param name="view">The data view to create the context with</param> /// <param name="rendererSettings">A reference to the a registry instance</param> /// <param name="partialLoader">A reference to loader for partials</param> /// <param name="parentContext">The parent context for the new context</param> /// <param name="settings">The render settings </param> public Context(object view, RendererSettings rendererSettings, IStubbleLoader partialLoader, Context parentContext, RenderSettings settings) : base(partialLoader, parentContext) { this.view = view; View = this.view; RendererSettings = rendererSettings; RenderSettings = settings; Cache = new Dictionary <string, object>() { { ".", TryEnumerationConversionIfRequired(this.view) } }; }
public Renderer(IKernel kernel, GraphicsDevice device, IServiceProvider services) { this.kernel = kernel; this.device = device; this.data = new RendererMetadata(); this.settings = new RendererSettings(this); this.viewResults = new Queue<RenderPlan.Output>(); this.quad = new Quad(device); this.spriteBatch = new SpriteBatch(device); Content.Initialise(services); }
/// <summary> /// Initializes a new instance of the <see cref="Context"/> class. /// </summary> /// <param name="view">The data view to create the context with</param> /// <param name="rendererSettings">A reference to the a registry instance</param> /// <param name="partialLoader">A reference to loader for partials</param> /// <param name="settings">The render settings </param> public Context(object view, RendererSettings rendererSettings, IStubbleLoader partialLoader, RenderSettings settings) : this(view, rendererSettings, partialLoader, null, settings) { }
/// <summary> /// Initializes a new instance of the <see cref="Context"/> class. /// </summary> /// <param name="view">The data view to create the context with</param> /// <param name="rendererSettings">A reference to the a registry instance</param> /// <param name="settings">The render settings </param> public Context(object view, RendererSettings rendererSettings, RenderSettings settings) : this(view, rendererSettings, rendererSettings.PartialTemplateLoader, null, settings) { }
public HelperRendererSettings(RendererSettings rendererSettings) { _rendererSettings = rendererSettings; }
/// <summary> /// Initializes a new instance of the <see cref="StubbleVisitorRenderer"/> class /// with the provided registry /// </summary> /// <param name="registry">The registry</param> public StubbleVisitorRenderer(RendererSettings registry) { RendererSettings = registry; }
/** * * */ private void Init() { try { SymbolDefTable sdTable = SymbolDefTable.getInstance(); Dictionary <String, SymbolDef> symbolDefs = sdTable.getAllSymbolDefs(); ICollection <SymbolDef> vc = symbolDefs.Values; IEnumerator <SymbolDef> enumerator = vc.GetEnumerator(); SymbolDef sdTemp = null; UnitDef udTemp = null; String item = null; while (enumerator.MoveNext()) { sdTemp = enumerator.Current; item = sdTemp.getDescription() + ":" + sdTemp.getBasicSymbolId(); if (sdTemp.getDrawCategory() != 0)//0 means category, not drawable { lbTGs.Items.Add(item); } } lbTGs.Sorted = true; //////////////////////////////////////////////////////////////////////// UnitDefTable udTable = UnitDefTable.getInstance(); Dictionary <String, UnitDef> unitDefs = udTable.GetAllUnitDefs(); ICollection <UnitDef> c = unitDefs.Values; IEnumerator <UnitDef> ude = c.GetEnumerator(); //SymbolDef temp = null; //String item = null; while (ude.MoveNext()) { udTemp = ude.Current; item = udTemp.getDescription() + ":" + udTemp.getBasicSymbolId(); lbFEs.Items.Add(item); } lbFEs.Sorted = true; ///////////////////////////////////////////////////////////////////////// cbAffiliation.SelectedIndex = 0; cbStatus.SelectedIndex = 1; cbModifiers.SelectedIndex = 0; cbSize.SelectedIndex = 0; cbOutlineType.SelectedIndex = 0; cbSpeedTestType.SelectedIndex = 1; cbDoubleBuffer.CheckState = CheckState.Checked; //RENDERER SETTINGS////////////////////////////////////////////////////// RendererSettings RS = RendererSettings.getInstance(); RS.setTextBackgroundMethod(RendererSettings.TextBackgroundMethod_OUTLINE_QUICK); //RS.setTextBackgroundMethod(RendererSettings.TextBackgroundMethod_OUTLINE); //RS.setTextBackgroundMethod(RendererSettings.TextBackgroundMethod_NONE); //RS.setTextBackgroundMethod(RendererSettings.TextBackgroundMethod_COLORFILL); } catch (Exception exc) { Console.WriteLine(exc.Message); Console.WriteLine(exc.StackTrace); } }