|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRenderTarget
| Nested Class Summary | |
|---|---|
static interface |
IRenderTarget.IFrameStats
|
static interface |
IRenderTarget.IImpl
|
static interface |
IRenderTarget.IRenderTargetListenerList
|
static interface |
IRenderTarget.IViewportList
|
| Method Summary | |
|---|---|
IRenderTarget.IImpl |
_getImpl()
Get rendersystem specific interface for this . |
void |
_notifyCameraRemoved(ICamera cam)
Utility method to notify a render target that a camera has been removed, incase it was referring to it as a viewer. |
void |
addListener(IRenderTargetListener listener)
Add a listener to this which will be called back before & after rendering. |
IViewport |
addViewport(ICamera cam,
int ZOrder,
float left,
float top,
float width,
float height)
Adds a viewport to the rendering target. |
void |
copyContentsToMemory(IPixelBox dst,
RenderTarget.FrameBuffer buffer)
Copies the current contents of the render target to a pixelbox. |
float |
getAverageFPS()
Individual stats access - gets the average frames per second (FPS) since call to . |
int |
getBatchCount()
Gets the number of batches rendered in the last call. |
float |
getBestFPS()
Individual stats access - gets the best frames per second (FPS) since call to . |
float |
getBestFrameTime()
Individual stats access - gets the best frame time |
long |
getColourDepth()
|
void |
getCustomAttribute(java.lang.String name,
VoidPointer pData)
Gets a custom (maybe platform-specific) attribute. |
long |
getFSAA()
Indicates whether multisampling is performed on rendering and at what level. |
long |
getHeight()
|
float |
getLastFPS()
Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered. |
void |
getMetrics(LongPointer width,
LongPointer height,
LongPointer colourDepth)
|
java.lang.String |
getName()
|
int |
getNumViewports()
Returns the number of viewports attached to this target. |
short |
getPriority()
Gets the priority of a render target. |
IRenderTarget.IFrameStats |
getStatistics()
|
void |
getStatistics(FloatPointer lastFPS,
FloatPointer avgFPS,
FloatPointer bestFPS,
FloatPointer worstFPS)
Retieves details of current rendering performance. |
int |
getTriangleCount()
Gets the number of triangles rendered in the last call. |
IViewport |
getViewport(int index)
Retrieves a pointer to the viewport with the given index. |
long |
getWidth()
|
float |
getWorstFPS()
Individual stats access - gets the worst frames per second (FPS) since call to . |
float |
getWorstFrameTime()
Individual stats access - gets the worst frame time |
boolean |
isActive()
Used to retrieve or set the active state of the render target. |
boolean |
isAutoUpdated()
Gets whether this target is automatically updated if Ogre's rendering loop or is being used. |
boolean |
isHardwareGammaEnabled()
Indicates whether on rendering, linear colour space is converted to sRGB gamma colour space. |
boolean |
isPrimary()
Indicates whether this target is the primary window. |
void |
removeAllListeners()
Removes all listeners from this instance. |
void |
removeAllViewports()
Removes all viewports on this target. |
void |
removeListener(IRenderTargetListener listener)
Removes a previously registered using addListener. |
void |
removeViewport(int ZOrder)
Removes a viewport at a given ZOrder. |
boolean |
requiresTextureFlipping()
|
void |
resetStatistics()
Resets saved frame-rate statistices. |
void |
setActive(boolean state)
Used to set the active state of the render target. |
void |
setAutoUpdated(boolean autoupdate)
Sets whether this target should be automatically updated if Ogre's rendering loop or is being used. |
void |
setPriority(short priority)
Sets the priority of this render target in relation to the others. |
PixelFormat |
suggestPixelFormat()
Suggests a pixel format to use for extracting the data in this target, when calling copyContentsToMemory. |
void |
swapBuffers(boolean waitForVSync)
Swaps the frame buffers to display the next frame. |
void |
update(boolean swapBuffers)
Tells the target to update it's contents. |
void |
writeContentsToFile(java.lang.String filename)
Writes the current contents of the render target to the named file. |
java.lang.String |
writeContentsToTimestampedFile(java.lang.String filenamePrefix,
java.lang.String filenameSuffix)
Writes the current contents of the render target to the (PREFIX)(time-stamp)(SUFFIX) file. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
java.lang.String getName()
void getMetrics(LongPointer width,
LongPointer height,
LongPointer colourDepth)
long getWidth()
long getHeight()
long getColourDepth()
void update(boolean swapBuffers)
void swapBuffers(boolean waitForVSync)
IViewport addViewport(ICamera cam,
int ZOrder,
float left,
float top,
float width,
float height)
int getNumViewports()
IViewport getViewport(int index)
void removeViewport(int ZOrder)
void removeAllViewports()
void getStatistics(FloatPointer lastFPS,
FloatPointer avgFPS,
FloatPointer bestFPS,
FloatPointer worstFPS)
IRenderTarget.IFrameStats getStatistics()
float getLastFPS()
float getAverageFPS()
float getBestFPS()
float getWorstFPS()
float getBestFrameTime()
float getWorstFrameTime()
void resetStatistics()
void getCustomAttribute(java.lang.String name,
VoidPointer pData)
void addListener(IRenderTargetListener listener)
void removeListener(IRenderTargetListener listener)
void removeAllListeners()
void setPriority(short priority)
short getPriority()
boolean isActive()
void setActive(boolean state)
void setAutoUpdated(boolean autoupdate)
boolean isAutoUpdated()
void copyContentsToMemory(IPixelBox dst,
RenderTarget.FrameBuffer buffer)
PixelFormat suggestPixelFormat()
void writeContentsToFile(java.lang.String filename)
java.lang.String writeContentsToTimestampedFile(java.lang.String filenamePrefix,
java.lang.String filenameSuffix)
boolean requiresTextureFlipping()
int getTriangleCount()
int getBatchCount()
void _notifyCameraRemoved(ICamera cam)
boolean isPrimary()
boolean isHardwareGammaEnabled()
long getFSAA()
IRenderTarget.IImpl _getImpl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||