Spritesheet.selectFrame

Selects a specific frame and adapts the position of the texture rect. The index starts at 0 and line by line.

Note: The size of your Texture and the size of your Texture-Rect should be divisible without a rest.

class Spritesheet
final @nogc
void
selectFrame
pure nothrow
(
ubyte index
)

Meta