org.ogre4j
Interface IViewport

All Superinterfaces:
IAllocatedObject<IRenderSysAllocPolicy>, INativeObject, IRenderSysAllocatedObject
All Known Implementing Classes:
Viewport

public interface IViewport
extends INativeObject, IRenderSysAllocatedObject


Method Summary
 void _clearUpdatedFlag()
           
 long _getNumRenderedBatches()
          Gets the number of rendered batches in the last update.
 long _getNumRenderedFaces()
          Gets the number of rendered faces in the last update.
 IRenderQueueInvocationSequence _getRenderQueueInvocationSequence()
           
 boolean _isUpdated()
           
 void _updateDimensions()
          Notifies the viewport of a possible change in dimensions.
 void getActualDimensions(IntegerPointer left, IntegerPointer top, IntegerPointer width, IntegerPointer height)
          Access to actual dimensions (based on target size).
 int getActualHeight()
          Gets one of the actual dimensions of the viewport, a value in pixels.
 int getActualLeft()
          Gets one of the actual dimensions of the viewport, a value in pixels.
 int getActualTop()
          Gets one of the actual dimensions of the viewport, a value in pixels.
 int getActualWidth()
          Gets one of the actual dimensions of the viewport, a value in pixels.
 IColourValue getBackgroundColour()
          Gets the background colour.
 ICamera getCamera()
          Retrieves a pointer to the camera for this viewport.
 long getClearBuffers()
          Gets which buffers are to be cleared each frame.
 boolean getClearEveryFrame()
          Determines if the viewport is cleared before every frame.
 float getHeight()
          Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
 float getLeft()
          Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
 java.lang.String getMaterialScheme()
          Get the material scheme which the viewport should use.
 boolean getOverlaysEnabled()
          Returns whether or not objects (created in the ) are displayed in this viewport.
 java.lang.String getRenderQueueInvocationSequenceName()
          Gets the name of the render queue invocation sequence for this target.
 boolean getShadowsEnabled()
          Returns whether or not shadows (defined in the ) are displayed in this viewport.
 boolean getSkiesEnabled()
          Returns whether or not skies (created in the ) are displayed in this viewport.
 IRenderTarget getTarget()
          Retrieves a pointer to the render target for this viewport.
 float getTop()
          Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
 long getVisibilityMask()
          Gets a per-viewport visibility mask.
 float getWidth()
          Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.
 int getZOrder()
          Gets the Z-Order of this viewport.
 void setBackgroundColour(IColourValue colour)
          Sets the initial background colour of the viewport (before rendering).
 void setCamera(ICamera cam)
          Sets the camera to use for rendering to this viewport.
 void setClearEveryFrame(boolean clear, long buffers)
          Determines whether to clear the viewport before rendering.
 void setDimensions(float left, float top, float width, float height)
          Sets the dimensions (after creation).
 void setMaterialScheme(java.lang.String schemeName)
          Set the material scheme which the viewport should use.
 void setOverlaysEnabled(boolean enabled)
          Tells this viewport whether it should display objects.
 void setRenderQueueInvocationSequenceName(java.lang.String sequenceName)
          Sets the use of a custom for rendering this target.
 void setShadowsEnabled(boolean enabled)
          Tells this viewport whether it should display shadows.
 void setSkiesEnabled(boolean enabled)
          Tells this viewport whether it should display skies.
 void setVisibilityMask(long mask)
          Sets a per-viewport visibility mask.
 void update()
          Instructs the viewport to updates its contents.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

_updateDimensions

void _updateDimensions()
Notifies the viewport of a possible change in dimensions.


update

void update()
Instructs the viewport to updates its contents.


getTarget

IRenderTarget getTarget()
Retrieves a pointer to the render target for this viewport.


getCamera

ICamera getCamera()
Retrieves a pointer to the camera for this viewport.


setCamera

void setCamera(ICamera cam)
Sets the camera to use for rendering to this viewport.


getZOrder

int getZOrder()
Gets the Z-Order of this viewport.


getLeft

float getLeft()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.


getTop

float getTop()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.


getWidth

float getWidth()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.


getHeight

float getHeight()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.


getActualLeft

int getActualLeft()
Gets one of the actual dimensions of the viewport, a value in pixels.


getActualTop

int getActualTop()
Gets one of the actual dimensions of the viewport, a value in pixels.


getActualWidth

int getActualWidth()
Gets one of the actual dimensions of the viewport, a value in pixels.


getActualHeight

int getActualHeight()
Gets one of the actual dimensions of the viewport, a value in pixels.


setDimensions

void setDimensions(float left,
                   float top,
                   float width,
                   float height)
Sets the dimensions (after creation).


setBackgroundColour

void setBackgroundColour(IColourValue colour)
Sets the initial background colour of the viewport (before rendering).


getBackgroundColour

IColourValue getBackgroundColour()
Gets the background colour.


setClearEveryFrame

void setClearEveryFrame(boolean clear,
                        long buffers)
Determines whether to clear the viewport before rendering.


getClearEveryFrame

boolean getClearEveryFrame()
Determines if the viewport is cleared before every frame.


getClearBuffers

long getClearBuffers()
Gets which buffers are to be cleared each frame.


setMaterialScheme

void setMaterialScheme(java.lang.String schemeName)
Set the material scheme which the viewport should use.


getMaterialScheme

java.lang.String getMaterialScheme()
Get the material scheme which the viewport should use.


getActualDimensions

void getActualDimensions(IntegerPointer left,
                         IntegerPointer top,
                         IntegerPointer width,
                         IntegerPointer height)
Access to actual dimensions (based on target size).


_isUpdated

boolean _isUpdated()

_clearUpdatedFlag

void _clearUpdatedFlag()

_getNumRenderedFaces

long _getNumRenderedFaces()
Gets the number of rendered faces in the last update.


_getNumRenderedBatches

long _getNumRenderedBatches()
Gets the number of rendered batches in the last update.


setOverlaysEnabled

void setOverlaysEnabled(boolean enabled)
Tells this viewport whether it should display objects.


getOverlaysEnabled

boolean getOverlaysEnabled()
Returns whether or not objects (created in the ) are displayed in this viewport.


setSkiesEnabled

void setSkiesEnabled(boolean enabled)
Tells this viewport whether it should display skies.


getSkiesEnabled

boolean getSkiesEnabled()
Returns whether or not skies (created in the ) are displayed in this viewport.


setShadowsEnabled

void setShadowsEnabled(boolean enabled)
Tells this viewport whether it should display shadows.


getShadowsEnabled

boolean getShadowsEnabled()
Returns whether or not shadows (defined in the ) are displayed in this viewport.


setVisibilityMask

void setVisibilityMask(long mask)
Sets a per-viewport visibility mask.


getVisibilityMask

long getVisibilityMask()
Gets a per-viewport visibility mask.


setRenderQueueInvocationSequenceName

void setRenderQueueInvocationSequenceName(java.lang.String sequenceName)
Sets the use of a custom for rendering this target.


getRenderQueueInvocationSequenceName

java.lang.String getRenderQueueInvocationSequenceName()
Gets the name of the render queue invocation sequence for this target.


_getRenderQueueInvocationSequence

IRenderQueueInvocationSequence _getRenderQueueInvocationSequence()


Copyright © 2007 netAllied GmbH. All Rights Reserved.