jogl 2.0 fügte GLCAPabilities einen GLPROFILE -Parameter hinzu. Aus irgendeinem Grund mit diesem einfachen Code: < /p>
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;
import javax.media.opengl.awt.GLCanvas;
public class Test {
public static void main(String[] args){
GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.getDefault()));
}
}
< /code>
Ich erhalte den folgenden Fehler: < /p>
Exception in thread "main" java.lang.NullPointerException
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1561)
at javax.media.opengl.GLProfile.get(GLProfile.java:589)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:421)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:429)
at com.setcorp.mosey.Test.main(Test.java:7)
< /code>
Ich kann also nicht einmal ein Glcanvas für die Verwendung in meiner Jogl 2.0 -Anwendung erstellen.GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.get(GLProfile.GL2)));
< /code>
oder < /p>
GLCanvas canvas = new GLCanvas(new GLCapabilities(null));
< /code>
Für Zeile 7 gibt mir den gleichen Fehler. Ich entpackte die DLLs aus ihren heimischen Gläser und stellte die nativen Bibliotheksorte in Eclipse ein. Ich benutze den Jogl-2.0-B409-20110717-Windows-I586 Build und Running W7, Intel Core 2 Duo T8100 2.10GHz, 2GB RAM und NVIDIA Quadro NVS 140m.>
Ausnahme von Nullzeiger in GLProfil mit Jogl 2.0 ⇐ Java
-
- Similar Topics
- Replies
- Views
- Last post