HGamer3D-Ogre-Binding-0.1.9: Windows Game Engine for the Haskell Programmer - Ogre Bindings

Safe HaskellNone

HGamer3D.Bindings.Ogre.ClassViewport

Synopsis

Documentation

newSource

Arguments

:: HG3DClass

camera

-> HG3DClass

target - Pointer to the render target to be the destination for the rendering.

-> Float

left

-> Float

top

-> Float

width

-> Float

height - Dimensions of the viewport, expressed as a value between 0 and 1. This allows the dimensions to apply irrespective of changes in the target's size: e.g. to fill the whole area, values of 0,0,1,1 are appropriate.

-> Int

ZOrder - Relative Z-order on the target. Lower = further to the front.

-> IO HG3DClass 

The usual constructor.

deleteSource

Arguments

:: HG3DClass

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

-> IO () 

Instructs the viewport to updates its contents.

Default destructor.

updateSource

Arguments

:: HG3DClass

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

-> IO () 

Instructs the viewport to clear itself, without performing an update. You would not normally call this method when updating the viewport, since the viewport usually clears itself when updating anyway (Viewport::setClearEveryFrame

clearSource

Arguments

:: HG3DClass

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

-> Int

buffers - Bitmask identifying which buffer elements to clear

-> Colour

colour - The colour value to clear to, if FBT_COLOUR is included

-> Float

depth - The depth value to clear to, if FBT_DEPTH is included

-> Int

stencil - The stencil value to clear to, if FBT_STENCIL is included

-> IO () 

Retrieves a pointer to the render target for this viewport.

getTargetSource

Arguments

:: HG3DClass

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

-> IO HG3DClass 

getCameraSource

Arguments

:: HG3DClass

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

-> IO HG3DClass 

Retrieves a pointer to the camera for this viewport.

setCameraSource

Arguments

:: HG3DClass

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

-> HG3DClass

cam

-> IO () 

Gets the Z-Order of this viewport.

Sets the camera to use for rendering to this viewport.

getZOrderSource

Arguments

:: HG3DClass

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

-> IO Int 

getLeftSource

Arguments

:: HG3DClass

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

-> IO Float 

Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.

getTopSource

Arguments

:: HG3DClass

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

-> IO Float 

Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.

getWidthSource

Arguments

:: HG3DClass

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

-> IO Float 

Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.

getHeightSource

Arguments

:: HG3DClass

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

-> IO Float 

Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0.

getActualLeftSource

Arguments

:: HG3DClass

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

-> IO Int 

Gets one of the actual dimensions of the viewport, a value in pixels.

getActualTopSource

Arguments

:: HG3DClass

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

-> IO Int 

Gets one of the actual dimensions of the viewport, a value in pixels.

getActualWidthSource

Arguments

:: HG3DClass

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

-> IO Int 

Gets one of the actual dimensions of the viewport, a value in pixels.

getActualHeightSource

Arguments

:: HG3DClass

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

-> IO Int 

Gets one of the actual dimensions of the viewport, a value in pixels.

setDimensionsSource

Arguments

:: HG3DClass

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

-> Float

left

-> Float

top

-> Float

width

-> Float

height - Dimensions relative to the size of the target, represented as real values between 0 and 1. i.e. the full target area is 0, 0, 1, 1.

-> IO () 

Set the orientation mode of the viewport.

Sets the dimensions (after creation).

setOrientationModeSource

Arguments

:: HG3DClass

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

-> EnumOrientationMode

orientationMode

-> Bool

setDefault

-> IO () 

Get the orientation mode of the viewport.

getOrientationModeSource

Arguments

:: HG3DClass

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

-> IO EnumOrientationMode 

setBackgroundColourSource

Arguments

:: HG3DClass

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

-> Colour

colour

-> IO () 

Gets the background colour.

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

getBackgroundColourSource

Arguments

:: HG3DClass

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

-> IO Colour 

setDepthClearSource

Arguments

:: HG3DClass

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

-> Float

depth

-> IO () 

Gets the default depth buffer value to which the viewport is cleared.

Sets the initial depth buffer value of the viewport (before rendering). Default is 1

getDepthClearSource

Arguments

:: HG3DClass

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

-> IO Float 

setClearEveryFrameSource

Arguments

:: HG3DClass

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

-> Bool

clear - Whether or not to clear any buffers

-> Int

buffers - One or more values from FrameBufferType denoting which buffers to clear, if clear is set to true. Note you should not clear the stencil buffer here unless you know what you're doing.

-> IO () 

Determines if the viewport is cleared before every frame.

Determines whether to clear the viewport before rendering. You can use this method to set which buffers are cleared (if any) before rendering every frame.

getClearEveryFrameSource

Arguments

:: HG3DClass

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

-> IO Bool 

getClearBuffersSource

Arguments

:: HG3DClass

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

-> IO Int 

Gets which buffers are to be cleared each frame.

setAutoUpdatedSource

Arguments

:: HG3DClass

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

-> Bool

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

-> IO () 

Gets whether this viewport is automatically updated if OgreRenderTarget::update

Sets whether this viewport should be automatically updated if Ogre's rendering loop or RenderTarget::update is being used. By default, if you use OgreRoot::startRenderingRenderTarget::update

isAutoUpdatedSource

Arguments

:: HG3DClass

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

-> IO Bool 

setMaterialSchemeSource

Arguments

:: HG3DClass

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

-> String

schemeName

-> IO () 

Get the material scheme which the viewport should use.

Set the material scheme which the viewport should use. This allows you to tell the system to use a particular material scheme when rendering this viewport, which can involve using different techniques to render your materials. Technique::setSchemeName

getMaterialSchemeSource

Arguments

:: HG3DClass

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

-> IO String 

getActualDimensionsSource

Arguments

:: HG3DClass

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

-> IO (Int, Int, Int, Int)

left

Access to actual dimensions (based on target size).

setOverlaysEnabledSource

Arguments

:: HG3DClass

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

-> Bool

enabled - If true, any overlays are displayed, if false they are not.

-> IO () 

Returns whether or not Overlay objects (created in the SceneManager

Tells this viewport whether it should display Overlay objects. Overlay objects are layers which appear on top of the scene. They are created via SceneManager::createOverlay and every viewport displays these by default. However, you probably don't want this if you're using multiple viewports, because one of them is probably a picture-in-picture which is not supposed to have overlays of it's own. In this case you can turn off overlays on this viewport by calling this method.

getOverlaysEnabledSource

Arguments

:: HG3DClass

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

-> IO Bool 

setSkiesEnabledSource

Arguments

:: HG3DClass

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

-> Bool

enabled - If true, any skies are displayed, if false they are not.

-> IO () 

Returns whether or not skies (created in the SceneManager

Tells this viewport whether it should display skies. Skies are layers which appear on background of the scene. They are created via SceneManager::setSkyBoxSceneManager::setSkyPlaneSceneManager::setSkyDome

getSkiesEnabledSource

Arguments

:: HG3DClass

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

-> IO Bool 

setShadowsEnabledSource

Arguments

:: HG3DClass

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

-> Bool

enabled - If true, any shadows are displayed, if false they are not.

-> IO () 

Returns whether or not shadows (defined in the SceneManager

Tells this viewport whether it should display shadows. This setting enables you to disable shadow rendering for a given viewport. The global shadow technique set on SceneManager

getShadowsEnabledSource

Arguments

:: HG3DClass

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

-> IO Bool 

setVisibilityMaskSource

Arguments

:: HG3DClass

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

-> Int

mask

-> IO () 

Gets a per-viewport visibility mask. Viewport::setVisibilityMask

Sets a per-viewport visibility mask. The visibility mask is a way to exclude objects from rendering for a given viewport. For each object in the frustum, a check is made between this mask and the objects visibility flags (MovableObject::setVisibilityFlags

getVisibilityMaskSource

Arguments

:: HG3DClass

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

-> IO Int 

Sets the use of a custom RenderQueueInvocationSequence for rendering this target. RenderQueueInvocationSequence instances are managed through RootRenderTargetRoot

setRenderQueueInvocationSequenceNameSource

Arguments

:: HG3DClass

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

-> String

sequenceName

-> IO () 

Gets the name of the render queue invocation sequence for this target.

getRenderQueueInvocationSequenceNameSource

Arguments

:: HG3DClass

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

-> IO String 

pointOrientedToScreenSource

Arguments

:: HG3DClass

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

-> Vec2

v

-> Int

orientationMode

-> IO Vec2

outv

Convert oriented input point coordinates to screen coordinates.

pointOrientedToScreen2Source

Arguments

:: HG3DClass

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

-> Float

orientedX

-> Float

orientedY

-> Int

orientationMode

-> IO (Float, Float)

screenX

setDefaultOrientationModeSource

Arguments

:: EnumOrientationMode

orientationMode

-> IO () 

Get the initial orientation mode of viewports.

Set the initial orientation mode of viewports.