|
gl.glViewport(0,0,400,400);
gl.glMatrixMode(GL2.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrtho(0, getWidth(), getLength(), 0, -10, 200);
gl.glMatrixMode(GL2.GL_MODELVIEW);
gl.glLoadIdentity();
...
...
renderer.beginRendering(drawable.getWidth(), drawable.getHeight());
renderer.draw("TESTING", 0, 300);
renderer.endRendering();
works on the Ortho.
but my gl.Perspective view didn't work.
I also tried
renderer.begin3dRendering((, but i failed.
Any quick snipplet of the code?
Sorry for the trouble
|