WrapAround

eu.joaocosta.minart.graphics.image.WrapAround
See theWrapAround companion object
final class WrapAround(surface: Surface)

A surface that's optimzied to be used as a scrolling layer that wraps around.

Unlike a repeating plane, this is limited in height and width. However, it can be quite faster, as some data is precomputed.

This also means that changes to the original surface after the scroller creation won't be reflected.

Value parameters

surface

reference surface to use

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getSurface(x: Int, y: Int): SurfaceView

Gets a surface offset to start at position (x, y).

Gets a surface offset to start at position (x, y).

Value parameters

x

horizontal position on the reference surface

y

vertical position on the reference surface

Attributes

Returns

surface view with the scrolled surface