在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):badlogic/lwjgl3-maven-gradle开源软件地址(OpenSource Url):https://github.com/badlogic/lwjgl3-maven-gradle开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):LWJGL 3 Maven/Gradle sampleThis sample demonstrates how to use LWJGL 3 via Maven or Gradle. The MavenTo use LWJGL 3 via Maven, add the following dependencies to your <properties>
<lwjgl.version>3.0.0a</lwjgl.version>
</properties>
<dependencies>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl</artifactId>
<version>${lwjgl.version}</version>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-platform</artifactId>
<version>${lwjgl.version}</version>
<classifier>natives-windows</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-platform</artifactId>
<version>${lwjgl.version}</version>
<classifier>natives-osx</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-platform</artifactId>
<version>${lwjgl.version}</version>
<classifier>natives-linux</classifier>
</dependency>
</dependencies>
Note the LWJGL also releases snapshot builds daily to SonaType. This lets you use the latest and greatest changes from the Git master branch. To use a snapshot build, you need to add the SonaType snapshot repository to your <repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories> Then simply change the GradleTo use LWJGL 3 via Gradle, add the following dependencies to your project.ext.lwjglVersion = "3.0.0a"
dependencies {
compile "org.lwjgl:lwjgl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-platform:${lwjglVersion}:natives-windows"
compile "org.lwjgl:lwjgl-platform:${lwjglVersion}:natives-linux"
compile "org.lwjgl:lwjgl-platform:${lwjglVersion}:natives-osx"
} Note the assignment to LWJGL also releases snapshot builds daily to SonaType. This lets you use the latest and greatest changes from the Git master branch. To use a snapshot build, you need to add the SonaType snapshot repository to your `build.gradle: repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
} Then simply assign a snapshot version to Shared library loadingThe source of this repository contains a class SharedLibraryLoader.load() You can do this as the first statement in your application's |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论