protected override void DisposeUnmanagedResource() { GridViewRenderer renderer = this.Renderer; if (renderer != null) { renderer.Dispose(); } }
public BoundedRenderer(GridViewRenderer renderer, vec3 lengths) { if (renderer == null) { throw new ArgumentNullException(); } this.BoxRenderer = BoundingBoxRenderer.Create(lengths); this.Renderer = renderer; }
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); } }
public GridRendererComponent(GridViewRenderer renderer, SceneObject bindingObject = null) : base(bindingObject) { this.Renderer = renderer; }