Ejemplo n.º 1
0
        public override void Render(IFrameRenderData renderData, IFrameBufferTarget target)
        {
            frameData = renderData as FrameData;
            base.Render(renderData, target);  // We render our component (line graphs), then we render the text over the top (below).

            textManager.ModelMatrix      = Matrix4.CreateScale(2f, ModelMatrix.Row1.Y, 1f);
            textManager.ViewMatrix       = ViewMatrix;
            textManager.ProjectionMatrix = ProjectionMatrix;
            textManager.Refresh();

            //components.Do<ITransformable>(c => { c.ViewMatrix = ViewMatrix; c.ProjectionMatrix = ProjectionMatrix; }); // TODO: temp hack until operatorcomponentbase is derived from compositecomponent

            // TODO: this needs to be simplified. See note above about OperatorComponentBase / CompositeComponent etc
            if (target != null)
            {
                components.RenderToTarget(renderData, target);
            }
            else
            {
                components.Render(renderData);
            }
        }