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

How to make a copy of Texture2D?

$
0
0

@igormats wrote:

Hi. I need to make a copy of Texture2D. I mean a real copy not reference.

auto a = Sprite::create("file.png");
auto b = Sprite::createWithTexture(a->getTexture()->COPY?);

Thank you!

Posts: 9

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 17098

Trending Articles



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