Here is some quick code for printing out different details about OpenGL and OpenAL… could be helpful if ya need it. It’s missing alc stuff, which I will get around to later and update this I guess.
Enjoy?
public static void printGameDetails(int level) {
if(level > 0) {
System.out.println("--==== OpenGL ====--");
System.out.println("Version: " + GL11.glGetString(GL11.GL_VERSION));
System.out.println("GFX Card: " + GL11.glGetString(GL11.GL_RENDERER));
System.out.println("GFX Vendor: " + GL11.glGetString(GL11.GL_VENDOR));
System.out.println("Shader Version: " + GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION));
}
if(level > 1) {
System.out.println("Dumping OpenGL Extensions...");
for (int i=0; i<GL11.glGetInteger(GL30.GL_NUM_EXTENSIONS); i++)
System.out.println(GL30.glGetStringi(GL11.GL_EXTENSIONS, i));
System.out.println("End Dumping OpenGL Extensions...");
}
if(level > 0) {
//TODO: debug alc
System.out.println("--==== OpenAL ====--");
System.out.println("OpenAL Version: " + AL10.alGetString(AL10.AL_VERSION));
System.out.println("Audio Card: " + AL10.alGetString(AL10.AL_RENDERER));
System.out.println("Audio Vendor: " + AL10.alGetString(AL10.AL_VENDOR));
}
if(level > 1) {
System.out.println("Dumping OpenAL Extensions...");
System.out.println(AL10.alGetString(AL10.AL_EXTENSIONS).replace(' ', '\n'));
System.out.println("End Dumping OpenAL Extensions...");
}
}