You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing that scala-native doesn't support windows, what would be the best way to provide a binary on Windows that allows the use of OpenGL calls? If all else fails, I assume there is some way to make the JS target support WebGL? Sorry if these aren't the right questions to be asking, I'm very familiar with Scala but not so familiar with graphics programming or Windows development..
The text was updated successfully, but these errors were encountered:
SGL itself can export a jar, which only relies on AWT (and thus the JVM), so it can theoretically export games to Windows. That said, I have never tried as I'm not using Windows myself.
However, SGL does not provide access to OpenGL, it instead exports a Canvas API for 2D graphics. There are future plans to support OpenGL but it's not immediate. There are of course standard JVM bindings for OpenGL that are available.
If by binary you mean that you want a native executable (as scala-native could provide), I would say that the only option is scala-native. Unfotunately they don't yet have support for windows, and I don't know for when it is planned. I wrote some OpenGL bindings for scala-native (https://github.com/regb/scalanative-graphics-bindings) which could be handy in writing native applications with OpenGL, but they won't be able to run under Windows until scala-native supports it.
As for the js target, it should be possible to support WebGL, although this is not an immediate plan for the same reason that the JVM opengl API is not planned. There is a promising (but quite early in development) project (https://github.com/samarion/scalagl) that aims at providing a cross-platform (js, native, jvm) API of opengl in Scala, which could eventually be integrated into the SGL framework.
Hope that helps, don't hesitate if you have any more questions.
Hi,
Seeing that scala-native doesn't support windows, what would be the best way to provide a binary on Windows that allows the use of OpenGL calls? If all else fails, I assume there is some way to make the JS target support WebGL? Sorry if these aren't the right questions to be asking, I'm very familiar with Scala but not so familiar with graphics programming or Windows development..
The text was updated successfully, but these errors were encountered: