mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-12 02:15:12 +00:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user