|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.SplitScreenRenderer
public class SplitScreenRenderer
GLEventListener implementation that allows multiple views to be used, by
splitting the screen into equal portions. Instances of the View interface
are used for the contents of each segment of the window.
API Stability: Stable, except for setPasses(Pass[]), which is
Alpha.
Constructor Summary | |
---|---|
SplitScreenRenderer(Visible drawable,
View[] views,
Context options)
Constructs a Renderer to render a Visible to the screen. |
|
SplitScreenRenderer(Visible drawable,
View view,
Context options)
Utility constructor so you don't have to put a single View in an array. |
Method Summary | |
---|---|
void |
display(javax.media.opengl.GLAutoDrawable glDrawable)
Renders a frame to glDrawable. |
void |
displayChanged(javax.media.opengl.GLAutoDrawable gLDrawable,
boolean modeChanged,
boolean deviceChanged)
Required for the GLEventListener interface. |
void |
init(javax.media.opengl.GLAutoDrawable glDrawable)
Initializes the GLDrawable with the parts that are common to each frame. |
void |
reshape(javax.media.opengl.GLAutoDrawable glDrawable,
int x,
int y,
int width,
int height)
Called when the on-screen component changes shape and/or position. |
void |
setInterpolation(float intp)
Sets the current interpolation value for rendering. |
void |
setPasses(Pass[] passes)
Sets the array of Pass objects to use during multi-pass rendering. |
void |
setPostProcessors(FrameProcessor[] post)
Sets the array of FrameProcessors to use for post processing. |
void |
setViews(View[] views)
Sets the array of View objects used for displaying multiple views. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitScreenRenderer(Visible drawable, View view, Context options)
public SplitScreenRenderer(Visible drawable, View[] views, Context options)
drawable
- the Visible to draw.views
- the views to use.options
- the rendering options to use. If this is null, the
default set of options is used.Method Detail |
---|
public void display(javax.media.opengl.GLAutoDrawable glDrawable)
display
in interface javax.media.opengl.GLEventListener
glDrawable
- the GLDrawable to render the frame to.public void displayChanged(javax.media.opengl.GLAutoDrawable gLDrawable, boolean modeChanged, boolean deviceChanged)
displayChanged
in interface javax.media.opengl.GLEventListener
public void init(javax.media.opengl.GLAutoDrawable glDrawable)
init
in interface javax.media.opengl.GLEventListener
glDrawable
- the GLDrawable to render the frame to.public void reshape(javax.media.opengl.GLAutoDrawable glDrawable, int x, int y, int width, int height)
reshape
in interface javax.media.opengl.GLEventListener
glDrawable
- the GLDrawable to render the frame to.x
- the x position of the viewing window.y
- the y position of the viewing window.width
- the width of the viewing area.height
- the height of the viewing area.public void setViews(View[] views)
views
- the array.
java.lang.NullPointerException
- if views is null.public void setPostProcessors(FrameProcessor[] post)
post
- the array of FrameProcessors.public void setPasses(Pass[] passes)
passes
- the array of Pass objects.public void setInterpolation(float intp)
intp
- the interpolation value. This should be a value between zero
and one.
java.lang.IllegalArgumentException
- if intp is less than zero or greater
than one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |