{{newinoldin|[[0.9.0]]|090|[[11.0]]|110|type=function|text=SpriteBatches now automatically grow when necessary}}
Sets the maximum number of sprites the SpriteBatch can hold. Existing sprites in the batch (up to the new maximum) will ''not'' be cleared when this function is called.
{{notice|This function can be slow if it is called every frame, such as from [[love.update]] or [[love.draw]].}}
== 関数 ==
=== 概要 ===
<source lang="lua">
SpriteBatch:setBufferSize( size )
</source>
=== 引数 ===
{{param (日本語)|number|size|The new maximum number of sprites the batch can hold.}}
=== 返値 ===
ありません。
== 関連 ==
* [[parent::SpriteBatch (日本語)]]
* [[SpriteBatch:getBufferSize (日本語)]]
* [[SpriteBatch:getCount (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the maximum number of sprites the SpriteBatch can hold.}}
== そのほかの言語 ==
{{i18n (日本語)|SpriteBatch:setBufferSize}}