开发者

C# XNA Texture2D.SetData rectangle?

I have a very large texture and would like to set the pixel data of a specific part of it. I need it to be as fast as possible so is it possible to give SetData a rectangle of data instead o开发者_JS百科f the entire texture data?


Yes. However, getting part of the texture compared to the whole thing is unlikely make a difference except maybe if the texture is huge.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜