Search in sources :

Example 1 with AreaI

use of net.osmand.core.jni.AreaI in project OsmAnd-tools by osmandapp.

the class QtCorePanel method reshape.

@Override
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
    mapRenderer.setViewport(new AreaI(0, 0, height, width));
    mapRenderer.setWindowSize(new PointI(width, height));
    if (!mapRenderer.isRenderingInitialized()) {
        if (!mapRenderer.initializeRendering())
            System.err.println("Failed to initialize rendering");
    }
}
Also used : AreaI(net.osmand.core.jni.AreaI) PointI(net.osmand.core.jni.PointI)

Aggregations

AreaI (net.osmand.core.jni.AreaI)1 PointI (net.osmand.core.jni.PointI)1