axmol/cocos/renderer/CCColorizer.h

28 lines
591 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_
#define _CCCOLORIZER_H_
#include "math/CCMath.h"
2020-08-04 00:59:02 +08:00
#include "base/ccTypes.h"
2020-08-04 00:14:35 +08:00
#include <string>
NS_CC_BEGIN
class CC_DLL Colorizer
{
public:
static bool enableNodeIntelliShading(Node* node,
const Vec3& hsv,
2020-10-16 17:23:29 +08:00
const Vec3& filter = Vec3(1.0f, 0.45f, 0.3109f));
2020-08-04 00:14:35 +08:00
static void updateNodeHsv(Node* node,
const Vec3& hsv,
2020-10-16 17:23:29 +08:00
const Vec3& filter = Vec3(1.0f, 0.45f, 0.3109f));
2020-08-04 00:14:35 +08:00
};
NS_CC_END
#endif