Beispiel #1
0
 public WGLVSyncOffScreenSurfaceData(
     WComponentPeer peer,
     WGLGraphicsConfig gc,
     int width,
     int height,
     Image image,
     ColorModel cm,
     int type) {
   super(peer, gc, width, height, image, cm, type);
   flipSurface = WGLSurfaceData.createData(peer, image, FLIP_BACKBUFFER);
 }
Beispiel #2
0
    public WGLOffScreenSurfaceManager(BufferedImage bi) {
      super(bi);

      if (!accelerationEnabled) {
        return;
      }

      GraphicsConfiguration gc =
          WGLSurfaceData.getGC(c == null ? null : (WComponentPeer) c.getPeer());
      initAcceleratedSurface(gc, getWidth(), getHeight());
      if (sdAccel != null) {
        // This is the trick: we treat sdAccel as the default
        // software SurfaceData
        sdDefault = sdAccel;
      }
    }
Beispiel #3
0
 @Override
 protected SurfaceData createAccelSurface(GraphicsConfiguration gc, int width, int height) {
   return WGLSurfaceData.createData(
       (WGLGraphicsConfig) gc, width, height, gc.getColorModel(), bImg, OGLSurfaceData.PBUFFER);
 }