Commit e2548e8e authored by Matthias Betz's avatar Matthias Betz
Browse files

add start shell script

remove version requirement for opengl
parent af3b0627
......@@ -30,6 +30,7 @@
<include>start.bat</include>
<include>color.properties</include>
<include>colorMappings.csv</include>
<include>start.sh</include>
</includes>
<filtered>true</filtered>
</fileSet>
......
#!/bin/sh
javaw -jar ${project.artifactId}-${project.version}.jar
\ No newline at end of file
......@@ -202,7 +202,7 @@ public class CityGMLViewer {
if (!GLFW.glfwInit()) {
throw new IllegalStateException("Unable to initialize GLFW");
}
String title = "CityGMLViewer";
String title = "CityGMLViewer" + f.getName();
GLFW.glfwDefaultWindowHints(); // Loads GLFW's default window settings
if (useDebug) {
......@@ -210,8 +210,8 @@ public class CityGMLViewer {
}
GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE); // Sets window to be visible
GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GLFW.GLFW_TRUE); // Sets whether the window is resizable
GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3);
GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 0);
// GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3);
// GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 0);
GLFW.glfwWindowHint(GLFW.GLFW_SAMPLES, 2);
windowId = GLFW.glfwCreateWindow(width, height, title, 0, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment