Code example for PriorityQueue

Methods: addAll

0
	 * returns a queue of all renderable objects, sorted by 
	 * the order they need to be rendered 
	 * @return 
	 */ 
	public static PriorityQueue<Renderable> getRenderQueue(){
		PriorityQueue<Renderable> RenderQueue = new PriorityQueue<Renderable>(11,new SortRenderable());
		RenderQueue.addAll(getRenderables());
		return RenderQueue;
	} 
 
}