|
Boost : |
Subject: Re: [boost] boost::directx?
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-06-07 08:51:26
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk