Package games.stendhal.client.sound.system.processors

Examples of games.stendhal.client.sound.system.processors.SoundLayers$Layer


      boolean var7 = false;
      int glError = 0;

      while (true) {
        FancyDial$Layer layer = this.newLayer(resource, properties, "." + glError);

        if (layer == null) {
          if (glError > 0) {
            this.keyboard = new InputHandler(this.name, var7);
View Full Code Here


    GL11.glPushMatrix();
    GL11.glLoadIdentity();
    Iterator i$ = this.layers.iterator();

    while (i$.hasNext()) {
      FancyDial$Layer layer = (FancyDial$Layer)i$.next();
      layer.blendMethod.applyBlending();
      GL11.glPushMatrix();
      TexturePackAPI.bindTexture(layer.textureName);
      float offsetX = layer.offsetX;
      float offsetY = layer.offsetY;
View Full Code Here

        if (blendMethod == null) {
          logger.error("%s: unknown blend method %s", new Object[] {resource, blend});
          return null;
        } else {
          boolean debug = MCPatcherUtils.getBooleanProperty(properties, "debug" + suffix, false);
          return new FancyDial$Layer(this, textureResource, scaleX, scaleY, offsetX, offsetY, angleMultiplier, angleOffset, blendMethod, debug);
        }
      }
    }
  }
View Full Code Here

    int i = -1;

    while (true) {
      String path = "sky/world" + this.worldType + "/sky" + (i < 0 ? "" : String.valueOf(i)) + ".properties";
      ResourceLocation resource = TexturePackAPI.newMCPatcherResourceLocation(path);
      SkyRenderer$Layer layer = SkyRenderer$Layer.create(resource);

      if (layer == null) {
        if (i > 0) {
          return;
        }
View Full Code Here

    Properties properties = TexturePackAPI.getProperties(resource);

    if (properties != null) {
      properties.setProperty("fade", "false");
      properties.setProperty("rotate", "true");
      SkyRenderer$Layer layer = new SkyRenderer$Layer(resource, properties);

      if (layer.valid) {
        SkyRenderer.access$400().fine("using %s (%s) for the %s", new Object[] {resource, SkyRenderer$Layer.access$300(layer), objName});
        this.objects.put(textureName, layer);
      }
View Full Code Here

  void renderAll(Tessellator tessellator) {
    HashSet texturesNeeded = new HashSet();
    Iterator texturesToUnload = this.skies.iterator();

    while (texturesToUnload.hasNext()) {
      SkyRenderer$Layer i$ = (SkyRenderer$Layer)texturesToUnload.next();

      if (i$.prepare()) {
        texturesNeeded.add(SkyRenderer$Layer.access$300(i$));
      }
    }

    HashSet texturesToUnload1 = new HashSet();
    texturesToUnload1.addAll(this.textures);
    texturesToUnload1.removeAll(texturesNeeded);
    Iterator i$1 = texturesToUnload1.iterator();

    while (i$1.hasNext()) {
      ResourceLocation layer = (ResourceLocation)i$1.next();
      TexturePackAPI.unloadTexture(layer);
    }

    i$1 = this.skies.iterator();

    while (i$1.hasNext()) {
      SkyRenderer$Layer layer1 = (SkyRenderer$Layer)i$1.next();

      if (layer1.brightness > 0.0F) {
        layer1.render(tessellator);
        SkyRenderer$Layer.clearBlendingMethod();
      }
    }
  }
View Full Code Here

  void unloadTextures() {
    Iterator i$ = this.skies.iterator();

    while (i$.hasNext()) {
      SkyRenderer$Layer layer = (SkyRenderer$Layer)i$.next();
      TexturePackAPI.unloadTexture(SkyRenderer$Layer.access$300(layer));
    }
  }
View Full Code Here

  }

  public static ResourceLocation setupCelestialObject(ResourceLocation defaultTexture) {
    if (active) {
      SkyRenderer$Layer.clearBlendingMethod();
      SkyRenderer$Layer layer = currentWorld.getCelestialObject(defaultTexture);

      if (layer != null) {
        layer.setBlendingMethod(rainStrength);
        return SkyRenderer$Layer.access$300(layer);
      }
    }

    return defaultTexture;
View Full Code Here

    ScoreDef scoreDef = createScoreDef(stavesCount);
    score.getGapsAndSbsAndCorrs().add(scoreDef);
    Section section = new Section();
    Measure measureFirst = new Measure();
    Staff staffFirst = new Staff();
    Layer layerFirst = new Layer();
    staffFirst.getSbsAndSymbolsAndOrigs().add(layerFirst);
    measureFirst.getAnnotsAndSlursAndTupletSpen().add(staffFirst);
    for (int stavesIter = 1; stavesIter < stavesCount; stavesIter++) {
      Staff staff = new Staff();
      Layer layer = new Layer();
      staff.getSbsAndSymbolsAndOrigs().add(layer);
      measureFirst.getAnnotsAndSlursAndTupletSpen().add(staff);
    }
    section.getUnclearsAndSbsAndApps().add(measureFirst);

    for (int measureIter = 1; measureIter < measureCount; measureIter++) {
      Measure measure = new Measure();
      for (int stavesIter = 0; stavesIter < stavesCount; stavesIter++) {
        Staff staff = new Staff();
        Layer layer = new Layer();
        staff.getSbsAndSymbolsAndOrigs().add(layer);
        measure.getAnnotsAndSlursAndTupletSpen().add(staff);
      }
      section.getUnclearsAndSbsAndApps().add(measure);
    }
View Full Code Here

    tpd.setCategory(StringConstants.CAT_BASIC);
    descriptors.add(tpd);
  }
 
  private void createDefaultLayer() {
    setMeiNode(new Layer());
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.sound.system.processors.SoundLayers$Layer

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.