laFabrique : Multiline String


Inside laFabrique library a multiline string has been created. It is useful, for instance, to create dynamic and generated OpenGL shader.

An example of use :

the result is :

To use it, just download from laFabrique download page.


JOGL GL3 sample


I had some difficulties to find some full sample of JOGL code for the version GL3. As I have managed to produce one, I decided to share it on my blog. This sample is highly inspired from the following link  :

The source is made of in three files : one for java and two for shaders.

I have to admit that it is a big step between GL1/GL2 and GL3/GL4 version. GL3 provides less graphical abstractions and more processing ones with shaders. For sure it is more powerful but the price of it is to write more line of code.

In order to avoid display flickering just add “-Dsun.awt.noerasebackground=true” parameter on the java options.