All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uwsoft.editor.renderer.data.ResolutionEntryVO Maven / Gradle / Ivy

Go to download

overlap2d-runtime-libgdx provides functionality to load, manipulate and render scenes generated by Overlap2D.

The newest version!
package com.uwsoft.editor.renderer.data;

public class ResolutionEntryVO {

    public String name;

    public int width;
    public int height;
    public int base;

    @Override
    public String toString() {
        if (width == 0 && height == 0) {
            return name;
        }
        return width + "x" + height + " (" + name + ")";
    }

    public float getMultiplier(ResolutionEntryVO originalResolution) {
        float mul;
        if(base == 0) {
            mul = (float)originalResolution.width/width;
        } else {
            mul = (float)originalResolution.height/height;
        }
        return mul;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy