-////////////////////////////////////////////////////////////////////////////////
-// This program is free software; you can redistribute it and/or //
-// modify it under the terms of the GNU General Public License //
-// version 2 as published by the Free Software Foundation. //
-// //
-// This program is distributed in the hope that it will be useful, but //
-// WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
-// General Public License for more details. //
-// //
-// Written and (C) by François Fleuret //
-// Contact <francois.fleuret@epfl.ch> for comments & bug reports //
-////////////////////////////////////////////////////////////////////////////////
+// Written and (C) by Francois Fleuret
+// Contact <francois.fleuret@idiap.ch> for comments & bug reports
#include "retina.h"
}
}
-void Retina::save_as_ppm(char *filename) {
+void Retina::save_as_ppm(const char *filename) {
unsigned char *image = new unsigned char[_width * _height * 3];
}
void Retina::draw_on_universe(SimpleWindow *window) {
- window->color(1.0, 1.0, 1.0);
+ window->color(0.25, 0.25, 0.25);
int xc = int(_eye_x), yc = int(_eye_y);
window->draw_line(xc - _width/2, yc - _height/2, xc + _width/2, yc - _height/2);
window->draw_line(xc + _width/2, yc - _height/2, xc + _width/2, yc + _height/2);