|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.render.MinimalRenderer
gestalt.render.BasicRenderer
public class BasicRenderer
basic renderer supplies a basic render setup including the texturemanager, the eventhandler, bitmapproducer, a camera, etc.
| Field Summary |
|---|
| Fields inherited from class gestalt.render.MinimalRenderer |
|---|
WORKAROUND_FORCE_QUIT |
| Constructor Summary | |
|---|---|
BasicRenderer()
|
|
| Method Summary | |
|---|---|
Camera |
camera()
get reference to current camera. |
void |
create(DisplayCapabilities theDisplayCapabilities)
creates all context. |
void |
dispose(Disposable theDisposable)
schedule an object for disposing. |
Fog |
fog()
return a reference to the current fog. |
FrameFinish |
framefinish()
|
FrameSetup |
framesetup()
|
void |
keyPressed(char theKey,
int theKeyCode)
override this method to receive key events. |
void |
keyReleased(char theKey,
int theKeyCode)
override this method to receive key events. |
Light |
light()
return a reference to the current light. |
void |
mousePressed(int x,
int y,
int thePressedMouseButton)
override this method to receive mouse events. |
void |
mouseReleased(int x,
int y,
int thePressedMouseButton)
override this method to receive mouse events. |
Origin |
origin()
handles the origin in the 2D bins. |
void |
quit()
quits the renderer. |
void |
replaceCamera(Camera theCamera)
replace the current camera. |
void |
set3DFinishRef(Bin3DFinish theBin3DFinish)
|
void |
setBinRef(AbstractBin theBin)
|
void |
setCameraRef(Camera theCamera)
set the reference to the camera. |
void |
setFogRef(Fog theFog)
|
void |
setFramefinishRef(FrameFinish theFrameFinish)
|
void |
setFramesetupRef(FrameSetup theFrameSetup)
|
void |
setLightRef(Light theLight)
|
void |
setOriginRef(Origin theOrigin)
|
void |
setupDefaultRenderbins()
creates a default setup of several 2D, 3D and some helper bins. |
java.lang.String |
toString()
|
| Methods inherited from class gestalt.render.MinimalRenderer |
|---|
bin, bin, createDisplayCapabilities, display, displaycapabilities, drawablefactory, event, setDisplayRef, setDrawablefactoryRef, setEventRef, updateDisplayCapabilities |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicRenderer()
| Method Detail |
|---|
public void create(DisplayCapabilities theDisplayCapabilities)
create in class MinimalRenderertheDisplayCapabilities - DisplayCapabilitiespublic void quit()
quit in class MinimalRendererpublic void setupDefaultRenderbins()
BIN_FRAME_SETUP
BIN_2D_BACKGROUND_SETUP
BIN_2D_BACKGROUND
BIN_2D_BACKGROUND_FINISH
BIN_3D_SETUP
BIN_3D
BIN_3D_FINISH
BIN_2D_FOREGROUND_SETUP
BIN_2D_FOREGROUND
BIN_2D_FOREGROUND_FINISH
BIN_ARBITRARY
BIN_FRAME_FINISH
public java.lang.String toString()
toString in class java.lang.Objectpublic void dispose(Disposable theDisposable)
theDisposable - Disposablepublic final void setBinRef(AbstractBin theBin)
theBin - AbstractBinpublic final void setFogRef(Fog theFog)
theFog - Fogpublic final Fog fog()
public final void setLightRef(Light theLight)
theLight - Lightpublic final Light light()
public final void setOriginRef(Origin theOrigin)
theOrigin - Originpublic final Origin origin()
public final FrameSetup framesetup()
public final void setFramesetupRef(FrameSetup theFrameSetup)
theFrameSetup - FrameSetuppublic final FrameFinish framefinish()
public final void setFramefinishRef(FrameFinish theFrameFinish)
theFrameFinish - FrameFinishpublic final void set3DFinishRef(Bin3DFinish theBin3DFinish)
theFrameFinish - FrameFinishpublic final Camera camera()
public final void setCameraRef(Camera theCamera)
theCamera - Camerapublic final void replaceCamera(Camera theCamera)
theCamera - Camera
public void mousePressed(int x,
int y,
int thePressedMouseButton)
mousePressed in interface GestaltMouseListenerx - inty - intthePressedMouseButton - int
public void mouseReleased(int x,
int y,
int thePressedMouseButton)
mouseReleased in interface GestaltMouseListenerx - inty - intthePressedMouseButton - int
public void keyPressed(char theKey,
int theKeyCode)
keyPressed in interface GestaltKeyListenertheKey - chartheKeyCode - int
public void keyReleased(char theKey,
int theKeyCode)
keyReleased in interface GestaltKeyListenertheKey - chartheKeyCode - int
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||