public CoordinateMarkerRenderer(GraphicsContext graphicsContext) { _vertexRenderer = graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(6); _noTexture = graphicsContext.GetTexture("noTexture.png"); PopululateBuffer(); }
public LargeGraphRenderer() { this.visitedGraph = null; this.positions = new VertexPointFDictionary(); this.edgeVisible = true; this.edgeRenderer = new QuickGraph.Algorithms.Layout.EdgeRenderer(); this.vertexVisible = true; this.vertexRenderer = new QuickGraph.Algorithms.Layout.VertexRenderer(); this.layoutSize = new Size(800, 600); }
public GuiRenderer(GraphicsContext graphicsContext, IColourScheme colourScheme) { ColourScheme = colourScheme; _graphicsContext = graphicsContext; _primitiveRenderer = _graphicsContext.CreateVertexRenderer<TransformedColouredVertex>(18); _textureRenderer = _graphicsContext.CreateVertexRenderer<TransformedColouredTexturedVertex>(9*2*3); _font = graphicsContext.GetFont(DefaultFontName, DefautltFontSize, Weight.Bold); PrecacheTextures(colourScheme); }
public LargeGraphRenderer(IVertexAndEdgeListGraph visitedGraph) { this.visitedGraph = null; this.positions = new VertexPointFDictionary(); this.edgeVisible = true; this.edgeRenderer = new QuickGraph.Algorithms.Layout.EdgeRenderer(); this.vertexVisible = true; this.vertexRenderer = new QuickGraph.Algorithms.Layout.VertexRenderer(); this.layoutSize = new Size(800, 600); if (visitedGraph == null) { throw new ArgumentNullException("visitedGraph"); } this.visitedGraph = visitedGraph; }
public EpicModelRenderer(GraphicsContext graphicsContext) { _graphicsContext = graphicsContext; _vertexRenderer = _graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(256); _anchorCuboid = new VertexCuboid(new Vector3(0.1f)); }
public Face(IVertexRenderer ic, GeometricPrimitives pr) { Indices = ic ?? throw new ArgumentNullException(nameof(ic)); Primitive = pr; }