Examples of generateAndUseDisplayLists()


Examples of org.mt4j.components.visibleComponents.font.BitmapFontCharacter.generateAndUseDisplayLists()

        String StringChar = new Character(c).toString();
        BitmapFontCharacter character = new BitmapFontCharacter(charImage, pa, StringChar, leftExtend, topOffset, widthDisplacement);
        character.setName(StringChar);
        character.setFillColor(new MTColor(fillColor));
        if (MT4jSettings.getInstance().isOpenGlMode()){
          character.generateAndUseDisplayLists();
        }
        bitMapCharacters.add(character);
        //logger.debug("Char: " + c + " charWidth: " + charWidth +  " leftExtend: " + leftExtend + " widthDisplacement: " + widthDisplacement + " imageHeight: " + charImage.height + " charHeight: " + charHeight +  " topExtent: " + topExtend);
      }else{
        logger.warn("Couldnt create bitmap character : " + c + " -> not found!");
View Full Code Here

Examples of org.mt4j.components.visibleComponents.font.VectorFontCharacter.generateAndUseDisplayLists()

        character.setNoStroke(false)
      }
    }
 
    if (MT4jSettings.getInstance().isOpenGlMode())
      character.generateAndUseDisplayLists();
   
    return character;
  }
   
 
View Full Code Here

Examples of org.mt4j.components.visibleComponents.font.VectorFontCharacter.generateAndUseDisplayLists()

      character.setStrokeColor(new MTColor(strokeColor));
      character.setFillColor(new MTColor(fillColor));
     
      if (MT4jSettings.getInstance().isOpenGlMode())
        character.generateAndUseDisplayLists();
     
      return character;
    }else{
      return null;
    }
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon.generateAndUseDisplayLists()

          new Vertex(0,       app.height/300,0,0,255),
      };
      MTPolygon p = new MTPolygon(vertices, getMTApplication());
      p.setName("upper gradient");
      p.setNoStroke(true);
      p.generateAndUseDisplayLists();
      p.setPickable(false);
      this.getCanvas().addChild(p);
     
      Vertex[] vertices2 = new Vertex[]{
          new Vertex(0,       app.height/1.7f0,   170,170,140,255),
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon.generateAndUseDisplayLists()

          new Vertex(0,      app.height,      00,0,0,255),
          new Vertex(0,       app.height/1.7f0,   170,170,140,255),
      };
      MTPolygon p2 = new MTPolygon(vertices2, getMTApplication());
      p2.setNoStroke(true);
      p2.generateAndUseDisplayLists();
      p2.setPickable(false);
      this.getCanvas().addChild(p2);
    }
    //BACKGROUND
   
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon.generateAndUseDisplayLists()

        p.setNoStroke(true);
        p.setPickable(false);
        p.setStrokeWeight(testShape.getStrokeWeight());
        p.setFillDrawMode(GL.GL_QUADS);
        //Use displaylist by default for gradientshape
        p.generateAndUseDisplayLists();
       
        FillPaint gradStencil = new FillPaint(gl, p);
    return gradStencil;
  }
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon.generateAndUseDisplayLists()

          p.setNoStroke(true);
          p.setPickable(false);
          p.setFillDrawMode(GL.GL_QUADS);
          p.setStrokeWeight(testShape.getStrokeWeight());
          //Use displaylist by default for gradientshape
          p.generateAndUseDisplayLists();
     
          FillPaint gradStencil = new FillPaint(gl, p);
          return gradStencil;
    }
     
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.mesh.MTSphere.generateAndUseDisplayLists()

        //Create the moon
        final MTSphere moonSphere = new MTSphere(pa, "moon", 35, 35, 25, TextureMode.Polar);
         moonSphere.setMaterial(material);
        moonSphere.translate(new Vector3D(earth.getRadius() + moonSphere.getRadius() + 50, 0,0));
        moonSphere.setTexture(new GLTexture(pa, imagesPath + "moonmap1k.jpg", new GLTextureSettings(TEXTURE_TARGET.RECTANGULAR, SHRINKAGE_FILTER.Trilinear, EXPANSION_FILTER.Bilinear, WRAP_MODE.CLAMP_TO_EDGE, WRAP_MODE.CLAMP_TO_EDGE)));
        moonSphere.generateAndUseDisplayLists();
        moonSphere.unregisterAllInputProcessors();
        //Rotate the moon around the earth
        new Animation("moon animation", new MultiPurposeInterpolator(0,360, 12000, 0, 1, -1) , moonSphere).addAnimationListener(new IAnimationListener(){
          public void processAnimationEvent(AnimationEvent ae) {
            moonSphere.rotateZ(earth.getCenterPointLocal(), ae.getCurrentStepDelta(), TransformSpace.RELATIVE_TO_PARENT);
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.mesh.MTTriangleMesh.generateAndUseDisplayLists()

        mesh.getGeometryInfo().setNormals(mesh.getGeometryInfo().getNormals(), mesh.isUseDirectGL(), mesh.isUseVBOs());
      }

      //If the mesh has more than 20 vertices, use a display list for faster rendering
      if (mesh.getVertexCount() > 20)
        mesh.generateAndUseDisplayLists();
      //Set the material to the mesh  (determines the reaction to the lightning)
      if (mesh.getMaterial() == null)
        mesh.setMaterial(material);
      mesh.setDrawNormals(false);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.