public Renderer createRenderer(ApplicationConfiguration configuration) {
if (!displayCreated) {
throw new RuntimeException("Must init");
}
GLVersion version;
if(configuration.forceGLVersion != null) {
version = configuration.forceGLVersion;
} else {
version = glVersion;
}
if(version.getVersion() >= 1.5 && version.getVersion() < 2.0) {
return new LWJGLRendererGL15(this);
} else if (version.getVersion() >= 2.0) {
return new LWJGLRendererGL2(this);
} else {
throw new RuntimeException("You must support OpenGL 2.0 Or Higher");
}
}