Fixed rotating layouts; Added Shader layout
This commit is contained in:
13 files changed
+207
-93
No files matched your search
+2
-2
@@ -16,8 +16,8 @@ import (
|
||||
)
|
||||
|
||||
// BufferFor creates a new image buffer for the provided display matching its color model.
|
||||
func BufferFor(ctx Context, size image.Point) draw.Image {
|
||||
switch ctx.Display().ColorModel() {
|
||||
func BufferFor(model color.Model, size image.Point) draw.Image {
|
||||
switch model {
|
||||
case pixel.MonoModel:
|
||||
return pixel.NewMonoImage(size.X, size.Y)
|
||||
case pixel.Gray2Model:
|
||||
|
||||
Reference in new issue
Block a user