SpriteBatch.draw

Draws the texture

Remember to call flush after drawing all the textures you want

Flush will automatically be called if your draws exceed the max count Flush will automatically be called if you queue an other texture

  1. void draw(string item, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)
  2. void draw(AtlasIndex index, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)
  3. void draw(Texture texture, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)
    class SpriteBatch
    void
    draw
    (
    Texture texture
    ,,
    vec4 cutout = vec4.init
    ,
    vec2 origin = vec2(0, 0)
    ,
    float rotation = 0f
    ,,
    vec4 color = vec4(1)
    )

Meta