Merge pull request #14990 from j-jorge/wic-macro-test

Uniformize image support macro usage.
This commit is contained in:
minggo 2016-04-20 09:57:57 +08:00
commit 5d3b654a74
4 changed files with 5 additions and 5 deletions

View File

@ -802,7 +802,7 @@ namespace
#endif // CC_USE_JPEG
}
#ifdef CC_USE_WIC
#if CC_USE_WIC
bool Image::decodeWithWIC(const unsigned char *data, ssize_t dataLen)
{
bool bRet = false;

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "base/CCRef.h"
#include "renderer/CCTexture2D.h"
#if defined(CC_USE_WIC)
#if CC_USE_WIC
#include "platform/winrt/WICImageLoader-winrt.h"
#endif
@ -155,7 +155,7 @@ public:
static void setPVRImagesHavePremultipliedAlpha(bool haveAlphaPremultiplied);
protected:
#if defined(CC_USE_WIC)
#if CC_USE_WIC
bool encodeWithWIC(const std::string& filePath, bool isToRGB, GUID containerFormat);
bool decodeWithWIC(const unsigned char *data, ssize_t dataLen);
#endif

View File

@ -29,7 +29,7 @@ obtained from https://directxtk.codeplex.com
NS_CC_BEGIN
#if defined(CC_USE_WIC)
#if CC_USE_WIC
IWICImagingFactory* WICImageLoader::_wicFactory = NULL;

View File

@ -31,7 +31,7 @@ obtained from https://directxtk.codeplex.com
#include "base/ccConfig.h"
#if defined(CC_USE_WIC)
#if CC_USE_WIC
#include <memory>
#include <string>