Difference between revisions of "Stage:setClearColorBuffer"

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

Revision as of 14:32, 23 August 2018

Available since: Gideros 2011.6

Description

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

 Stage:setClearColorBuffer(state)

Parameters

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