Hi all,
I have 2qn.
Qn1:
a perspective viewport
and i wish to have some text appearing on the screen.
How can I do that?
I tried the following code on ortho view and it works but not on my perspective view…
gl.glPushMatrix();
gl.glTranslatef(0.0f, 0.0f, -2.0f);
gl.glColor3f(1.0f, 1.0f, 1.0f); glut.glutBitmapString(GLUT.BITMAP_HELVETICA_12, getText());
gl.glPopMatrix();
And 2nd Qn:
How can I load a 2d Texture on my perspective view as well?