Clean up fitness related parts

This commit is contained in:
Joscha 2017-04-30 17:54:47 +00:00
parent 442a5f8434
commit ac8354c686
3 changed files with 18 additions and 80 deletions

View file

@ -8,10 +8,10 @@
class Fitness
{
public:
Fitness(sf::Texture target, float scale=1);
Fitness(sf::Texture target);
bool loadShader(std::string filename);
unsigned long long of(Chromosome chr);
unsigned long long of(const Chromosome& chr);
sf::Texture target; // base image to compare against
sf::RenderTexture tex; // big RenderWindow containg the Chromosome to be evaluated
@ -21,7 +21,5 @@ public:
bool horizontal;
private:
// 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
};