From ef603db5350894be8622484f7626f9e83b134f78 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 16 Apr 2015 12:00:04 +0200 Subject: [PATCH] draw2dgl: remove unneeded GLVertex --- draw2dgl/gc.go | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/draw2dgl/gc.go b/draw2dgl/gc.go index 032b26a..7de60f2 100644 --- a/draw2dgl/gc.go +++ b/draw2dgl/gc.go @@ -118,25 +118,7 @@ type GraphicContext struct { strokeRasterizer *raster.Rasterizer } -type Vertex struct { - x, y float64 -} - -func NewVertex() *Vertex { - return &Vertex{} -} - -func (*Vertex) NextCommand(cmd draw2d.VertexCommand) { - -} - -func (*Vertex) Vertex(x, y float64) { - gl.Vertex2d(x, y) -} - -/** - * Create a new Graphic context from an image - */ +// NewGraphicContext creates a new Graphic context from an image. func NewGraphicContext(width, height int) *GraphicContext { gc := &GraphicContext{ draw2d.NewStackGraphicContext(),