Added color caster from vec3f to vec4f

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@442 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2011-10-24 14:26:58 +00:00
parent ae5e696536
commit 9e13eab3ae

View File

@@ -128,6 +128,20 @@ struct color_caster<Vec4uc,Vec3f>
}
};
template <>
struct color_caster<Vec4f,Vec3f>
{
typedef Vec4f return_type;
inline static return_type cast(const Vec3f& _src)
{
return Vec4f( _src[0],
_src[1],
_src[2],
1.0f );
}
};
template <>
struct color_caster<Vec4uc,Vec4f>
{