Examples of TextureRegion


Examples of mdesl.graphics.TextureRegion

  public BitmapFont(URL fontDef, URL texture) throws IOException {
    this(fontDef, new Texture(texture));
  }
 
  public BitmapFont(URL fontDef, Texture texture) throws IOException {
    this(fontDef.openStream(), new TextureRegion(texture));
  }
View Full Code Here

Examples of org.terasology.rendering.assets.texture.TextureRegion

    @Override
    public Mesh resolve(AssetUri uri, AssetFactory<MeshData, Mesh> factory) {
        String[] parts = uri.getAssetName().toLowerCase().split("\\.", 2);
        if (parts.length == 2 && parts[0].equals(ICON_DISCRIMINATOR)) {
            TextureRegion region = Assets.getTextureRegion(uri.getModuleName() + AssetUri.MODULE_SEPARATOR + parts[1]);
            if (region != null) {
                return IconMeshFactory.generateIconMesh(uri, region);
            }
        }
        return null;
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.