draw2dgl: remove unneeded GLVertex
This commit is contained in:
parent
c1b7f443b4
commit
ef603db535
1 changed files with 1 additions and 19 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue