hmi.graphics.opengl
Class GLRenderList

java.lang.Object
  extended by hmi.graphics.opengl.GLRenderList
All Implemented Interfaces:
GLRenderObject

public class GLRenderList
extends Object
implements GLRenderObject


Field Summary
private  int arraySize
           
private static int DEFAULTSIZE
           
private static GLRenderObject[] EMPTYLIST
           
private  GLRenderObject[] renderList
           
private  int size
           
 
Constructor Summary
GLRenderList()
           
GLRenderList(int capacity)
           
 
Method Summary
 void add(GLRenderObject ro)
          Adds some GLRenderObject to the list
 void addAll(GLRenderList rlist)
          Appends all elements from the specified list.
private  void ensureArraySize(int requestedSize)
           
 GLRenderObject get(int i)
          Returns list element with index i
 void glInit(GLRenderContext glc)
          Required by GLRenderObject interface.
 void glRender(GLRenderContext glc)
          Required by GLRenderObject interface.
 void prepend(GLRenderObject ro)
          Adds some GLRenderObject to the beginning of the list.
 int size()
          returns the size of the list
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTYLIST

private static final GLRenderObject[] EMPTYLIST

renderList

private GLRenderObject[] renderList

arraySize

private int arraySize

size

private int size

DEFAULTSIZE

private static final int DEFAULTSIZE
See Also:
Constant Field Values
Constructor Detail

GLRenderList

public GLRenderList()

GLRenderList

public GLRenderList(int capacity)
Method Detail

ensureArraySize

private void ensureArraySize(int requestedSize)

size

public int size()
returns the size of the list


add

public void add(GLRenderObject ro)
Adds some GLRenderObject to the list


addAll

public void addAll(GLRenderList rlist)
Appends all elements from the specified list. This list is allowed to have size 0, or can even be null.


prepend

public void prepend(GLRenderObject ro)
Adds some GLRenderObject to the beginning of the list. That is, this GLRenderObject will be rendered before other objects that are already on the list.


get

public GLRenderObject get(int i)
Returns list element with index i


glInit

public void glInit(GLRenderContext glc)
Required by GLRenderObject interface.

Specified by:
glInit in interface GLRenderObject

glRender

public void glRender(GLRenderContext glc)
Required by GLRenderObject interface.

Specified by:
glRender in interface GLRenderObject

toString

public String toString()
Overrides:
toString in class Object