Difference between revisions of "love.graphics.flushBatch"
(Created page) |
m (0.11.0 -> 11.0) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
Immediately renders any pending automatically batched draws. | Immediately renders any pending automatically batched draws. | ||
Line 6: | Line 6: | ||
The current batch will be automatically flushed by [[love.graphics]] state changes (except for the transform stack and the current [[love.graphics.setColor|color]]), as well as [[Shader:send]] and methods on [[Texture]]s which change their state. Using a different Image in consecutive [[love.graphics.draw]] calls will also flush the current batch. | The current batch will be automatically flushed by [[love.graphics]] state changes (except for the transform stack and the current [[love.graphics.setColor|color]]), as well as [[Shader:send]] and methods on [[Texture]]s which change their state. Using a different Image in consecutive [[love.graphics.draw]] calls will also flush the current batch. | ||
− | [[SpriteBatch]]es, [[ParticleSystem]]s, [[Mesh]]es, and [[Text]] objects do their own batching and do not affect automatic batching of other draws. | + | [[SpriteBatch]]es, [[ParticleSystem]]s, [[Mesh]]es, and [[Text]] objects do their own batching and do not affect automatic batching of other draws, aside from flushing the current batch when they're drawn. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Latest revision as of 13:08, 29 December 2018
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Immediately renders any pending automatically batched draws.
LÖVE will call this function internally as needed when most state is changed, so it is not necessary to manually call it.
The current batch will be automatically flushed by love.graphics state changes (except for the transform stack and the current color), as well as Shader:send and methods on Textures which change their state. Using a different Image in consecutive love.graphics.draw calls will also flush the current batch.
SpriteBatches, ParticleSystems, Meshes, and Text objects do their own batching and do not affect automatic batching of other draws, aside from flushing the current batch when they're drawn.
Function
Synopsis
love.graphics.flushBatch( )
Arguments
None.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info