Ejemplo n.º 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);
 }
Ejemplo n.º 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;
      }
    }
Ejemplo n.º 3
0
 @Override
 protected SurfaceData createAccelSurface(GraphicsConfiguration gc, int width, int height) {
   return WGLSurfaceData.createData(
       (WGLGraphicsConfig) gc, width, height, gc.getColorModel(), bImg, OGLSurfaceData.PBUFFER);
 }