Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 0d04a9d

Browse files
committed
Merge branch 'master' of github.com:LabyMod/ultralight-java into fix-gpu-driver
2 parents f0a6f31 + f04b7bc commit 0d04a9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1531
-653
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Using the library with maven:
3838
<groupId>com.labymedia</groupId>
3939
<artifactId>ultralight-java-base</artifactId>
4040
<!-- Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-base !-->
41-
<version>0.3.4</version>
41+
<version>0.4.1</version>
4242
</dependency>
4343
```
4444

@@ -48,19 +48,19 @@ If you need Javascript interop:
4848
<groupId>com.labymedia</groupId>
4949
<artifactId>ultralight-java-databind</artifactId>
5050
<!-- Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-databind !-->
51-
<version>0.3.4</version>
51+
<version>0.4.1</version>
5252
</dependency>
5353
```
5454

5555
### Gradle
5656
```kotlin
5757
dependencies {
5858
// Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-base
59-
implementation("com.labymedia", "ultralight-java-base", "0.3.4")
59+
implementation("com.labymedia", "ultralight-java-base", "0.4.1")
6060

6161
// // Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-databind
6262
// Remove the comments if you need Javascript interop
63-
// implementation("com.labymedia", "ultralight-java-databind", "0.3.4")
63+
// implementation("com.labymedia", "ultralight-java-databind", "0.4.1")
6464
}
6565
```
6666

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.4.2

example/lwjgl3-opengl/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import org.apache.tools.ant.taskdefs.condition.Os
22
import groovy.json.JsonOutput
33

4-
54
plugins {
65
id 'application'
76
}
@@ -22,7 +21,6 @@ def lwjglClassifier = {
2221

2322
repositories {
2423
mavenCentral()
25-
mavenLocal()
2624
}
2725

2826
dependencies {

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleApplication.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
*/
4343
public class ExampleApplication {
4444
private final long window;
45-
private InputAdapter inputAdapter;
4645
private final CursorAdapter cursorManager;
4746
private final WebController webController;
4847

@@ -160,7 +159,7 @@ public void run() {
160159

161160
webController.initGPUDriver();
162161

163-
this.inputAdapter = webController.getInputAdapter();
162+
InputAdapter inputAdapter = webController.getInputAdapter();
164163

165164
// Register all the GLFW callbacks required by this application
166165
setCallback(GLFW::glfwSetWindowContentScaleCallback, inputAdapter::windowContentScaleCallback);

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.nio.file.Path;
2929
import java.nio.file.Paths;
3030
import java.nio.file.StandardCopyOption;
31-
import java.util.concurrent.CountDownLatch;
3231

3332
/**
3433
* Entry pointer for the example application.
@@ -59,11 +58,6 @@ public static void main(String[] args) throws UltralightLoadException {
5958
// This only extracts the native library for ultralight-java-base, but not the other Ultralight libraries.
6059
// It is your task to get them into the run directory, possibly by extracting them on your own.
6160
UltralightJava.extractNativeLibrary(nativesDir);
62-
/*try {
63-
GPUDriverUtil.extractNativeLibrary(nativesDir);
64-
} catch (IOException e) {
65-
e.printStackTrace();
66-
}*/
6761

6862
// Load the native libraries from the given directory. This method makes sure everything is loaded in the
6963
// correct order. If you want to manually load all natives, either don't use this function or pass 'false' as

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/FBOEntry.java renamed to example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/gpu/FBOEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1818
*/
1919

20-
package com.labymedia.ultralight.lwjgl3.opengl;
20+
package com.labymedia.ultralight.lwjgl3.opengl.gpu;
2121

2222
public class FBOEntry {
2323
long fboId;

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/GPUContextGL.java renamed to example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/gpu/GPUContextGL.java

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,7 @@
1717
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1818
*/
1919

20-
package com.labymedia.ultralight.lwjgl3.opengl;/*
21-
* Ultralight Java - Java wrapper for the Ultralight web engine
22-
* Copyright (C) 2020 - 2021 LabyMedia and contributors
23-
*
24-
* This program is free software; you can redistribute it and/or
25-
* modify it under the terms of the GNU Lesser General Public
26-
* License as published by the Free Software Foundation; either
27-
* version 3 of the License, or (at your option) any later version.
28-
*
29-
* This program is distributed in the hope that it will be useful,
30-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
31-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32-
* Lesser General Public License for more details.
33-
*
34-
* You should have received a copy of the GNU Lesser General Public License
35-
* along with this program; if not, write to the Free Software Foundation,
36-
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37-
*/
20+
package com.labymedia.ultralight.lwjgl3.opengl.gpu;
3821

3922
public class GPUContextGL {
4023
private long window;

0 commit comments

Comments
 (0)