JAVAFX on ANDROID

Matthias Hänel haenel at ultramixer.com
Mon Oct 14 06:49:15 PDT 2013


Hi Tomas,


Am 14.10.2013 um 14:31 schrieb tomas.brandalik <tomas.brandalik at oracle.com>:

> Hi Matthias,
> cool, I'm surprised you we're able to run it on emulator. I run on device not on emulator for a long time. There wasn't  opengl extension GL_EXT_texture_format_BGRA8888 in emulator. But that could have changed overtime.


well, this is probably not an coinsidence. I have seen your BGRA8888 quirk, but this doesn't apply to Android actually.
I fixed it like someone fixed it for iOS:

    public boolean isFormatSupported(PixelFormat format) {
        GLFactory glFactory = ES2Pipeline.glFactory;
        switch (format) {
            case BYTE_RGB:
            case BYTE_GRAY:
            case BYTE_ALPHA:
            case MULTI_YCbCr_420:
                return true;
            case BYTE_BGRA_PRE:
            case INT_ARGB_PRE:
                if (glFactory.isGL2() || PlatformUtil.isIOS() || PlatformUtil.isAndroid()) {


> Regarding events: yes there seems to be a problem which I haven't discovered. I've pushed multitouch support and broke touch events on dalvik. I will fix that soon.

It would be great, if you could pass the changes to me as well, since I have a backport (java6) from a backport(java7) running over here ;)
Otherwise, it could take a while.


> In order to replace t2k there is freetype library for fonts and glyphs access and harfbuzz for layouting available among system libraries.  Although google discourages to use them since they aren't part of public api. It can bring all sorts of compatibility problems (harfbuzz implementation has changed in recent android releases for example). Yes try pango if you have time to spare and share results please.


Hhm, this sounds like quite some work. Pango would probably the fastest way to do. Do you know
where I have to place it?


regards
Matthias




More information about the openjfx-dev mailing list