Re: How to Draw a Smooth Curve through a Set of 2D Points
Posted by
Xerxes Rånby on
Feb 27, 2017; 5:05pm
URL: https://forum.jogamp.org/How-to-Draw-a-Smooth-Curve-through-a-Set-of-2D-Points-tp4037677p4037682.html
mahesh wrote
Thanks Xerxes.
but now I cant find jogamp.opengl.io.StreamUtil
StreamUtil was removed from JOGL before the first 2.x release in 2011 and got replaced by the more generic IOUtil found in Gluegen.
Thus if you have code containing
byte[] data = StreamUtil.readAll2Array(stream);
Then you can replace this with:
import com.jogamp.common.util.IOUtil;
byte[] data = IOUtil.copyStream2ByteArray(stream);
mahesh wrote
There may be many more to come. Where can I get demos updated to jogl 2.x?
The best demo example are the junit tests found inside the jogl/src/test path of the jogl git where we store all reference code how each api in JogAmp JOGL is to be used and tested.
Each JogAmp release is only tested against the junit tests.
The jogl-demos git contain end user submitted example code, however there is no guarantee that all examples still work, however we of course want people to be able to use the examples in jogl-demos thus we welcome contributors to clean up the jogl-demos git to work with the latest JogAmp jogl release.