mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/atlas: rename ImageTypeIsolated -> ImageTypeUnmanaged
This commit is contained in:
parent
b40022b286
commit
116e131ccf
@ -36,11 +36,11 @@ func (c *gameForUI) NewOffscreenImage(width, height int) *ui.Image {
|
||||
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.
|
||||
// An image on an atlas is surrounded by a transparent edge,
|
||||
// and the shader program unexpectedly picks the pixel on the edges.
|
||||
imageType := atlas.ImageTypeIsolated
|
||||
imageType := atlas.ImageTypeUnmanaged
|
||||
if ui.IsScreenClearedEveryFrame() {
|
||||
// A violatile image is also always isolated.
|
||||
imageType = atlas.ImageTypeVolatile
|
||||
|
@ -206,7 +206,7 @@ const (
|
||||
ImageTypeRegular ImageType = iota
|
||||
ImageTypeScreen
|
||||
ImageTypeVolatile
|
||||
ImageTypeIsolated
|
||||
ImageTypeUnmanaged
|
||||
)
|
||||
|
||||
// Image is a rectangle pixel set that might be on an atlas.
|
||||
|
Loading…
Reference in New Issue
Block a user