internal/atlas: rename ImageTypeIsolated -> ImageTypeUnmanaged

This commit is contained in:
Hajime Hoshi 2022-06-10 02:11:08 +09:00
parent b40022b286
commit 116e131ccf
2 changed files with 3 additions and 3 deletions

View File

@ -36,11 +36,11 @@ func (c *gameForUI) NewOffscreenImage(width, height int) *ui.Image {
c.offscreen = nil c.offscreen = nil
} }
// Keep the offscreen an isolated image from an atlas (#1938). // Keep the offscreen an unmanaged image that is always isolated from an atlas (#1938).
// The shader program for the screen is special and doesn't work well with an image on an atlas. // The shader program for the screen is special and doesn't work well with an image on an atlas.
// An image on an atlas is surrounded by a transparent edge, // An image on an atlas is surrounded by a transparent edge,
// and the shader program unexpectedly picks the pixel on the edges. // and the shader program unexpectedly picks the pixel on the edges.
imageType := atlas.ImageTypeIsolated imageType := atlas.ImageTypeUnmanaged
if ui.IsScreenClearedEveryFrame() { if ui.IsScreenClearedEveryFrame() {
// A violatile image is also always isolated. // A violatile image is also always isolated.
imageType = atlas.ImageTypeVolatile imageType = atlas.ImageTypeVolatile

View File

@ -206,7 +206,7 @@ const (
ImageTypeRegular ImageType = iota ImageTypeRegular ImageType = iota
ImageTypeScreen ImageTypeScreen
ImageTypeVolatile ImageTypeVolatile
ImageTypeIsolated ImageTypeUnmanaged
) )
// Image is a rectangle pixel set that might be on an atlas. // Image is a rectangle pixel set that might be on an atlas.