This commit updates Nifty to version 1.4.1 and makes all the necessary changes to the JME-Nifty integration to be compatible with this version of Nifty (manily support of multiple texture atlases in the batch renderer and some minor changes like the removal of some *Null classes). Most User code should still be able to compile with this change. However, the NiftyJmeDisplay constructor that requires the width and height of the texture atlas has been deprecated in favour of the newly added static factory methods: NiftyJmeDisplay.newNiftyJmeDisplay(). The new methods add support for the Nifty BatchRenderConfiguration class that allow further configuration of some rendering details. The testcase jme3test.niftygui.TestNiftyGui has been modified to use the new methods and seems to render fine for me. Most of Nifty 1.4.1 should be compatible with old versions of Nifty. However some compile-time incompatibilities might exists to old 1.3.x code. Additionally some internal mechanism have been modified with 1.4 so there might be additional runtime incompatibilities as well.
17 lines
343 B
Groovy
17 lines
343 B
Groovy
if (!hasProperty('mainClass')) {
|
|
ext.mainClass = ''
|
|
}
|
|
|
|
repositories {
|
|
maven{
|
|
url 'http://nifty-gui.sourceforge.net/nifty-maven-repo'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':jme3-core')
|
|
compile 'lessvoid:nifty:1.4.1'
|
|
compile 'lessvoid:nifty-default-controls:1.4.1'
|
|
compile 'lessvoid:nifty-style-black:1.4.1'
|
|
}
|