axmol/cocos/renderer/CCColorizer.h

24 lines
575 B
C
Raw Normal View History

2020-08-04 00:14:35 +08:00
/**
* CCColorizer, for color translate matrix
* reference: http://graficaobscura.com/matrix/index.html
* @autohr HALX99 2020
*/
#pragma once
#ifndef _CCCOLORIZER_H_
2021-12-25 10:04:45 +08:00
# define _CCCOLORIZER_H_
# include "math/CCMath.h"
# include "base/ccTypes.h"
# include <string>
2020-08-04 00:14:35 +08:00
NS_CC_BEGIN
class CC_DLL Colorizer
{
public:
2021-12-25 10:04:45 +08:00
static bool enableNodeIntelliShading(Node* node, const Vec3& hsv, const Vec3& filter = Vec3(1.0f, 0.45f, 0.3109f));
2020-08-04 00:14:35 +08:00
2021-12-25 10:04:45 +08:00
static void updateNodeHsv(Node* node, const Vec3& hsv, const Vec3& filter = Vec3(1.0f, 0.45f, 0.3109f));
2020-08-04 00:14:35 +08:00
};
NS_CC_END
#endif