Commit 9e13eab3 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added color caster from vec3f to vec4f

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@442 fdac6126-5c0c-442c-9429-916003d36597
parent ae5e6965
......@@ -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>
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment