Difference between revisions of "Stage:setClearColorBuffer"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Stage]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Stage|Stage]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>If you are covering whole background with image, you can disable background color draw call for better performance</translate>
+
If you are covering the whole background with an image, you can disable background color draw call for better performance.
<source lang="lua">
+
<syntaxhighlight lang="lua">
Stage:setClearColorBuffer(state)
+
Stage:setClearColorBuffer(bool)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''state''': (bool) <translate>false to disable draw call, true to enable</translate> <br/>
+
=== Parameters ===
 +
'''bool''': (bool) false to disable draw call, true to enable<br/>
 +
 
 +
=== See Also ===
 +
'''[[Application:setBackgroundColor]]'''
 +
 
 +
{{Stage}}

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2011.6
Class: Stage

Description

If you are covering the whole background with an image, you can disable background color draw call for better performance.

Stage:setClearColorBuffer(bool)

Parameters

bool: (bool) false to disable draw call, true to enable

See Also

Application:setBackgroundColor