Parralellize mesh reset

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1052 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
psperl
2008-06-22 20:28:57 +00:00
parent 48f40e199f
commit 970d8b2cb9

View File

@ -1,7 +1,8 @@
#include <math.h>
#include <algorithm>
#include "PerPixelMesh.hpp"
#include "omptl/omptl"
#include "omptl/omptl_algorithm"
PerPixelMesh::PerPixelMesh(int width, int height) : width(width), height(height), size (width * height),
p(width * height, Point(0,0)),
@ -38,7 +39,7 @@ PerPixelMesh::PerPixelMesh(int width, int height) : width(width), height(height)
void PerPixelMesh::Reset()
{
std::copy(p_original.begin(), p_original.end(), p.begin());
omptl::copy(p_original.begin(), p_original.end(), p.begin());
}
Point::Point(float x, float y)