mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
25 lines
493 B
C++
25 lines
493 B
C++
//
|
|
// CCColorUtil.h
|
|
// OnceAgain
|
|
//
|
|
// Created by mac on 14-4-16.
|
|
// 把精灵变灰色.
|
|
//
|
|
|
|
#ifndef __OnceAgain__CCColorUtil__
|
|
#define __OnceAgain__CCColorUtil__
|
|
|
|
#include "cocos2d.h"
|
|
USING_NS_CC;
|
|
using namespace cocos2d;
|
|
class CCColorUtil
|
|
{
|
|
public:
|
|
static void addGray(CCSprite* sp);
|
|
static void removeGray(CCSprite* sp);
|
|
static CCSprite* graylightWithCCSprite(CCSprite* oldSprite,bool isLight);
|
|
|
|
};
|
|
|
|
#endif /* defined(__OnceAgain__CCColorUtil__) */
|