|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.CachedRender
public class CachedRender
A set of rendering that is cached onto the graphics card and hopefully is quicker to render. Note that there are some things that can't be done in lists and that all dependent operations must be container. For instance, any colour configuration can not be assumed from outside the cache. Note: The destroy method needs to be used to tidy up. This is pretty important in this case since there are limited number of underlying resources.
Field Summary | |
---|---|
protected static SGL |
GL
The renderer to use for all GL operations |
Constructor Summary | |
---|---|
CachedRender(java.lang.Runnable runnable)
Create a new cached render that will build the specified operations on to a video card resource |
Method Summary | |
---|---|
void |
destroy()
Destroy this cached render |
void |
render()
Render the cached operations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static SGL GL
Constructor Detail |
---|
public CachedRender(java.lang.Runnable runnable)
runnable
- The operations to cacheMethod Detail |
---|
public void render()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |