public void drawString(String str,int x,int y,int type,float scale){
		if(str==null){
			return;
		}
		for(int i=0;i<(str.length());i++){	
			Texture t = map.get("A");
			try {
				t = map.get(str.charAt(i)+"");
				t.bind();
			} catch (Exception e) {
				System.err.println("Image load crash on symbol \""+str.charAt(i)+"\"");
				t = map.get("?");
				t.bind();
			}
			int w = t.width;
			int h = t.height;
			
			int dw = w-tw;
			int dh = h-th;
			
			switch(type){
			case LEFT:
				Molybdenum.GLQuad(x+((w-dw)*scale*i), y, w, h, scale);
				break;
			case CENTER:
				int xsize = (int) (w*scale*str.length())/2;
				int ysize = (h-dh);
				Molybdenum.GLQuad(x+((w)*scale*i)-xsize, y-ysize, w, h, scale);
				break;
			case RIGHT:
				int nw = (int) ((str.length()*tw*scale));
				//int dh = (int) (Display.getHeight()-(h*scale));
				Molybdenum.GLQuad(((w-dw)*scale*i)+x-nw, y, w, h, scale);
				break;
			}
		}
	}