Search in sources :

Example 1 with AWTTilePainter

use of jogamp.opengl.awt.AWTTilePainter in project artisynth_core by artisynth.

the class GLJPanel method setupPrint.

@Override
public void setupPrint(final double scaleMatX, final double scaleMatY, final int numSamples, final int tileWidth, final int tileHeight) {
    printActive = true;
    if (DEBUG) {
        System.err.printf(getThreadName() + ": GLJPanel.setupPrint: scale %f / %f, samples %d, tileSz %d x %d%n", scaleMatX, scaleMatY, numSamples, tileWidth, tileHeight);
    }
    final int componentCount = isOpaque() ? 3 : 4;
    final TileRenderer printRenderer = new TileRenderer();
    printAWTTiles = new AWTTilePainter(printRenderer, componentCount, scaleMatX, scaleMatY, numSamples, tileWidth, tileHeight, DEBUG);
    AWTEDTExecutor.singleton.invoke(getTreeLock(), true, /* allowOnNonEDT */
    true, /* wait */
    setupPrintOnEDT);
}
Also used : AWTTilePainter(jogamp.opengl.awt.AWTTilePainter) TileRenderer(com.jogamp.opengl.util.TileRenderer)

Aggregations

TileRenderer (com.jogamp.opengl.util.TileRenderer)1 AWTTilePainter (jogamp.opengl.awt.AWTTilePainter)1