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:
@@ -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 <>
|
template <>
|
||||||
struct color_caster<Vec4uc,Vec4f>
|
struct color_caster<Vec4uc,Vec4f>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user