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