RenderTexture * pRTex;
pRTex->begin();
visit();
pRTex->end();
Image* image = new Image();
image = pRTex->newImage(true);
unsigned char *data_ = image->getData();
如果屏幕如下:(0表示没有像素的部分 ,1表示有像素的部分)
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000
那么1所表示的有像素部分 在data中的下标是:下面的①或② 或其他?
①
height ( width,height)
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000
(0,0) width
②
height ( width,height )
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
(0,0) width