model
Class PriorityList

java.lang.Object
  extended by model.PriorityList

public class PriorityList
extends java.lang.Object

Organizes the gl lists used for drawing all the objects in the model. Used to start new gl lists, delete old ones, and call existing ones.


Constructor Summary
PriorityList(javax.media.opengl.GL gl)
           
PriorityList(javax.media.opengl.GL gl, int maxPriority)
           
 
Method Summary
 int getGLListNum(int priority)
          Returns the actual gl list number for the specified gl list
 int getMaxPriority()
          Returns the maximum usable gl list number
 int getMinPriority()
          Returns the minimum usable gl list number
 void plCallList(int priority)
          Call the specified gl list
 boolean plCreateList(int priority)
          Create the specified gl list
 void plDeleteAllLists()
           
 void plDeleteList(int priority)
          Delete the specified gl list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityList

public PriorityList(javax.media.opengl.GL gl)

PriorityList

public PriorityList(javax.media.opengl.GL gl,
                    int maxPriority)
Method Detail

getMaxPriority

public int getMaxPriority()
Returns the maximum usable gl list number

Returns:
maximum gl list number

getMinPriority

public int getMinPriority()
Returns the minimum usable gl list number

Returns:
minimum gl list number

getGLListNum

public int getGLListNum(int priority)
Returns the actual gl list number for the specified gl list

Parameters:
priority -
Returns:
actual gl list number

plCreateList

public boolean plCreateList(int priority)
Create the specified gl list

Parameters:
priority - gl list to create

plCallList

public void plCallList(int priority)
Call the specified gl list

Parameters:
priority - gl list to call

plDeleteList

public void plDeleteList(int priority)
Delete the specified gl list

Parameters:
priority - gl list to delete

plDeleteAllLists

public void plDeleteAllLists()