Package engine.model

Examples of engine.model.Shader


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


  }
 
  public static Shader loadShader(String vert, String frag){
    if(vert == null || frag == null || vert.isEmpty() || frag.isEmpty()) return null;
    if(shaders.containsKey(vert+frag) == false){
      shaders.put(vert+frag,new Shader(vert, frag));
    }
    return shaders.get(vert+frag);
  }
View Full Code Here

TOP

Related Classes of engine.model.Shader

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.