I have a std::map<int, Point> keyed by the points id. I need to do the equivalent of a memcpy into a pointer like the following.
struct Point {
float x, y, z;
float nx, ny, nz;
};
// ...
std::map<int, Point> meshA = submesh.at(2);
Point* points = reinterpret_cast<Point*>(OGRE_MALLOC_SIMD(sizeof(Point) * totalPoints(), Ogre::MEMCATEGORY_GEOMETRY));
// memcpy into points?
After allocating the memory, how does one do the equivalent of a memcpy of std::map<int, Point> into 'Point* points'? I have to populate this pointer (Point *) which is the type my engine API takes.