LWJGL Struggling with VBO's

Hey,

I’ve been trying to learn OpenGL and after learning some of the fixed functionality stuff, I’m trying to learn the newer versions of OpenGL.
I’m following this tutorial here on the LWJGL Wiki.

The code works fine if I copy paste it into Eclipse, but the code I’ve written is spread out over more classes.

No errors are being printed out, but nothing is being rendered to the screen.
I’ve posted my code in a pastebin, I was hoping someone might be able to point out where I’ve gone wrong.

Pastebin: http://www.java-gaming.org/index.php?action=pastebin&hex=5fd164b2f3e

Thanks,

Rich

That’s way too much code to go through, sorry. Try something simpler like just rendering a single triangle or something. It’s a big step to just get something on the screen with OGL3. Otherwise I’d recommend that you try to find where everything is going wrong.

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. ;D

Why use OpenGL at all? He could probably use something even more deprecated.

+1 to OGL3.

Yeah! Le’ts use…Microsoft GL!

What? Microsoft GL? (I don’t think that exists… )
We use an Arduino with one little LED!

To hard, just connect the led to an push button :slight_smile:

The LED is redundant. If you’re a good programmer, you should be able to calculate that if the button is pressed the LED is supposed to be on, so there’s no need for it.

If you’re a real programmer, you’ve already statically proven whether the light is on or off, so there’s no need to actually do it.