|
|
|
@ -75,7 +75,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
caps.setSampleBuffers(true); |
|
|
|
|
caps.setNumSamples(samples); |
|
|
|
|
|
|
|
|
|
offscreenDrawable = GLDrawableFactory.getFactory(GLProfile.getMaxFixedFunc(true)).createOffscreenAutoDrawable(null, caps, null, width, height, null); |
|
|
|
|
offscreenDrawable = GLDrawableFactory.getFactory(GLProfile.getMaxFixedFunc(true)).createOffscreenAutoDrawable(null, caps, null, width, height); |
|
|
|
|
|
|
|
|
|
offscreenDrawable.display(); |
|
|
|
|
|
|
|
|
@ -120,6 +120,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
super.internalDestroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void run(){ |
|
|
|
|
loadNatives(); |
|
|
|
|
logger.log(Level.FINE, "Using JOGL {0}", NewtVersion.getInstance().getImplementationVersion()); |
|
|
|
@ -130,6 +131,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
deinitInThread(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void destroy(boolean waitFor){ |
|
|
|
|
needClose.set(true); |
|
|
|
|
if (waitFor) { |
|
|
|
@ -137,6 +139,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void create(boolean waitFor){ |
|
|
|
|
if (created.get()){ |
|
|
|
|
logger.warning("create() called when pbuffer is already created!"); |
|
|
|
@ -149,12 +152,15 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void restart() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setAutoFlushFrames(boolean enabled){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Type getType() { |
|
|
|
|
return Type.OffscreenSurface; |
|
|
|
|
} |
|
|
|
@ -174,10 +180,12 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public TouchInput getTouchInput() { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setTitle(String title) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|