Skip to content

GWT HTML Library Integration

Anton Chekulaev edited this page Oct 14, 2019 · 12 revisions

The library uses extended set of OpenGL functions, that is not implemented for the official HTML/GWT LibGDX backend. In order to activate them for a GWT module, the specific method should be called prior any library usage.

A. Add extra GWT dependencies

Add to your GWT module's build.gradle:

dependencies {
    implementation 'com.crashinvaders.vfx:gdx-vfx-core:0.4.3:sources'
    implementation 'com.crashinvaders.vfx:gdx-vfx-gwt:0.4.3'
    implementation 'com.crashinvaders.vfx:gdx-vfx-gwt:0.4.3:sources'

    // Optional, in case you use "gdx-vfx-effects" module.
    implementation 'com.crashinvaders.vfx:gdx-vfx-effects:0.4.3:sources'
}

B. Update your GWT configuration

Add these lines to your GdxDefinition.gwt.xml file:

<module ...>

    <!-- ... -->

    <inherits name='com.crashinvaders.vfx.GdxVfxCore' />
    <inherits name='com.crashinvaders.vfx.GdxVfxGwt' />

    <!-- Optional, in case you use "gdx-vfx-effects" module -->
    <inherits name='com.crashinvaders.vfx.GdxVfxEffects' />

</module>
Clone this wiki locally