예제 #1
0
 /// <summary>
 /// Creates the render contexts for the given objects.
 /// </summary>
 /// <param name="objects">The objects to create render contexts for.</param>
 private void CreateRenderContexts(List <UIObject> objects)
 {
     foreach (UIObject obj in objects)
     {
         DefaultRenderContext newContext = new DefaultRenderContext(obj);
         this.contexts.Add(obj, newContext);
     }
 }
예제 #2
0
 /// <see cref="UIRenderManagerBase.Render_i"/>
 protected override void Render_i(IUIRenderContext screenContext)
 {
     /// Call the UIObject.Render on each UIObject in the render queue.
     foreach (UIObject obj in this.renderQueue)
     {
         DefaultRenderContext renderContext = this.contexts[obj]; /// TODO: performance issue
         renderContext.Reset(screenContext);
         renderContext.Enabled = true;
         obj.Render(renderContext);
         //obj.Render(screenContext); // TODO: just for testing
         renderContext.Enabled = false;
     }
 }