Example #1
0
        protected override void DisposeUnmanagedResource()
        {
            GridViewRenderer renderer = this.Renderer;

            if (renderer != null)
            {
                renderer.Dispose();
            }
        }
Example #2
0
        public BoundedRenderer(GridViewRenderer renderer, vec3 lengths)
        {
            if (renderer == null)
            {
                throw new ArgumentNullException();
            }

            this.BoxRenderer = BoundingBoxRenderer.Create(lengths);
            this.Renderer    = renderer;
        }
Example #3
0
        public override void Render(RenderEventArg arg)
        {
            GridViewRenderer renderer = this.Renderer;

            if (renderer != null)
            {
                mat4 projection, view, model;
                if (this.TryGetMatrix(arg, out projection, out view, out model))
                {
                    renderer.SetUniform(strprojection, projection);
                    renderer.SetUniform(strview, view);
                    renderer.SetUniform(strmodel, model);
                }

                renderer.Render(arg);
            }
        }
Example #4
0
 public GridRendererComponent(GridViewRenderer renderer, SceneObject bindingObject = null)
     : base(bindingObject)
 {
     this.Renderer = renderer;
 }