Examples of loadTexture()


Examples of com.jme3.asset.AssetManager.loadTexture()

    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");

    Spatial skySpatial = SkyFactory.createSky(assetManager, west, east,
        north, south, up, down);

    return skySpatial;
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.loadTexture()

  {
    TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();

    TextureObject object = new ThreadDownloadImageData(par1Str, par2ResourceLocation, par3IImageBuffer);
    // Binds ResourceLocation to this.
    texturemanager.loadTexture(par0ResourceLocation, object);

    return (ThreadDownloadImageData)object;
  }
}
View Full Code Here

Examples of net.minecraft.src.TextureManager.loadTexture()

  }

  public static void addAccessory(String player, Accessory n, String url) {
    TextureManager tm= Minecraft.getMinecraft().getTextureManager();
    Object texture = new ThreadDownloadImageData(url, (ResourceLocation)null, new HDImageBufferDownload());   
    tm.loadTexture(new ResourceLocation("accessories/" + n.getType().toString()), (TextureObject)texture);
   
    Set<Pair<Accessory, String>> acs = sacs.get(player);
    if (acs == null) {
      acs = new HashSet<Pair<Accessory, String>>();
    }
View Full Code Here

Examples of net.minecraft.src.TextureMap.loadTexture()

          TileLoader.access$602(false);
          String mapName = loader.mapName + "_overflow" + TileLoader.access$704(loader);
          TileLoader.access$800().fine("new TextureAtlas(%s)", new Object[] {mapName});
          TextureMap map = new TextureMap(2, mapName);         
          try {
            map.loadTexture(TexturePackAPI.getResourceManager());
          } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
          if (TileLoader.access$600()) {
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

  @Test
  public void transparentTextureLoading() throws Exception {
    final TextureLoader loader = GraphicsEnv.getInstance().getTextureLoader();

    BufferedImage loaded = (BufferedImage) loader.loadTexture( "Transparent", false );

    assertNotSame(loaded.getTransparency(), Transparency.OPAQUE);
  }

  @Test
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

  @Test
  public void opaqueTextureLoading() throws Exception {
    final TextureLoader loader = GraphicsEnv.getInstance().getTextureLoader();

    BufferedImage loaded = (BufferedImage) loader.loadTexture( "Opaque", false );

    assertEquals(loaded.getTransparency(), Transparency.OPAQUE);

    loaded = (BufferedImage) loader.loadTexture( "Opaque_with_alpha", false );
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

    BufferedImage loaded = (BufferedImage) loader.loadTexture( "Opaque", false );

    assertEquals(loaded.getTransparency(), Transparency.OPAQUE);

    loaded = (BufferedImage) loader.loadTexture( "Opaque_with_alpha", false );

    assertNotSame(loaded.getTransparency(), Transparency.OPAQUE);
  }
}
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

  @Test
  public void testLoadNonAcceleratedTexture() throws Exception {
    final TextureLoader loader = GraphicsEnv.getInstance().getTextureLoader();

    loader.loadTexture( "Header", false );

    try {
      loader.mustReload( "Header", true );
      fail();
    } catch ( NoSuchElementException e ){}
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

      fail();
    } catch ( NoSuchElementException e ){}

    assertEquals( loader.getTexture( "Header", false ), null );

    Image oldTexture = loader.loadTexture( "Header", false );

    loader.reloadTextures();

    Image newTexture = loader.getTexture( "Header", false );
View Full Code Here

Examples of org.gbcpainter.loaders.textures.TextureLoader.loadTexture()

  @Test
  public void testLoadAcceleratedTexture() throws Exception {
    final TextureLoader loader = GraphicsEnv.getInstance().getTextureLoader();

    loader.loadTexture( "Header", true);

    loader.mustReload( "Header", false );
    loader.mustReload( "Header", true );

    loader.clear();
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.