[ODE] casting
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Wed Dec 7 11:29:19 MST 2005
> dGeomTriMeshDataBuildXXX functions all use void ptrs to pass
> vertices, indices and normals. That doesn't sound right.
That's because, typically, you'll pass in a pointer to whatever your own
data structure is, and a separate stride. The best representation of
that in an API is a void* plus a size_t.
> And if it's really unavoidable, shouldn't we cast like Scott Meyers
> tells us to? dynamic_cast<> and static_cast<> is the modern way.
When you're dealing with POD types, it doesn't matter, period.
Cheers,
/ h+
More information about the ODE
mailing list