/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jme3.gde.materialdefinition.icons;

import com.jme3.gde.materialdefinition.editor.NodePanel;
import javax.swing.ImageIcon;

/**
 *
 * @author Nehon
 */
public class Icons {

    public final static ImageIcon node = new ImageIcon(Icons.class.getResource("node.png"));
    public final static ImageIcon output = new ImageIcon(Icons.class.getResource("output.png"));
    public final static ImageIcon world = new ImageIcon(Icons.class.getResource("earth.png"));
    public final static ImageIcon attrib = new ImageIcon(Icons.class.getResource("attrib.png"));
    public final static ImageIcon mat = new ImageIcon(Icons.class.getResource("mat.png"));
    public final static ImageIcon vert = new ImageIcon(Icons.class.getResource("vert.png"));
    public final static ImageIcon frag = new ImageIcon(Icons.class.getResource("fragment.png"));
    public final static ImageIcon imgGrey = new ImageIcon(Icons.class.getResource("dot.png"));
    public final static ImageIcon imgGreen = new ImageIcon(Icons.class.getResource("dotGreen.png"));
    public final static ImageIcon imgOrange = new ImageIcon(Icons.class.getResource("dotOrange.png"));
    public final static ImageIcon imgRed = new ImageIcon(Icons.class.getResource("dotRed.png"));
    public final static ImageIcon matDef = new ImageIcon(Icons.class.getResource("matdef.png"));
    public final static ImageIcon tech = new ImageIcon(Icons.class.getResource("tech.png"));
    public final static ImageIcon in = new ImageIcon(Icons.class.getResource("in.png"));
    public final static ImageIcon out = new ImageIcon(Icons.class.getResource("out.png"));
    public final static ImageIcon error = new ImageIcon(Icons.class.getResource("error.png"));

    public static ImageIcon getIconForShaderType(NodePanel.NodeType type) {
        if (type == NodePanel.NodeType.Fragment) {
            return frag;
        } else {
            return vert;
        }
    }
}
