CompositeTexture.chunkRectangle

Get the rectangle of the given chunk in dots.

struct CompositeTexture
const
Rectangle
chunkRectangle
(
size_t i
,
Vector2 offset = Vector2()
)

Parameters

i size_t

Index of the chunk.

offset Vector2

Translate the resulting rectangle by this vector.

Meta