Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17093

Cocos2dx JS: RenderTexture clearRect not happening

$
0
0

@saiy2k wrote:

After drawing few sprites onto my render Texture, I am trying to erase a portion of the texture as in the following code.
But the clearRect is not having any effect.

I tried putting the clearRect before .end(), but no efffect.

Any help on this?

     this.renderTex.begin();
     this.o.visit();
     this.creditLogo.visit();
     this.renderTex.end();
     this.renderTex.clearRect(0, 0, 640, 100);

Cocos2d-JS Version: 3.10

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>