-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Ultralight 1.2.1 #54
Comments
I got the c api sample working, all of the setup had to be done within a newly spawned C thread, js callbacks work etc. e.g. `void Init() printf("init\n"); /// printf("create settings and config\n"); printf("create app\n"); /// printf("destroy config\n"); /// /// /// /// /// overlay = ulCreateOverlay(window, ulWindowGetWidth(window), ulWindowGetHeight(window), 0, 0); /// // js callback ULString newhtml = ulCreateString(InitialHTML); ulViewLoadHTML(view, newhtml); ulAppRun(app); Shutdown(); /// // put string into IninitialHTML // print initial html // put string into IninitialHTML // print initial html /// We tear down our application here. // typedef unsigned long DWORD; DWORD WINAPI ThreadProc(LPVOID lpParameter) void Run() HANDLE hThread; hThread = CreateThread(NULL, 0, ThreadProc, NULL, 0, &threadID); |
I'm currently working on getting this ported to the most recent Ultralight version, which at the time of writing is 1.2.1. Soon 1.3 will be going into beta and I'll look at migrating to that once it's been fully released, even if the API is already frozen.
Currently work is being done on https://github.com/ImVexed/muon/tree/1.2.1-support
To be clear, none of this currently works. The bindings compile, but there are lots of runtime errors. And if someone does successfully manage to get this to actually run, please tell me how.
Things left to do:
UlViewEvaluateScript()
no longer returns aJSValueRef
and we need to make sure that the newJSEvaluateScript
works as expectedUlCreateOverlay
bug around not finding a suitable renderer (Handle force_cpu_renderer setting on Linux (GLFW-backend) ultralight-ux/Ultralight#442)UlCreateApp
The text was updated successfully, but these errors were encountered: