-
Notifications
You must be signed in to change notification settings - Fork 129
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
How to run skja without jogl or lwjgl? #53
Comments
Well, the trick is, you need to create a window and initialize OpenGL some way. LWJGL is a bit of overkill, in terms that it provides whole OpenGL for you, and you only need to create a context. Guys in https://github.com/jetbrains/skiko have AWT integration, but it’s not avaliable as a standalone library. Another pointer is Winit/Glutin (Rust libraries that do exactly that: Window and OpenGL context init). Hope this helps :) |
so is opengl a mandatory requirement to draw in a window? |
Well, Skia works best when rendering to OpenGL, Metal or Vulkan contexts. So you need one of these. It can render to bitmap (software renderer), and in theory you can show those bitmaps any way you want, but I am not sure about the performance of this solution. |
Interesting so Chrome uses opengl as a backend and flutter too?
…On Wed, 18 Nov 2020 at 11:33, Nikita Prokopov ***@***.***> wrote:
Well, Skia works best when rendering to OpenGL, Metal or Vulkan contexts.
So you need one of these.
It *can* render to bitmap (software renderer), and in theory you can show
those bitmaps any way you want, but I am not sure about the performance of
this solution.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#53 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKSZKP4VJ23UQ6UWWEDOKLSQOWHLANCNFSM4TZYYV4A>
.
|
So basically I could provide a current GL context (i.e. FBO) and let SKIJA do the rendering ? |
Yes, as far as I know
Something like that (sorry, I am not a graphical programmer, I might mix some terms, but this is how I understand it). See
and |
Just to complete this even by using software render I need access to a graphical context. |
@Solido what about examples/bitmap? Does that crashes for you too? |
Yes launching shadow jar from ITerm lead to Unhandled exception |
Hello,
i was wondering if it possible to have the examples run in desktop without the aid of lwjgl or jogl. Any other dependency free way to do that?
The text was updated successfully, but these errors were encountered: