From d42ff355b63195286f3ec8686bec3d8546da42b6 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 24 Jul 2013 17:53:34 +0800 Subject: [PATCH] issue #2404: Mark RenderTexture:: newCCImage as deprecated. --- cocos2dx/misc_nodes/CCRenderTexture.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2dx/misc_nodes/CCRenderTexture.h b/cocos2dx/misc_nodes/CCRenderTexture.h index 4fe49434e5..0aa356113c 100644 --- a/cocos2dx/misc_nodes/CCRenderTexture.h +++ b/cocos2dx/misc_nodes/CCRenderTexture.h @@ -104,7 +104,10 @@ public: /* creates a new Image from with the texture's data. Caller is responsible for releasing it by calling delete. */ + Image* newImage(bool flipImage = true); + + CC_DEPRECATED_ATTRIBUTE Image* newCCImage(bool flipImage = true) { return newImage(flipImage); }; /** saves the texture into a file using JPEG format. The file will be saved in the Documents folder. Returns YES if the operation is successful.