libGDX 1.11.0, fix #972
This commit is contained in:
parent
36e4116d39
commit
e1191f68ae
@ -32,12 +32,15 @@ def versionName() { return version }
|
|||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
if (JavaVersion.current().isJava9Compatible()) {
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
if (!project.properties.containsKey('android')) {
|
if (!project.properties.containsKey('android')) {
|
||||||
|
if (project.name == 'vtm-desktop-lwjgl3' || project.name == 'vtm-playground' || project.name == 'vtm-theme-comparator')
|
||||||
options.compilerArgs.addAll(['--release', '8'])
|
options.compilerArgs.addAll(['--release', '8'])
|
||||||
|
else
|
||||||
|
options.compilerArgs.addAll(['--release', '7'])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- MVT simplification [#956](https://github.com/mapsforge/vtm/pull/956)
|
- MVT simplification [#956](https://github.com/mapsforge/vtm/pull/956)
|
||||||
- `Parameters.SIMPLIFICATION_TOLERANCE`, `Parameters.SIMPLIFICATION_EXCEPTIONS`
|
- `Parameters.SIMPLIFICATION_TOLERANCE`, `Parameters.SIMPLIFICATION_EXCEPTIONS`
|
||||||
|
- libGDX 1.11.0 [#972](https://github.com/mapsforge/vtm/pull/972)
|
||||||
- Disable `vtm-web` [#973](https://github.com/mapsforge/vtm/pull/973)
|
- Disable `vtm-web` [#973](https://github.com/mapsforge/vtm/pull/973)
|
||||||
- Minor improvements and bug fixes
|
- Minor improvements and bug fixes
|
||||||
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.19.0)
|
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.19.0)
|
||||||
|
@ -37,8 +37,8 @@ implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-arm64-v8
|
|||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
|
||||||
implementation 'com.badlogicgames.gdx:gdx:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx:1.11.0'
|
||||||
implementation 'com.badlogicgames.gdx:gdx-backend-android:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx-backend-android:1.11.0'
|
||||||
implementation 'com.caverock:androidsvg:1.4'
|
implementation 'com.caverock:androidsvg:1.4'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -53,15 +53,15 @@ implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]'
|
|||||||
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-linux'
|
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-linux'
|
||||||
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-osx'
|
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-osx'
|
||||||
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-windows'
|
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-windows'
|
||||||
implementation 'com.badlogicgames.gdx:gdx:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx:1.11.0'
|
||||||
implementation 'com.badlogicgames.gdx:gdx-platform:1.9.10:natives-desktop'
|
implementation 'com.badlogicgames.gdx:gdx-platform:1.11.0:natives-desktop'
|
||||||
implementation 'com.formdev:svgSalamander:1.1.3'
|
implementation 'com.formdev:svgSalamander:1.1.3'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Desktop (LWJGL)
|
### Desktop (LWJGL)
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'org.mapsforge:vtm-desktop-lwjgl:[CURRENT-VERSION]'
|
implementation 'org.mapsforge:vtm-desktop-lwjgl:[CURRENT-VERSION]'
|
||||||
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.11.0'
|
||||||
implementation 'org.lwjgl.lwjgl:lwjgl:2.9.3'
|
implementation 'org.lwjgl.lwjgl:lwjgl:2.9.3'
|
||||||
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
|
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
|
||||||
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
|
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
|
||||||
@ -71,11 +71,11 @@ implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-windows'
|
|||||||
### Desktop (LWJGL 3)
|
### Desktop (LWJGL 3)
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'org.mapsforge:vtm-desktop-lwjgl3:[CURRENT-VERSION]'
|
implementation 'org.mapsforge:vtm-desktop-lwjgl3:[CURRENT-VERSION]'
|
||||||
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl3:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl3:1.11.0'
|
||||||
implementation 'org.lwjgl:lwjgl:3.2.3'
|
implementation 'org.lwjgl:lwjgl:3.3.1'
|
||||||
implementation 'org.lwjgl:lwjgl:3.2.3:natives-linux'
|
implementation 'org.lwjgl:lwjgl:3.3.1:natives-linux'
|
||||||
implementation 'org.lwjgl:lwjgl:3.2.3:natives-macos'
|
implementation 'org.lwjgl:lwjgl:3.3.1:natives-macos'
|
||||||
implementation 'org.lwjgl:lwjgl:3.2.3:natives-windows'
|
implementation 'org.lwjgl:lwjgl:3.3.1:natives-windows'
|
||||||
```
|
```
|
||||||
|
|
||||||
### JTS geometries
|
### JTS geometries
|
||||||
|
@ -222,7 +222,7 @@ public class AndroidGL implements GL {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
||||||
return androidGL.glGetActiveUniform(program, index, size, type);
|
return androidGL.glGetActiveUniform(program, index, size, (IntBuffer) type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -276,5 +276,4 @@ public class InputHandler implements InputProcessor {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.7'
|
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.18'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ sourceSets.main.java.srcDirs = ["src/"]
|
|||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
roboVMVersion = "2.3.7"
|
roboVMVersion = "2.3.18"
|
||||||
}
|
}
|
||||||
|
|
||||||
launchIPhoneSimulator.dependsOn build
|
launchIPhoneSimulator.dependsOn build
|
||||||
|
@ -3,7 +3,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.7'
|
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.18'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ sourceSets.main.java.srcDirs = ["src/"]
|
|||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
roboVMVersion = "2.3.7"
|
roboVMVersion = "2.3.18"
|
||||||
}
|
}
|
||||||
|
|
||||||
launchIPhoneSimulator.dependsOn build
|
launchIPhoneSimulator.dependsOn build
|
||||||
|
@ -17,21 +17,15 @@ package org.oscim.ios.backend;
|
|||||||
|
|
||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.graphics.Pixmap;
|
import com.badlogic.gdx.graphics.Pixmap;
|
||||||
|
|
||||||
import org.oscim.backend.AssetAdapter;
|
import org.oscim.backend.AssetAdapter;
|
||||||
import org.oscim.backend.GL;
|
import org.oscim.backend.GL;
|
||||||
import org.oscim.backend.canvas.Bitmap;
|
import org.oscim.backend.canvas.Bitmap;
|
||||||
import org.oscim.backend.canvas.Color;
|
import org.oscim.backend.canvas.Color;
|
||||||
import org.robovm.apple.coregraphics.CGBitmapContext;
|
import org.robovm.apple.coregraphics.*;
|
||||||
import org.robovm.apple.coregraphics.CGBlendMode;
|
|
||||||
import org.robovm.apple.coregraphics.CGColor;
|
|
||||||
import org.robovm.apple.coregraphics.CGColorSpace;
|
|
||||||
import org.robovm.apple.coregraphics.CGImage;
|
|
||||||
import org.robovm.apple.coregraphics.CGImageAlphaInfo;
|
|
||||||
import org.robovm.apple.coregraphics.CGRect;
|
|
||||||
import org.robovm.apple.foundation.NSData;
|
import org.robovm.apple.foundation.NSData;
|
||||||
import org.robovm.apple.uikit.UIColor;
|
import org.robovm.apple.uikit.UIColor;
|
||||||
import org.robovm.apple.uikit.UIImage;
|
import org.robovm.apple.uikit.UIImage;
|
||||||
|
import org.robovm.rt.VM;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@ -39,6 +33,7 @@ import java.io.ByteArrayOutputStream;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.nio.Buffer;
|
import java.nio.Buffer;
|
||||||
|
import java.nio.ByteOrder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* iOS specific implementation of {@link Bitmap}.
|
* iOS specific implementation of {@link Bitmap}.
|
||||||
@ -217,7 +212,7 @@ public class IosBitmap implements Bitmap {
|
|||||||
glFormat = pixmap.getGLFormat();
|
glFormat = pixmap.getGLFormat();
|
||||||
glType = pixmap.getGLType();
|
glType = pixmap.getGLType();
|
||||||
|
|
||||||
directPixelBuffer = cgBitmapContext.getData().asIntBuffer(encodedData.length / 4);
|
directPixelBuffer = VM.newDirectByteBuffer(cgBitmapContext.getData(), (encodedData.length / 4) << 2).order(ByteOrder.nativeOrder()).asIntBuffer();
|
||||||
pixmap.dispose();
|
pixmap.dispose();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -563,7 +563,7 @@ public class IosGL implements GL {
|
|||||||
program,
|
program,
|
||||||
index,
|
index,
|
||||||
size,
|
size,
|
||||||
type);
|
(IntBuffer) type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -572,7 +572,7 @@ public class IosGL implements GL {
|
|||||||
program,
|
program,
|
||||||
index,
|
index,
|
||||||
size,
|
size,
|
||||||
type);
|
(IntBuffer) type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user