java nullpointer exception...

Started by dangerdoc, October 14, 2012, 20:27:04

Previous topic - Next topic

dangerdoc

Hello,
I am trying to output GL_Version, and I am having trouble. When I try:
GlGetString(GL_VERSION)

Netbeans doesn't recognise GL_VERSION. When I try this (for any version not just GL11):
boolean  v11 = GLContext.getCapabilities().OpenGL11;

It gives me java nullpointer exception.
“We build but to tear down. Most of our work and resource is squandered. Our onward march is marked by devastation. Everywhere there is an appalling loss of time, effort and life. A cheerless view, but true.” - Nikola Tesla

Fool Running

Most likely the problem is that you need to call Display.Create() before you can call those methods.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D