[quote]You can already do irregularly shaped windows in AWT.
[/quote]
Google>[icode]setShape(new Ellipse2D.Double(0,0,getWidth(),getHeight()));[/icode]
Of course…
[quote]Yeah, let’s just reinvent the wheel for spurious performance reasons that you haven’t quite understood! Tongue And as @princec says, what you’re currently looking to do might be possible without native code at all.
[/quote]
It seems like you expect me to actually create the project in a major degree.
What I am doing currently is just playing around with JNI. Having a problem with that is what you should point out. But ‘for spurious performance reasons’ sounds like me alright.
Besides that, JNA extends JNI just to have neat little interfaces which implement your native code the same way. And does it extensively from what I read in the sources. Correct me if I am wrong, but either httpdigest or Spasi concluded that JNA uses JNI at its very core and the overhead is a bit much for the scope of LWJGL in a github problem. Does Hydroque like overhead or the core? Core. I will learn JNI and practice it. To be honest, IMO JNI is much nicer to use.
[quote]Why not use C#? It will have much better access to the APIs you want and syntax-wise is practically Java anyway.
[/quote]
With all do respect to C#, its a great language and all, but I wouldn’t be using Java if I wanted to have namespaces, functions in my scope not selectively statically imported, etc. A bunch of mess on top of mess, really. I like clean code. Using Java and JNI, I can write in Java and, when necessary, do things in C/++. I am learning JNI here. It is good to note that I like a bunch of languages, #include <C/++/#>. I wish they would all mesh together into a neat language with modern uses. By modern I mean my subjectivity promoting my wants. Yes, that means more Lua-based things.
[quote]If you’re binding to win32 then you’ve already thrown out cross-platform.
[/quote]
Cross platform is not thrown out entirely. Natives can be swapped out anytime, preferably on run. The java code is still write once run anywhere, but the natives change. I believe that may be some goal of code with multiple natives supporting multiple systems. While having all the core that you need in Java, natives add on the things it can’t do or isn’t implemented in the JRE/JDK. So I think of it as an extension… I think most would consider LWJGL cross platform. In the scope of only binding to win32, yes it throws out cross platform. That isn’t a problem here because I am only here to learn about JNI and what I can do with it. Bindings to win32, gdi32 are a cool little thing I am toying with. I guess bringing out the idea that I’d like dynamic windows is a bit out of scope.