|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectunc.cdva.renderingengine.RenderingEngine
public class RenderingEngine
Heart of the rendering pipeline. The RenderingEngine class implements the GLEventListener interface and is responsible for setting up OpenGL and the display list on the screen. All what is done in that class in done in a separate thread. And you can't get the value of the OpengGL matrices outside of the display method
| Constructor Summary | |
|---|---|
RenderingEngine(org.fenggui.Display display,
UIManager uiManager,
GraphicsManager graphicsManager)
Init a rendering engine object with the right values |
|
| Method Summary | |
|---|---|
void |
display(javax.media.opengl.GLAutoDrawable arg0)
|
void |
displayChanged(javax.media.opengl.GLAutoDrawable arg0,
boolean arg1,
boolean arg2)
Do absolutely nothing... |
GraphicsManager |
getGraphicsManager()
|
UIManager |
getUIManager()
|
void |
init(javax.media.opengl.GLAutoDrawable arg0)
|
void |
initExtension(java.lang.String glExtensionName)
Check if an OpenGL extension is available |
void |
initOpenGL()
Initialiaze OpenGL (set the perspective, viewport, enable features, etc...) |
boolean |
isReady()
|
void |
reshape(javax.media.opengl.GLAutoDrawable arg0,
int arg1,
int arg2,
int arg3,
int arg4)
|
void |
setReady(boolean ready)
|
void |
transformToWorldCoordinates(ClickEvent event)
Invoked when the screen coordinates are transformed to world coordinates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RenderingEngine(org.fenggui.Display display,
UIManager uiManager,
GraphicsManager graphicsManager)
display - root of FengGUI, has to be instanciated
outsideuiManager - UI Manager, instanciated beforegraphicsManager - graphics manager| Method Detail |
|---|
public void init(javax.media.opengl.GLAutoDrawable arg0)
init in interface javax.media.opengl.GLEventListenerGLEventListener.init(javax.media.opengl.GLAutoDrawable)public void display(javax.media.opengl.GLAutoDrawable arg0)
display in interface javax.media.opengl.GLEventListenerGLEventListener.display(javax.media.opengl.GLAutoDrawable)
public void reshape(javax.media.opengl.GLAutoDrawable arg0,
int arg1,
int arg2,
int arg3,
int arg4)
reshape in interface javax.media.opengl.GLEventListenerGLEventListener.reshape(javax.media.opengl.GLAutoDrawable, int, int, int, int)
public void displayChanged(javax.media.opengl.GLAutoDrawable arg0,
boolean arg1,
boolean arg2)
displayChanged in interface javax.media.opengl.GLEventListenerGLEventListener.displayChanged(javax.media.opengl.GLAutoDrawable, boolean, boolean)public void initOpenGL()
public void initExtension(java.lang.String glExtensionName)
glExtensionName - name of the extensionpublic UIManager getUIManager()
public boolean isReady()
public void setReady(boolean ready)
ready - the ready to setpublic GraphicsManager getGraphicsManager()
public void transformToWorldCoordinates(ClickEvent event)
ClickEventListener
transformToWorldCoordinates in interface ClickEventListenerClickEventListener.transformToWorldCoordinates(unc.cdva.events.clickevents.ClickEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||