
7 Jun
2009
7 Jun
'09
12:51 p.m.
Hi Darren, I can only show: template <class Vec> struct MakeVertex : boost::mpl::fold<Vec, detail::Nothing, detail::AddBase>::type { typedef typename boost::mpl::fold<Vec, detail::Nothing, detail::AddDeclaration>::type MakeDecl; static Vertex::Declaration MakeDeclaration() { Vertex::Declaration decl; MakeDecl::AddDecl(decl); Vertex::Declaration::Element end = {0xFF,0,D3DDECLTYPE_UNUSED,0,0,0}; decl.Add(end); return decl; } }; Without more time, Cheers Christian