Newer
Older
EPQ-3D-renderer / src / main / java / uk / org / floop / epq3d / Texture.java
package uk.org.floop.epq3d;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Objects;

public class Texture {
    public BufferedImage img;
    public Color color;
    public String type;

    public Texture(Color _color){
        type = "solidColor";
        color = _color;
    }
    public Texture(BufferedImage _img){
        type = "textured";
        img = _img;
    }
    public boolean isSolid(){
        if (Objects.equals(type, "solidColor")){
            return true;
        }
        else{
            return false;
        }
    }
}