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 CoordinateMarkerRenderer(GraphicsContext graphicsContext) { _vertexRenderer = graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(6); _noTexture = graphicsContext.GetTexture("noTexture.png"); PopululateBuffer(); }
public EpicModelRenderer(GraphicsContext graphicsContext) { _graphicsContext = graphicsContext; _vertexRenderer = _graphicsContext.CreateVertexRenderer<TexturedColouredVertex4>(256); _anchorCuboid = new VertexCuboid(new Vector3(0.1f)); }