Package ae.thread

Examples of ae.thread.ThreadWorkRecipe


    }
   
    // texture doesn't exist, load it
    textureID = GLTextureRoutines.allocateTextureID();
   
    ThreadWorkRecipe recipe = new ThreadWorkRecipe();
   
    recipe.add(loadImageWork, workerExecutorService);
    if (scaleParams != null) {
      recipe.add(imageReducingWork, workerExecutorService, newWidth, newHeight, scaleParams);
    }
    recipe.add(imageConversionWork, workerExecutorService);
    recipe.add(glTextureUploadWork, glExecutorService, textureID);
    recipe.add(idMapUpdateWork, workerExecutorService, identifier, textureID);
   
    recipe.nextWork(recipe, inputStream);
   
    if (wait) {
      try {
        recipe.loopPollResultingCallParams(glExecutorService);
      }
      catch (InterruptedException e) {
        new Exception(S.sprintf("Failed to load texture '%s'.", identifier), e).printStackTrace();
      }
    }
View Full Code Here


    }
   
    // texture doesn't exist, load it
    textureID = GLTextureRoutines.allocateTextureID();
   
    ThreadWorkRecipe recipe = new ThreadWorkRecipe();
   
    recipe.add(imageConversionWork, workerExecutorService);
    recipe.add(glTextureUploadWork, glExecutorService, textureID);
    recipe.add(idMapUpdateWork, workerExecutorService, identifier, textureID);
   
    recipe.nextWork(bufferedImage);
   
    if (wait) {
      try {
        recipe.loopPollResultingCallParams(glExecutorService);
      }
      catch (InterruptedException e) {
        new Exception(S.sprintf("Failed to load texture '%s'.", identifier), e).printStackTrace();
      }
    }
View Full Code Here

TOP

Related Classes of ae.thread.ThreadWorkRecipe

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.