Login  Register

Re: Initialization steps...

Posted by ThomasR on Feb 09, 2018; 7:22pm
URL: https://forum.jogamp.org/Initialization-steps-tp4038597p4038610.html

Do you mean something like this:

canvas = new JoglAwt/Swing/NewtCanvas()

call safeStart (see below)

safeStart = {
   canvas.invoke(true, GLRunnable)  // what is the GLRunnable in this case
   canvas.init()
}

frame = JFrame()
frame.setContentPane(canvas)

frame.setVisible(true)  //once this is done, then invoke would return? safeStart would still have to be called on separate thread though?

Tom