{{newin|[[0.8.0]]|080|type=function|text=It has been renamed from [[SpriteBatch:lock]]}}
{{deprecatedin|[[0.9.2]]|092|type=function|text=It happends automatically since this version}}
{{oldin|[[0.10.0]]|100|type=function|text=Use [[SpriteBatch:flush]] if absolutely necessary}}

Binds the [[SpriteBatch]] to memory for more efficient updating.

Binding a SpriteBatch before updating its content can improve the performance as it doesn't push each update to the graphics card separately. Don't forget to [[SpriteBatch:unbind|unbind]] the SpriteBatch or the updates won't show up.
== 関数 ==
=== 概要 ===
<source lang="lua">
SpriteBatch:bind( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。
== 用例 ==
=== Updating a SpriteBatch with binding ===
<source lang="lua">
function update_spritebatch(spritebatch)
	spritebatch:bind()

	for i = 1, 100 do
		add_tile(spritebatch)
	end

	spritebatch:unbind()
end
</source>
== 関連 ==
* [[parent::SpriteBatch (日本語)]]
* [[SpriteBatch:unbind (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Binds the SpriteBatch to memory for more efficient updating.}}
== そのほかの言語 ==
{{i18n (日本語)|SpriteBatch:bind}}