vamsi krishna veligatla wrote:
apple jday wrote:
> I want to support textures which are not powers-of-two.Because this is convenient for my project.
> I found the cocos2d-x support it, but I don’t found how it did.
have you looked at this function in CCTexture2D.cpp?
bool CCTexture2D::initWithData(const void *data, CCTexture2DPixelFormat pixelFormat, unsigned int pixelsWide, unsigned int pixelsHigh, const CCSize& contentSize)
Yes, I had study the code in the CCTexture2D,and I rewrite the code into my project, but it doesn’t support the textures which are not powers-of-two.
The difference of them is I didn’t use the shade program.