HGamer3D-Ogre-Binding-0.1.8: Library to enable 3D game development for Haskell - Ogre Bindings

Safe HaskellSafe-Infered

HGamer3D.Bindings.Ogre.ClassRenderTarget

Synopsis

Documentation

deleteSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance which is going to be deleted.

-> IO () 

getNameSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO String 

Retrieve target's name.

getMetricsSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO (Int, Int, Int)

width

Retrieve information about the render target.

getWidthSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

getHeightSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

getColourDepthSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

updateSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Bool

swapBuffers - For targets that support double-buffering, if set to true, the target will immediately swap it's buffers after update. Otherwise, the buffers are not swapped, and you have to call swapBuffers yourself sometime later. You might want to do this on some rendersystems which pause for queued rendering commands to complete before accepting swap buffers calls - so you could do other CPU tasks whilst the queued commands complete. Or, you might do this if you want custom control over your windows, such as for externally created windows.

-> IO () 

Swaps the frame buffers to display the next frame. For targets that are double-buffered so that no 'in-progress' versions of the scene are displayed during rendering. Once rendering has completed (to an off-screen version of the window) the buffers are swapped to display the new frame.

Tells the target to update it's contents. If OGRE is not running in an automatic rendering loop (started using Root::startRenderingThis allows OGRE to be used in multi-windowed utilities and for contents to be refreshed only when required, rather than constantly as with the automatic rendering loop.

swapBuffersSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Bool

waitForVSync - If true, the system waits for the next vertical blank period (when the CRT beam turns off as it travels from bottom-right to top-left at the end of the pass) before flipping. If false, flipping occurs no matter what the beam position. Waiting for a vertical blank can be slower (and limits the framerate to the monitor refresh rate) but results in a steadier image with no tearing (a flicker resulting from flipping buffers when the beam is in the progress of drawing the last frame).

-> IO () 

Adds a viewport to the rendering target. A viewport is the rectangle into which rendering output is sent. This method adds a viewport to the render target, rendering from the supplied camera. The rest of the parameters are only required if you wish to add more than one viewport to a single rendering target. Note that size information passed to this method is passed as a parametric, i.e. it is relative rather than absolute. This is to allow viewports to automatically resize along with the target.

addViewportSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> HG3DClass

cam - The camera from which the viewport contents will be rendered (mandatory)

-> Int

ZOrder - The relative order of the viewport with others on the target (allows overlapping viewports i.e. picture-in-picture). Higher ZOrders are on top of lower ones. The actual number is irrelevant, only the relative ZOrder matters (you can leave gaps in the numbering)

-> Float

left - The relative position of the left of the viewport on the target, as a value between 0 and 1.

-> Float

top - The relative position of the top of the viewport on the target, as a value between 0 and 1.

-> Float

width - The relative width of the viewport on the target, as a value between 0 and 1.

-> Float

height - The relative height of the viewport on the target, as a value between 0 and 1.

-> IO HG3DClass 

getNumViewportsSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Returns the number of viewports attached to this target.

getViewportSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Int

index

-> IO HG3DClass 

Retrieves a pointer to the viewport with the given index.

removeViewportSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Int

ZOrder

-> IO () 

Removes all viewports on this target.

Removes a viewport at a given ZOrder.

removeAllViewportsSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO () 

Retieves details of current rendering performance. If the user application wishes to do it's own performance display, or use performance for some other means, this method allows it to retrieve the statistics.

getStatisticsSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO (Float, Float, Float, Float)

lastFPS - Pointer to a float to receive the number of frames per second (FPS) based on the last frame rendered.

getLastFPSSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the number of frames per second (FPS) based on the last frame rendered.

getAverageFPSSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the average frames per second (FPS) since call to Root::startRendering

getBestFPSSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the best frames per second (FPS) since call to Root::startRendering

getWorstFPSSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the worst frames per second (FPS) since call to Root::startRendering

getBestFrameTimeSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the best frame time

getWorstFrameTimeSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Float 

Individual stats access - gets the worst frame time

resetStatisticsSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO () 

Removes all listeners from this instance.

Resets saved frame-rate statistices.

removeAllListenersSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO () 

Used to retrieve or set the active state of the render target.

isActiveSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool 

setActiveSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Bool

state

-> IO () 

Sets whether this target should be automatically updated if OgreRoot::_updateAllRenderTargetsBy default, if you use OgreRoot::startRenderingRoot::_updateAllRenderTargets

Used to set the active state of the render target.

setAutoUpdatedSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Bool

autoupdate - If true, the render target is updated during the automatic render loop or when Root::_updateAllRenderTargets is called. If false, the target is only updated when its update() method is called explicitly.

-> IO () 

Gets whether this target is automatically updated if OgreRoot::_updateAllRenderTargets

isAutoUpdatedSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool 

writeContentsToFileSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

filename

-> IO () 

Writes the current contents of the render target to the (PREFIX)(time-stamp)(SUFFIX) file.

Writes the current contents of the render target to the named file.

writeContentsToTimestampedFileSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

filenamePrefix

-> String

filenameSuffix

-> IO String

return value - the name of the file used.

requiresTextureFlippingSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool 

getTriangleCountSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Gets the number of triangles rendered in the last update()

getBatchCountSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Gets the number of batches rendered in the last update()

isPrimarySource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool 

Indicates whether this target 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.

isHardwareGammaEnabledSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool 

Indicates whether on rendering, linear colour space is converted to sRGB gamma colour space. This is the exact opposite conversion of what is indicated by Texture::isHardwareGammaEnabled, and can only be enabled on creation of the render target. For render windows, it's enabled through the gamma creation misc parameter. For textures, it is enabled through the hwGamma parameter to the create call.

getFSAASource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Indicates whether multisampling is performed on rendering and at what level.

getFSAAHintSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO String 

Gets the FSAA hint (Root::createRenderWindow