CM2D/inc/hgl/2d/Blend.h

22 lines
499 B
C
Raw Normal View History

2023-07-11 18:48:55 +08:00
#pragma once
#include<hgl/type/DataType.h>
namespace hgl
{
namespace bitmap
{
template<typename T> struct BlendColor
{
2023-07-11 19:36:48 +08:00
virtual const T operator()(const T &src,const T &)const
2023-07-11 18:48:55 +08:00
{
return src;
}
2023-07-11 19:36:48 +08:00
virtual const T operator()(const T &src,const T &,const float &)const
2023-07-11 18:48:55 +08:00
{
return src;
}
2023-07-11 19:36:48 +08:00
};//template<typename T> struct BlendColor
2023-07-11 18:48:55 +08:00
}//namespace bitmap
}//namespace hgl