API Docs for: 0.0.2
Show:

Atlantis.SpriteBatch Class

Module: Framework
Parent Module: Atlantis

Define a SpriteBatch that is responsible to draw multiple elements on screen on one pass.

Constructor

Atlantis.SpriteBatch

(
  • The
)

Parameters:

  • The Atlantis.Graphics.GraphicsDevice

    graphics device.

Item Index

Methods

begin

(
  • The
  • A
)

Begin the batch operation.

Parameters:

  • The Atlantis.SpriteSortMode

    type of sorting to use (option, default is Immediate).

  • A Array

    transform matrix to apply for all items (optional). The matrix is a 3x3 matrix in a single array.

       - [ScaleX, SkewX, SkewY, ScaleY, TranslationX, TranslationY]

draw

(
  • The
  • The
  • A
  • A
  • Rotation
  • Origin
  • Scale
  • An
  • The
)

Draw a texture on the screen

Parameters:

drawString

(
  • The
  • The
  • The
  • The
  • Rotation
  • Origin
  • Scale
  • An
  • The
)

Draw a string on the screen

Parameters:

drawTexture

(
  • The
  • The
  • x
  • y
  • width
  • height
  • A
)
static

Draw a texture on the screen

Parameters:

end

()

Execute the batch process and draw the result in the screen.