net.jinx.video
Class VisibleDisplayList

java.lang.Object
  extended by net.jinx.video.DisplayList
      extended by net.jinx.video.VisibleDisplayList
All Implemented Interfaces:
Visible

public class VisibleDisplayList
extends DisplayList

VisibleDisplayList provides the means to use OpenGL display lists to accelerate rendering of Visible objects.

API Stability: Stable.


Constructor Summary
VisibleDisplayList(Visible drawable)
          Constructs a VisibleDisplayList to wrap the given Visible.
 
Method Summary
 void deinit(Context opt)
          Causes this DisplayList to delete it's OpenGL display list.
 Visible getVisible()
          Provides the Visible object that this DisplayList is wrapping.
 void init(Context opt)
          Causes this DisplayList to construct an OpenGL display list.
protected  void subDraw(Context opt)
          This method draws the Visible object that is wrapped by this object.
 
Methods inherited from class net.jinx.video.DisplayList
dispose, draw, isListed, list, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleDisplayList

public VisibleDisplayList(Visible drawable)
Constructs a VisibleDisplayList to wrap the given Visible.

Parameters:
drawable - the Visible to wrap.
Method Detail

init

public void init(Context opt)
Causes this DisplayList to construct an OpenGL display list. This first calls init on the wrapped Visible.

Specified by:
init in interface Visible
Overrides:
init in class DisplayList
Parameters:
opt - describes the rendering options that are being used.

deinit

public void deinit(Context opt)
Causes this DisplayList to delete it's OpenGL display list. This first calls deinit on the wrapped Visible.

Specified by:
deinit in interface Visible
Overrides:
deinit in class DisplayList
Parameters:
opt - describes the rendering options that are being used.

subDraw

protected void subDraw(Context opt)
This method draws the Visible object that is wrapped by this object.

Specified by:
subDraw in class DisplayList
Parameters:
opt - the rendering options object.

getVisible

public Visible getVisible()
Provides the Visible object that this DisplayList is wrapping.

Returns:
the Visible.