org.ogre4j
Interface IRenderWindow

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

public interface IRenderWindow
extends INativeObject, IRenderTarget


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderTarget
IRenderTarget.IFrameStats, IRenderTarget.IImpl, IRenderTarget.IRenderTargetListenerList, IRenderTarget.IViewportList
 
Method Summary
 void create(java.lang.String name, long width, long height, boolean fullScreen, INameValuePairList miscParams)
          Creates & displays the new window.
 void destroy()
          Destroys the window.
 void getMetrics(LongPointer width, LongPointer height, LongPointer colourDepth, IntegerPointer left, IntegerPointer top)
          Overloaded version of getMetrics from , including extra details specific to windowing systems.
 boolean isActive()
          Overridden from , flags invisible windows as inactive
 boolean isClosed()
          Indicates whether the window has been closed by the user.
 boolean isDeactivatedOnFocusChange()
          Returns true if the window will automatically de-activate itself when it loses focus.
 boolean isFullScreen()
          Returns true if window is running in fullscreen mode.
 boolean isPrimary()
          Indicates whether the window is the primary window.
 boolean isVisible()
          Indicates whether the window is visible (not minimized or obscured)
 void reposition(int left, int top)
          Reposition the window.
 void resize(long width, long height)
          Alter the size of the window.
 void setDeactivateOnFocusChange(boolean deactivate)
          Indicates whether the window will automatically deactivate itself when it loses focus.
 void setFullscreen(boolean fullScreen, long width, long height)
          Alter fullscreen mode options.
 void setVisible(boolean visible)
          Set the visibility state
 PixelFormat suggestPixelFormat()
          Suggests a pixel format to use for extracting the data in this target, when calling copyContentsToMemory.
 void windowMovedOrResized()
          Notify that the window has been resized
 
Methods inherited from interface org.ogre4j.IRenderTarget
_getImpl, _notifyCameraRemoved, addListener, addViewport, copyContentsToMemory, getAverageFPS, getBatchCount, getBestFPS, getBestFrameTime, getColourDepth, getCustomAttribute, getFSAA, getHeight, getLastFPS, getMetrics, getName, getNumViewports, getPriority, getStatistics, getStatistics, getTriangleCount, getViewport, getWidth, getWorstFPS, getWorstFrameTime, isAutoUpdated, isHardwareGammaEnabled, removeAllListeners, removeAllViewports, removeListener, removeViewport, requiresTextureFlipping, resetStatistics, setActive, setAutoUpdated, setPriority, swapBuffers, update, writeContentsToFile, writeContentsToTimestampedFile
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

create

void create(java.lang.String name,
            long width,
            long height,
            boolean fullScreen,
            INameValuePairList miscParams)
Creates & displays the new window.


setFullscreen

void setFullscreen(boolean fullScreen,
                   long width,
                   long height)
Alter fullscreen mode options.


destroy

void destroy()
Destroys the window.


resize

void resize(long width,
            long height)
Alter the size of the window.


windowMovedOrResized

void windowMovedOrResized()
Notify that the window has been resized


reposition

void reposition(int left,
                int top)
Reposition the window.


isVisible

boolean isVisible()
Indicates whether the window is visible (not minimized or obscured)


setVisible

void setVisible(boolean visible)
Set the visibility state


isActive

boolean isActive()
Overridden from , flags invisible windows as inactive

Specified by:
isActive in interface IRenderTarget

isClosed

boolean isClosed()
Indicates whether the window has been closed by the user.


isPrimary

boolean isPrimary()
Indicates whether the window is the primary window. The primary window is special in that it is destroyed when ogre is shut down, and cannot be destroyed directly. This is the case because it holds the context for vertex, index buffers and textures.

Specified by:
isPrimary in interface IRenderTarget

isFullScreen

boolean isFullScreen()
Returns true if window is running in fullscreen mode.


getMetrics

void getMetrics(LongPointer width,
                LongPointer height,
                LongPointer colourDepth,
                IntegerPointer left,
                IntegerPointer top)
Overloaded version of getMetrics from , including extra details specific to windowing systems.


suggestPixelFormat

PixelFormat suggestPixelFormat()
Description copied from interface: IRenderTarget
Suggests a pixel format to use for extracting the data in this target, when calling copyContentsToMemory.

Specified by:
suggestPixelFormat in interface IRenderTarget

isDeactivatedOnFocusChange

boolean isDeactivatedOnFocusChange()
Returns true if the window will automatically de-activate itself when it loses focus.


setDeactivateOnFocusChange

void setDeactivateOnFocusChange(boolean deactivate)
Indicates whether the window will automatically deactivate itself when it loses focus.



Copyright © 2007 netAllied GmbH. All Rights Reserved.