Package org.osm2world.core.target.jogl

Examples of org.osm2world.core.target.jogl.JOGLTarget


              backgroundTextureManager);
        }
         
        /* render to pBuffer */
         
        JOGLTarget target = (bufferTarget == null)?
            createJOGLTarget(gl, results, config) : bufferTarget;
         
        target.renderPart(camera, projection,
            xStart / (double)(x-1), xEnd / (double)(x-1),
            yStart / (double)(y-1), yEnd / (double)(y-1));
     
        if (target != bufferTarget) {
          target.freeResources();
        }
         
        /* make screenshot and paste into the buffer that will contain
         * pBufferSizeY entire image lines */

 
View Full Code Here


  }

  private static JOGLTarget createJOGLTarget(GL2 gl, Results results,
      Configuration config) {
   
    JOGLTarget target = new JOGLTarget(gl,
        new JOGLRenderingParameters(CCW, false, true),
        GlobalLightingParameters.DEFAULT);
   
    target.setConfiguration(config);
   
    boolean underground = config.getBoolean("renderUnderground", true);
   
    TargetUtil.renderWorldObjects(target, results.getMapData(), underground);
   
    target.finish();
   
    return target;
   
  }
View Full Code Here

  public void renderTo(GL2 gl, Camera camera, Projection projection) {
   
    if (canBeUsed() && camera != null && projection != null) {
         
      if (target == null) {
        target = new JOGLTarget(gl, new JOGLRenderingParameters(
            null, false, true), null);
        target.setConfiguration(config);
      } else if (targetNeedsReset){
        target.reset();
      }
View Full Code Here

TOP

Related Classes of org.osm2world.core.target.jogl.JOGLTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.