Skip to content
Snippets Groups Projects
Commit a3f8f37a authored by Kenneth Langedal's avatar Kenneth Langedal
Browse files

Updated lwjgl backend version

parent ab1109ee
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.release>9</maven.compiler.release>
</properties>
<dependencies>
......@@ -28,15 +27,15 @@
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-backend-lwjgl</artifactId>
<artifactId>gdx-platform</artifactId>
<version>1.9.10</version>
<classifier>natives-desktop</classifier>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-platform</artifactId>
<artifactId>gdx-backend-lwjgl3</artifactId>
<version>1.9.10</version>
<classifier>natives-desktop</classifier>
</dependency>
<dependency>
......
package inf112.skeleton.app;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
public class Main {
public static void main(String[] args) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = "hello-world";
cfg.width = 480;
cfg.height = 320;
Lwjgl3ApplicationConfiguration cfg = new Lwjgl3ApplicationConfiguration();
cfg.setTitle("hello-world");
cfg.setWindowedMode(480, 320);
new LwjglApplication(new HelloWorld(), cfg);
new Lwjgl3Application(new HelloWorld(), cfg);
}
}
\ No newline at end of file
......@@ -6,14 +6,12 @@ import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
public class AppTest {
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
public void shouldAnswerWithTrue() {
assertTrue(true);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment