Attempt to implement faster comparison algorithm

This commit is contained in:
Joscha 2017-04-28 20:37:44 +00:00
parent 6cfb8d93a2
commit a04e58c7ca
3 changed files with 98 additions and 13 deletions

View file

@ -17,8 +17,11 @@ public:
sf::RenderTexture tex; // big RenderWindow containg the Chromosome to be evaluated
sf::RenderTexture comp; // smaller RenderWindow which is downloaded as Image
sf::VertexArray dummy;
bool horizontal;
private:
sf::Sprite sprite; // sprite to render tex to comp
// sf::Sprite sprite; // sprite to render tex to comp
sf::Shader compshdr; // shader to perform pixel-wise image diff with
sf::View view; // reduces tex to comp size while drawing
};