Test.java
TestRenderer.java
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | import net.java.games.jogl.*; |
TestRenderer.java
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | import net.java.games.jogl.GLEventListener; |
Hi there,
sorry for the huge post.
This code works perfectly, but, if I change the block
| 1 2 3 4 5 | gl.glBegin( GL.GL_TRIANGLES ); |
for
| 1 2 3 4 5 6 7 | gl.glBegin( gl.GL_QUADS ); |
it just doen´t do nothing ... (nothing but a black screen)
The only thing that changed was the fact that it is no longer a GL_TRIANGLE and it is glVertex2i instead of glVertex3f.
I am a newbie on OpenGL, so I would think it is wierd if I missed something on the rest of the code ...
Thanks for your attention and time,
Have a nice day,
- Inácio Ferrarini.


