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

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

            this.BoxRenderer = BoundingBoxRenderer.Create(lengths);
            this.Renderer    = renderer;
        }
示例#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);
            }
        }
示例#4
0
 public GridRendererComponent(GridViewRenderer renderer, SceneObject bindingObject = null)
     : base(bindingObject)
 {
     this.Renderer = renderer;
 }