|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.app.state.AbstractAppState
com.jme3.app.state.ScreenshotAppState
public class ScreenshotAppState
Field Summary |
---|
Fields inherited from class com.jme3.app.state.AbstractAppState |
---|
initialized |
Constructor Summary | |
---|---|
ScreenshotAppState()
|
Method Summary | |
---|---|
void |
initialize(AppStateManager stateManager,
Application app)
Called to initialize the AppState. |
void |
initialize(RenderManager rm,
ViewPort vp)
Called in the render thread to initialize the scene processor. |
boolean |
isInitialized()
|
void |
onAction(java.lang.String name,
boolean value,
float tpf)
Called when an input to which this listener is registered to is invoked. |
void |
postFrame(FrameBuffer out)
Called after a frame has been rendered and the queue flushed. |
void |
postQueue(RenderQueue rq)
Called after the scene graph has been queued, but before it is flushed. |
void |
preFrame(float tpf)
Called before a frame |
void |
reshape(ViewPort vp,
int w,
int h)
Called when the resolution of the viewport has been changed. |
Methods inherited from class com.jme3.app.state.AbstractAppState |
---|
cleanup, isEnabled, postRender, render, setEnabled, stateAttached, stateDetached, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jme3.post.SceneProcessor |
---|
cleanup |
Constructor Detail |
---|
public ScreenshotAppState()
Method Detail |
---|
public void initialize(AppStateManager stateManager, Application app)
AppState
initialize
in interface AppState
initialize
in class AbstractAppState
stateManager
- The state managerpublic void onAction(java.lang.String name, boolean value, float tpf)
ActionListener
onAction
in interface ActionListener
name
- The name of the mapping that was invokedvalue
- True if the action is "pressed", false otherwisetpf
- The time per frame value.public void initialize(RenderManager rm, ViewPort vp)
SceneProcessor
initialize
in interface SceneProcessor
rm
- The render manager to which the SP was added tovp
- The viewport to which the SP is assignedpublic boolean isInitialized()
isInitialized
in interface AppState
isInitialized
in interface SceneProcessor
isInitialized
in class AbstractAppState
initialize()
was called on the state,
false otherwise.public void reshape(ViewPort vp, int w, int h)
SceneProcessor
reshape
in interface SceneProcessor
public void preFrame(float tpf)
SceneProcessor
preFrame
in interface SceneProcessor
tpf
- Time per framepublic void postQueue(RenderQueue rq)
SceneProcessor
postQueue
in interface SceneProcessor
rq
- The render queuepublic void postFrame(FrameBuffer out)
SceneProcessor
postFrame
in interface SceneProcessor
out
- The FB to which the scene was rendered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |