Package com.threed.jpct

Examples of com.threed.jpct.Texture


    font = new GLFont(new Font("Arial", Font.BOLD, 30));
    bigFont = new GLFont(new Font("Arial", Font.BOLD, 60));

    actualGameState = GameState.MAIN_MENU;
   
    TextureManager.getInstance().addTexture("orange", new Texture(32, 32, Color.ORANGE));
    TextureManager.getInstance().addTexture("black", new Texture(32, 32, Color.BLACK));
    TextureManager.getInstance().addTexture("red", new Texture(8, 8, Color.RED));
  }
View Full Code Here


    onExit();
  }

  private void onWindowInit() {
    Config.maxPolysVisible = 100000;
    TextureManager.getInstance().addTexture("yellow", new Texture(32, 32, Color.YELLOW));

    buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_GL_AA_4X);
    buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
    buffer.enableRenderer(IRenderer.RENDERER_OPENGL);
View Full Code Here

    Color bgColor = null;
    if(owner == Ownership.PLAYER)
      bgColor = PLAYER_LABEL_BG_COLOR;
    else if(owner == Ownership.ENEMY)
      bgColor = ENEMY_LABEL_BG_COLOR;
    cargoBackgroundTexture = new Texture(32, 32, bgColor);
    this.owner = owner;
  }
View Full Code Here

  private void loadTextures(BufferedReader in) throws IOException{
    String line;
    String [] tmp;
      while (!(line = in.readLine()).equals("}")) {
      tmp = line.split("=");
      TextureManager.getInstance().addTexture(tmp[0].trim(), new Texture(tmp[1].trim()));
    }   
  }
View Full Code Here

  public Texture pack(boolean useAlpha) {
    if (texture != null)
      return texture;

    BufferedImage image = packImage();
    texture = new Texture(image, useAlpha);
    TextureManager.getInstance().addTexture(textureName, texture);

    return texture;
  }
View Full Code Here

  }
 
  public static void loadResources(){
    initTextures();
      for(String key : textures.keySet()){
      TextureManager.getInstance().addTexture(key, new Texture(textures.get(key)));
    }
  }
View Full Code Here

TOP

Related Classes of com.threed.jpct.Texture

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.