Package org.terasology.rendering.assets.texture

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

Related Classes of org.terasology.rendering.assets.texture.TextureRegion

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.