Fixed rotating layouts; Added Shader layout

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:54 +01:00
1 parent 86aad51e37
commit 0196bb3707
13 files changed
+207 -93

No files matched your search

+2 -2
View File
@@ -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: