*** empty log message ***
#include "BitmapFont.h" ostream& operator<<(ostream &os,const BitmapFont &bf){ os << "width= " << bf.getWidth() <<",height=" << bf.getHeight() <<"\n"; for(int y=0;y<bf.getHeight();y++){ for(int x=0;x<bf.getWidth();x++){ if(bf.get(x,y)) os << '@'; else os << '.'; } os << "\n"; } vector<pixel>::iterator it; for(it=bf.pixels.begin();it!=bf.pixels.end();it++) os << '(' << (*it).first << ',' << (*it).second << ')'; os << "\n"; return os; }
ktanaka Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |