コード例 #1
0
ファイル: GLPbufferImpl.java プロジェクト: utgarda/jogl
 public GLPbufferImpl(GLDrawableImpl pbufferDrawable, GLContext parentContext) {
   GLCapabilities caps =
       (GLCapabilities)
           pbufferDrawable
               .getNativeWindow()
               .getGraphicsConfiguration()
               .getNativeGraphicsConfiguration()
               .getChosenCapabilities();
   if (caps.isOnscreen()) {
     if (caps.isPBuffer()) {
       throw new IllegalArgumentException(
           "Error: Given drawable is Onscreen and Pbuffer: " + pbufferDrawable);
     }
     throw new IllegalArgumentException("Error: Given drawable is Onscreen: " + pbufferDrawable);
   } else {
     if (!caps.isPBuffer()) {
       throw new IllegalArgumentException(
           "Error: Given drawable is not Pbuffer: " + pbufferDrawable);
     }
   }
   this.pbufferDrawable = pbufferDrawable;
   context = (GLContextImpl) pbufferDrawable.createContext(parentContext);
   context.setSynchronized(true);
 }
コード例 #2
0
ファイル: GLPbufferImpl.java プロジェクト: utgarda/jogl
 public void releaseTexture() {
   // Doesn't make much sense to try to do this on the event dispatch
   // thread given that it has to be called while the context is current
   context.releasePbufferFromTexture();
 }
コード例 #3
0
ファイル: GLPbufferImpl.java プロジェクト: utgarda/jogl
 public void bindTexture() {
   // Doesn't make much sense to try to do this on the event dispatch
   // thread given that it has to be called while the context is current
   context.bindPbufferToTexture();
 }