Package engine.model

Examples of engine.model.CTexture


    if(textures.isEmpty())
      return;
    Collection c = textures.values();
    Iterator itr = c.iterator();
    while(itr.hasNext()){
      CTexture tex = (CTexture)itr.next();
      tex.recreate();
    }
  }
View Full Code Here


   * @return a CTexture or CTexture with null Texture if the file doesnt exist
   */
  public static CTexture loadTexture(String name){
    if(name == null || name.isEmpty()) return null;
    if(textures.containsKey(name) == false){
      textures.put(name, new CTexture().create(name));
    }
    return textures.get(name);
  }
View Full Code Here

TOP

Related Classes of engine.model.CTexture

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.