/// <summary> /// Creates a view object node during Extract phase. /// </summary> /// <param name="view"></param> /// <param name="renderObject"></param> /// <returns>The view object node reference.</returns> public ViewObjectNodeReference CreateViewObjectNode(RenderView view, RenderObject renderObject) { var renderViewNode = new ViewObjectNode(renderObject, view, renderObject.ObjectNode); // Create view node var index = viewObjectNodes.Add(renderViewNode); var result = new ViewObjectNodeReference(index); return(result); }
public RenderNode(RenderObject renderObject, RenderView renderView, ViewObjectNodeReference viewObjectNode, RenderStage renderStage) { RenderObject = renderObject; RenderView = renderView; ViewObjectNode = viewObjectNode; EffectObjectNode = EffectObjectNodeReference.Invalid; RenderStage = renderStage; RenderEffect = null; Resources = null; }
internal RenderNodeReference CreateRenderNode(RenderObject renderObject, RenderView renderView, ViewObjectNodeReference renderPerViewNode, RenderStage renderStage) { var renderNode = new RenderNode(renderObject, renderView, renderPerViewNode, renderStage); // Create view node var index = RenderNodes.Add(renderNode); var result = new RenderNodeReference(index); return(result); }
public ViewObjectNode GetViewObjectNode(ViewObjectNodeReference reference) { return(viewObjectNodes[reference.Index]); }