mirror of https://github.com/axmolengine/axmol.git
31 lines
697 B
C++
31 lines
697 B
C++
#pragma once
|
|
|
|
#include "Macros.h"
|
|
#include "Types.h"
|
|
#include "base/CCRef.h"
|
|
|
|
CC_BACKEND_BEGIN
|
|
|
|
struct BlendDescriptor
|
|
{
|
|
ColorWriteMask writeMask = ColorWriteMask::ALL;
|
|
|
|
bool blendEnabled = false;
|
|
|
|
BlendOperation rgbBlendOperation = BlendOperation::ADD;
|
|
BlendOperation alphaBlendOperation = BlendOperation::ADD;
|
|
|
|
BlendFactor sourceRGBBlendFactor = BlendFactor::ONE;
|
|
BlendFactor destinationRGBBlendFactor = BlendFactor::ZERO;
|
|
BlendFactor sourceAlphaBlendFactor = BlendFactor::ONE;
|
|
BlendFactor destinationAlphaBlendFactor = BlendFactor::ZERO;
|
|
};
|
|
|
|
class BlendState : public cocos2d::Ref
|
|
{
|
|
protected:
|
|
virtual ~BlendState() = default;
|
|
};
|
|
|
|
CC_BACKEND_END
|