Examples of scaleToMatchTexture()


Examples of framework.rendering.SpriteComponent.scaleToMatchTexture()

        Collection<Component> dots = ComponentSystem.getInstance().getComponentsOfType(Dot.class.getName());
        for(Component dot:dots){
          SpriteComponent s = (SpriteComponent) dot.getSiblingByType(SpriteComponent.class.getName());
          if(s != null){
            s.setImageFilename("res/img/dot.png");
            s.scaleToMatchTexture();
          }
        }
      }
    }
  }
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.