|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.DisplayList
public abstract class DisplayList
DisplayList provides the means to use OpenGL display lists to accelerate
rendering.
API Stability: Stable.
Constructor Summary | |
---|---|
DisplayList()
Constructs a DisplayList. |
Method Summary | |
---|---|
void |
deinit(Context opt)
Causes this DisplayList to delete it's OpenGL display list. |
void |
dispose(Context opt)
Causes the OpenGL list for this object to be deleted, releasing any memory it may occupy. |
void |
draw(Context opt)
Renders this Visible to glDrawable. |
void |
init(Context opt)
Causes this DisplayList to construct an OpenGL display list. |
boolean |
isListed()
Provides the means to determine if this DisplayList has already constructed an OpenGL display list. |
void |
list(Context opt)
Causes an OpenGL display list to be constructed for the calls in subDraw(). |
void |
refresh()
Signals to this DisplayList that is should re-list itself. |
protected abstract void |
subDraw(Context opt)
The OpenGL calls in this method are what get wrapped in the display list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayList()
Method Detail |
---|
public void init(Context opt)
init
in interface Visible
opt
- describes the rendering options that are being used.public void deinit(Context opt)
deinit
in interface Visible
opt
- describes the rendering options that are being used.public void refresh()
public void draw(Context opt)
Visible
draw
in interface Visible
opt
- describes the rendering options that are being used.protected abstract void subDraw(Context opt)
public void list(Context opt)
opt
- the Context object containing the rendering options to use.public void dispose(Context opt)
opt
- the Context object containing the rendering options to use.public boolean isListed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |