Package draw2dglkit offers useful tools for using draw2d with OpenGL.
$ go test -cpu 1 -bench .
BenchmarkFillWithin 100000 19896 ns/op
BenchmarkIsPointInShape 10000 159035 ns/op
PASS
ok github.com/redstarcoder/draw2dglkit 4.674s
Install golang. To install or update the package draw2dglkit on your system, run:
go get -u github.com/redstarcoder/draw2dglkit
redstarcoder wrote this library. Laurent Le Goff wrote draw2d.