Difference between revisions of "Stage:setClearColorBuffer"

From GiderosMobile
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Stage|Stage]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Stage|Stage]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>If you are covering whole background with image, you can disable background color draw call for better performance</translate>
+
=== Description ===
 +
If you are covering whole background with image, you can disable background color draw call for better performance.
 
<source lang="lua">
 
<source lang="lua">
Stage:setClearColorBuffer(state)
+
Stage:setClearColorBuffer(bool)
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
'''state''': (bool) <translate>false to disable draw call, true to enable</translate> <br/>
+
'''bool''': (bool) false to disable draw call, true to enable<br/>
  
 
{{Stage}}
 
{{Stage}}

Revision as of 20:31, 11 February 2020


Available since: Gideros 2011.6
Class: Stage

Description

If you are covering whole background with 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