i want to save the texture to file on ios4 "Tex->writeContentsToFile(p)" but i got the except .
any one know how to slove it ? or i can use another way to do it .
void GLESHardwarePixelBuffer::download(const PixelBox &data)
{
OGRE_EXCEPT(Exception::ERR_RENDERINGAPI_ERROR,
"Download not possible for this pixelbuffer type",
"GLESHardwarePixelBuffer::download");
}
Same restriction on reading back frame buffers. The reasoning behind it is performance. I did just fix copyContentsToMemory for GLES2, and should do GLES 1 in 1.8 as well. You could render without overlays, take the shot and then reenable overlays.
#if OGRE_ENDIAN == OGRE_ENDIAN_BIG
// Formats are in native endian, so R8G8B8 on little endian is
// BGR, on big endian it is RGB.
case PF_R8G8B8:
return GL_RGB;
case PF_B8G8R8:
return 0;
#else
case PF_R8G8B8:
return GL_RGB;
case PF_B8G8R8:
return 0;
#endif