remove smooth argument from Canvas constructor
This commit is contained in:
parent
8379e17cac
commit
c2633848f6
|
@ -27,14 +27,12 @@ type Canvas struct {
|
||||||
|
|
||||||
var _ pixel.ComposeTarget = (*Canvas)(nil)
|
var _ pixel.ComposeTarget = (*Canvas)(nil)
|
||||||
|
|
||||||
// NewCanvas creates a new empty, fully transparent Canvas with given bounds. If the smooth flag is
|
// NewCanvas creates a new empty, fully transparent Canvas with given bounds.
|
||||||
// set, then stretched Pictures will be smoothed and will not be drawn pixely onto this Canvas.
|
func NewCanvas(bounds pixel.Rect) *Canvas {
|
||||||
func NewCanvas(bounds pixel.Rect, smooth bool) *Canvas {
|
|
||||||
c := &Canvas{
|
c := &Canvas{
|
||||||
gf: NewGLFrame(bounds),
|
gf: NewGLFrame(bounds),
|
||||||
mat: mgl32.Ident3(),
|
mat: mgl32.Ident3(),
|
||||||
col: mgl32.Vec4{1, 1, 1, 1},
|
col: mgl32.Vec4{1, 1, 1, 1},
|
||||||
smooth: smooth,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.SetBounds(bounds)
|
c.SetBounds(bounds)
|
||||||
|
|
Loading…
Reference in New Issue