Skip to content

Commit

Permalink
Update to libGDX 1.9.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Nov 1, 2020
1 parent fb2ba61 commit e6de328
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 308 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# guacamole
guacamole

[![Release](https://jitpack.io/v/crykn/guacamole.svg)](https://jitpack.io/#crykn/guacamole) ![GWT Compatible](https://img.shields.io/badge/GWT-compatible-informational)

Expand Down Expand Up @@ -77,7 +77,6 @@ dependencies {

**What is added:**

* [Sync](https://github.com/crykn/guacamole/blob/master/gdx-desktop/src/main/java/de/damios/guacamole/gdx/Sync.java): Adds the commonly used [sync class](http://forum.lwjgl.org/index.php?topic=6582.msg34846#msg34846) (originally from LWJGL2), which helps mitigate the fps issues in LWJGL3; see [here](https://github.com/crykn/guacamole/wiki/Sync-usage) for how to use it
* [StartOnFirstThreadHelper](https://github.com/crykn/guacamole/blob/master/gdx-desktop/src/main/java/de/damios/guacamole/gdx/StartOnFirstThreadHelper.java): Starts a new JVM if the current one was not started with the `-XstartOnFirstThread` argument on Mac OS


4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ allprojects {
apply plugin: "eclipse"
apply plugin: "idea"

version = "0.2.2"
version = "0.2.3"
ext {
appName = "guacamole"
formicVersion = "0.1.4"
gdxVersion = "1.9.11"
gdxVersion = "1.9.12"
jsrVersion = "3.0.2"
junitVersion = "5.6.0"
mockitoVersion = "3.2.4"
Expand Down
193 changes: 0 additions & 193 deletions gdx-desktop/src/main/java/de/damios/guacamole/gdx/Sync.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public default boolean mouseMoved(int screenX, int screenY) {
* {@inheritDoc}
*/
@Override
public default boolean scrolled(int amount) {
public default boolean scrolled(float amountX, float amountY) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import java.nio.ByteOrder;
import java.nio.IntBuffer;

import com.badlogic.gdx.Application.ApplicationType;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.utils.GdxRuntimeException;

/**
* OpenGL utilities.
Expand All @@ -49,15 +47,8 @@ private GLUtils() {
*
* @return the name of the currently bound framebuffer; the initial value is
* {@code 0}, indicating the default framebuffer
*
* @see <a href= "https://github.com/libgdx/libgdx/issues/4688">The libGDX
* issue detailing the WebGL problems</a>
*/
public static synchronized int getBoundFboHandle() {
if (Gdx.app.getType() == ApplicationType.WebGL)
throw new GdxRuntimeException(
"This operation is not supported on WebGL without the libgdx-screenmanager-gwt extension!");

IntBuffer intBuf = USED_INT_BUFF;
Gdx.gl.glGetIntegerv(GL20.GL_FRAMEBUFFER_BINDING, intBuf);
return intBuf.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void test() {
assertTrue(!in.keyTyped((char) 5));
assertTrue(!in.keyUp(3));
assertTrue(!in.mouseMoved(8, 5));
assertTrue(!in.scrolled(1));
assertTrue(!in.scrolled(1F, 1F));
assertTrue(!in.touchDown(4, 7, 8, 6));
assertTrue(!in.touchDragged(1, 4, 4));
assertTrue(!in.touchUp(4, 1, 1, 5));
Expand Down

0 comments on commit e6de328

Please sign in to comment.