Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Jzy3d.--
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jzy3d+un...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
renderer.beginRendering(renderingWidth, renderingHeight);
renderer.setColor(color.
r, color.g, color.b, color.a);
gl.glMatrixMode(GL2.
GL_MODELVIEW);
gl.glPushMatrix();
gl.glLoadIdentity();
gl.glTranslatef(posScreenShifted.
x, posScreenShifted.y, 0);
if (rotate) {
gl.glRotatef((
float) angleInDegrees, 0, 0, 1);
rendererBounds = renderer.getBounds(s);
stringHorizontalWidth = (
float) rendererBounds.getHeight();
stringVerticalHeight = (
float) rendererBounds.getWidth();
renderer.draw(s, 0, 0);
}
else {
stringHorizontalWidth = (
float) rendererBounds.getWidth();
stringVerticalHeight = (
float) rendererBounds.getHeight();
renderer.draw(s, 0, 0);
// renderer.flush();
}
renderer.flush();
gl.glPopMatrix();
renderer.endRendering();
Sorry let me know if there's a better way to format code. And then I replaced the strllen and fontheight usage with the rendererBounds stuff, seems to work ok.


--
Hello, I know, the topic is old, but no solution was found.Maybe there is some news on how to turn the axis name?
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Jzy3d".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jzy3d+un...@googlegroups.com.
Cette discussion peut être lue sur le Web à l'adresse https://groups.google.com/d/msgid/jzy3d/428894fe-cd11-44d8-89d5-13a4c0f58982%40googlegroups.com.