org.digimead.digi.lib.opengl

SpriteBatch

class SpriteBatch extends AnyRef

Class that prepare the sprite batcher for specified maximum number of sprites

See also

GLText

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SpriteBatch
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpriteBatch(gl: GL10, maxSprites: Int)

    gl

    the GL interface.

    maxSprites

    the maximum allowed sprites per batch

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val INDICES_PER_SPRITE: Int

    Indices Per Sprite

  7. val VERTEX_SIZE: Int

    Vertex Size (in Components) ie (X,Y,U,V)

  8. val VERTICES_PER_SPRITE: Int

    Vertices Per Sprite

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def beginBatch(): Unit

    signal the start of a batch.

    signal the start of a batch. set the texture and clear buffer

    Note

    assumes that the texture is already bound!

  11. def beginBatch(textureId: Int): Unit

    signal the start of a batch.

    signal the start of a batch. set the texture and clear buffer

    textureId

    the ID of the texture to use for the batch

  12. var bufferIndex: Int

    Vertex Buffer Start Index

    Vertex Buffer Start Index

    Attributes
    protected
  13. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def drawSprite(x: Float, y: Float, width: Float, height: Float, region: TextureRegion): Unit

    batch specified sprite to batch.

    batch specified sprite to batch. adds vertices for sprite to vertex buffer

    x

    the y position of the sprite (center)

    y

    the y position of the sprite (center)

    width

    the width and height of the sprite

    height

    the width and height of the sprite

    region

    the texture region to use for sprite

    Note

    if the batch overflows, this will render the current batch, restart it, and then batch this sprite. MUST be called after beginBatch(), and before endBatch()!

  15. def endBatch(): Unit

    signal the end of a batch.

    signal the end of a batch. render the batched sprites

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. var numSprites: Int

    Number of Sprites Currently in Buffer

    Number of Sprites Currently in Buffer

    Attributes
    protected
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. val vertexBuffer: Array[Float]

    Vertex Buffer

  29. val vertices: Vertices

    Vertices Instance Used for Rendering

  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any