net.jinx.video
Interface View

All Known Implementing Classes:
ActorView, Camera, MessageView, View2D, View3D

public interface View

View implementations represent anything that can be displayed in one of SplitScreenRenderer's viewports.
The view(GLDrawable,Context,Rectangle) configures the View.
The getVisible() method provides the Visible object to display in the view.
See the individual method descriptions for more information.

API Stability: Stable.


Method Summary
 void deinit(Context opt)
          Deinitializes this View.
 Visible getVisible()
          Provides the Visible object that should be rendered in the viewport.
 void init(Context opt)
          Initializes this View.
 void view(Context options, java.awt.Rectangle viewport)
          Prepares the view.
 

Method Detail

init

void init(Context opt)
Initializes this View. happen.

Parameters:
opt - the Context object providing data on how rendering should proceed.

view

void view(Context options,
          java.awt.Rectangle viewport)
Prepares the view. Camera related OpenGL commands should be employed here.

Parameters:
options - the Context object providing data on how rendering should proceed.
viewport - the rectangle within the window that this View will be rendered into. NOTE: The origin in OpenGL is the lower left hand corner, not the upper left hand corner.

getVisible

Visible getVisible()
Provides the Visible object that should be rendered in the viewport. If this is null, the default Visible for the SplitScreenRenderer will be used instead.

Returns:
the Visible to draw.

deinit

void deinit(Context opt)
Deinitializes this View.

Parameters:
opt - the Context object providing data on how rendering should proceed.