Creates a new [[SpriteBatch]] object.
{{newobjectnotice (日本語)}}
== 関数 ==
=== 概要 ===
<source lang="lua">
spriteBatch = love.graphics.newSpriteBatch( image, maxsprites )
</source>
=== 引数 ===
{{param (日本語)|Image|image|The Image to use for the sprites.}}
{{param (日本語)|number|maxsprites (1000)|The maximum number of sprites that the SpriteBatch can contain at any given time. Since version [[11.0]], additional sprites added past this number will automatically grow the spritebatch.}}
=== 返値 ===
{{param (日本語)|SpriteBatch|spriteBatch|The new SpriteBatch.}}

== 関数 ==
{{newin (日本語)|[[0.8.0 (日本語)|0.8.0]]|080|type=異形}}
=== 概要 ===
<source lang="lua">
spriteBatch = love.graphics.newSpriteBatch( image, maxsprites, usage )
</source>
=== 引数 ===
{{param (日本語)|Image|image|The Image to use for the sprites.}}
{{param (日本語)|number|maxsprites (1000)|The maximum number of sprites that the SpriteBatch can contain at any given time. Since version [[11.0]], additional sprites added past this number will automatically grow the spritebatch.}}
{{param (日本語)|SpriteBatchUsage|usage ("dynamic")|The expected usage of the SpriteBatch. The specified usage mode affects the SpriteBatch's memory usage and performance.}}

=== 返値 ===
{{param (日本語)|SpriteBatch|spriteBatch|The new SpriteBatch.}}

== 関数 ==
{{newin|[[0.9.1]]|091|type=variant}}
=== 概要 ===
<source lang="lua">
spriteBatch = love.graphics.newSpriteBatch( texture, maxsprites, usage )
</source>
=== 引数 ===
{{param (日本語)|Texture|texture|The [[Image]] or [[Canvas]] to use for the sprites.}}
{{param (日本語)|number|maxsprites (1000)|The maximum number of sprites that the SpriteBatch can contain at any given time. Since version [[11.0]], additional sprites added past this number will automatically grow the spritebatch.}}
{{param (日本語)|SpriteBatchUsage|usage ("dynamic")|The expected usage of the SpriteBatch. The specified usage mode affects the SpriteBatch's memory usage and performance.}}
=== 返値 ===
{{param (日本語)|SpriteBatch|spriteBatch|The new SpriteBatch.}}

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[Constructs::SpriteBatch (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Creates a new [[SpriteBatch]].}}
{{#set:Since=000}}
{{#set:Sub-Category=Object Creation (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.newSpriteBatch}}