Ciao!
I was playing with the awesome ofxVectorGraphics when I arrived at the point I wanted to have a translated/rotated square.
so in the ofxVectorGraphics example I changed the code from:
//b - rectangle from the top left corner
ofSetColor(0xCC0000);
ofDrawBitmapString("b & c) rect();\n", 220, 140);
output.setColor(0xFF4d4d);
output.disableCenterRect();
output.rect(240, 50, 60, 60);
having this result on screen
and this result as eps
http://de.posi.to/roba/WithoutTransl.ps
to
//b - rectangle from the top left corner
ofSetColor(0xFF0000);
ofDrawBitmapString("b & c) rect();\n", 220, 140);
output.setColor(0xFF4d4d);
output.disableCenterRect();
glPushMatrix();
glTranslatef(240,50,0);
output.rect(0, 0, 60, 60);
glPopMatrix();
having this result on screen
and this result as eps
http://de.posi.to/roba/withTransl.ps
I was expecting this as the gl commands are talking to openGl and its transformations are probably not transferred to the object that handles the vector graphics output.
any suggestion about this? there must be a way to specify basic transformation also in the vector output object.
Thanks!