Beispiel #1
0
 @Override
 protected GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target) {
   if (target == null) {
     throw new IllegalArgumentException("Null target");
   }
   return new EGLOnscreenDrawable(this, EGLWrappedSurface.get(target));
 }
Beispiel #2
0
 @Override
 protected GLDrawableImpl createOffscreenDrawableImpl(NativeSurface target) {
   if (target == null) {
     throw new IllegalArgumentException("Null target");
   }
   AbstractGraphicsConfiguration config = target.getGraphicsConfiguration();
   GLCapabilitiesImmutable caps = (GLCapabilitiesImmutable) config.getChosenCapabilities();
   if (!caps.isPBuffer()) {
     throw new GLException("Non pbuffer not yet implemented");
   }
   // PBuffer GLDrawable Creation
   return new EGLPbufferDrawable(this, EGLWrappedSurface.get(target));
 }