Examples of Texture


Examples of com.thecherno.cherno.engine.graphics.Texture

  public void setTileSize(int tileSize) {
    this.tileSize = tileSize;
  }

  public void load(String fileName) {
    Texture level = Texture.load(fileName);
    tiles = level.getPixels(Texture.FORMAT_RGB);
    width = level.getWidth();
    height = level.getHeight();
  }
View Full Code Here

Examples of com.thecrouchmode.graphics.Texture

    }
    catch(IOException e){
      e.printStackTrace();
    }
   
    Texture texture = null;
    Texture material = null;
    Texture normal = null;
    try{
      glActiveTexture(Texture.glTexture(0));
      texture = new Texture("./textures/texture.png", "png");
      glActiveTexture(Texture.glTexture(1));
      material = new Texture("./textures/material.png", "png");
      glActiveTexture(Texture.glTexture(2));
      normal = new Texture("./textures/shinymat.png", "png");
    }
    catch(IOException e){
      e.printStackTrace();
    }
    //Texture.unbind();
View Full Code Here

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

Examples of com.threed.jpct.Texture

    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

Examples of com.threed.jpct.Texture

    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

Examples of com.threed.jpct.Texture

  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

Examples of com.threed.jpct.Texture

  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

Examples of com.threed.jpct.Texture

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

Examples of de.ailis.jollada.model.Texture

    private void enterTexture(final Attributes attributes)
    {
        final String texture = attributes.getValue("texture");
        final String texcoord = attributes.getValue("texcoord");
        this.colorOrTexture = new ColorAttribute(new Texture(texture,
            texcoord));
        enterElement(ParserMode.TEXTURE);
    }
View Full Code Here

Examples of javax.media.j3d.Texture

    } else if (node instanceof Link) {
      cloneTexture(((Link)node).getSharedGroup(), replacedTextures);
    } else if (node instanceof Shape3D) {
      Appearance appearance = ((Shape3D)node).getAppearance();
      if (appearance != null) {
        Texture texture = appearance.getTexture();
        if (texture != null) {
          Texture replacedTexture = replacedTextures.get(texture);
          if (replacedTexture == null) {
            replacedTexture = (Texture)texture.cloneNodeComponent(false);
            replacedTextures.put(texture, replacedTexture);
          }
          appearance.setTexture(replacedTexture);
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.