SFML community forums

Bindings - other languages => Java => Topic started by: Groogy on November 03, 2012, 02:31:36 pm

Title: Possible to create an extension
Post by: Groogy on November 03, 2012, 02:31:36 pm
Hi!

I'm just wondering for future of my rendering pipeline I will need to write to multiple framebuffers in one shader and have HDR formats. I'm more or less porting my rendering pipeline from my ruby project to Java and I had created an "extension" where these were supported in Ruby. I'm wondering if there's any simple way to do that in Java? I'm thinking I create a new library called, sfml-extension with these stuff, exactly what would I need to do and would it work pain free together with the Java objects of SFML if I myself created the Java interface?
Title: Re: Possible to create an extension
Post by: pdinklag on November 05, 2012, 06:27:44 am
You might be able to do it using JSFML / JOGL if you got that running, but if you want to port your C / C++ code, you will have to go the same painful way that I go and link dynamic libs for each system. ;)

Does the term "extension" refer to something special? Are you writing an OpenGL extension? Or are you just planning to add additional classes? In the latter case, just create your own package (preferably following the package naming standards (http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html)), and create a build target that puts your package into a JAR file. From that point on, you can distribute and use that package in any other project much like JSFML.
Title: Re: Possible to create an extension
Post by: Groogy on November 05, 2012, 12:07:03 pm
Actually you made me realize something, I should just use JOGL to achieve this instead of just straight of port my Ruby code. Thanks anyway :)