package Support;

import com.jogamp.opengl.GL4;
import com.jogamp.opengl.GLAutoDrawable;


/**
 * Textures should be put into this class.
 * 
 * @author Yu Sangzhuoyang
 * @version 6.21
 */
public final class Resources
{
	//final static fields
	public static final int CANVAS_WIDTH = 625;				//initial width of canvas
	public static final int CANVAS_HEIGHT = 500;			//initial height of canvas
	public static final int CANVAS_LOCATION_X = 180;		//initial location of canvas
	public static final int CANVAS_LOCATION_Y = 80;			//initial location of canvas
	public static final int CONTROLPANEL_WIDTH = 325;		//initial width of control panel
	public static final int CONTROLPANEL_HEIGHT = 500;		//initial height of control panel
	public static final int CONTROLPANEL_LOCATION_X = 825;	//initial location of control panel
	public static final int CONTROLPANEL_LOCATION_Y = 80;	//initial location of control panel
	
	public static final int FPS = 60;						//animator's target frames per second
	public static final String TITLE = "Green Space v6.21";
	
	//static fields
	public static GL4 gl;
	
	public static int displayWidth;
	public static int displayHeight;
	
	public static int FPSCounter;
	
	private Resources() {}
	
	public static void setDisplaySize(int w, int h)
	{
		displayWidth = w;
		displayHeight = h;
	}
	
	//get the OpenGL graphics context
	public static void setGLContext(GLAutoDrawable drawable)
	{
		gl = drawable.getGL().getGL4();
	}
}