GithubHelp home page GithubHelp logo

ultralight-java-reborn's People

Contributors

1zun4 avatar janrupf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

1zun4 trautmannp

ultralight-java-reborn's Issues

`UltralightView#getJavaScriptContext()` not found

First of all, thank you for your dedication to this great project.

My question is that in this example below, it says method UltralightView#getJavaScriptContext() can be used to obtain the JavaScript context, however, I cannot find the method in class net.janrupf.ujr.api.UltralightView.

// In this example we will only use JavaScript core directly, so no Ultralight view is ever created.
// Usually you would obtain the JavaScript context using UltralightView#getJavaScriptContext(), but
// here we manually create the context.

Is there something that I missed? Or is it still unimplemented (If so could you pls offer some information about it so that maybe I can submit a PR to implement it.) ? Thank you!

UltralightView#loadURL(String) causes an std::runtime_error

I'm trying to display a web page from a local html file. When i pass to method UltralightView#loadURL(String) URL with scheme file://, this message prints to the standard error stream and program execution interrupts:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Thread not attached to JVM

URLs with the http:// and https:// schemes works fine.

Thanks!

JNIUlBitmap.nativeUnlockPixels throws JNI Exception

Hi,

I am trying to get a bitmap of the surface and copy that to some texture. Here's the code

        UltralightBitmapSurface surface = (UltralightBitmapSurface) view.surface();
        UltralightBitmap bitmap = surface.bitmap();
        UltralightBuffer lock = bitmap.lockPixels();
        texture.setPixels(bitmap.rawPixels()); // some other engine code
        lock.close();

However, the above code throws this JNI exception:
Caused by: java.lang.UnsatisfiedLinkError: 'void net.janrupf.ujr.platform.jni.impl.JNIUlBitmap.nativeUnlockPixels(byte[])'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.