|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Drawable
the drawable is the core interface in the gestalt library. drawables are collected to be drawn at a specific time. they can be everything from controller, plugins or actual shapes.
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
this method is commonly used to store children of a drawable. |
void |
draw(GLContext theRenderContext)
this method is used to draw the drawable, when the context is ready. |
float[] |
getSortData()
returns the data upon which a sort value is calculated. |
float |
getSortValue()
returns the last sort value. |
boolean |
isActive()
returns whether the drawable is active. |
boolean |
isSortable()
returns true if the 'drawable' should be sorted before drawing. |
void |
setSortValue(float theSortValue)
caches the current sort value. |
| Method Detail |
|---|
void draw(GLContext theRenderContext)
theRenderContext - GLContextvoid add(Drawable theDrawable)
theDrawable - Drawableboolean isActive()
float getSortValue()
void setSortValue(float theSortValue)
theSortValue - floatfloat[] getSortData()
boolean isSortable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||