Safe Haskell | None |
---|
- delete :: HG3DClass -> IO ()
- attachObject :: HG3DClass -> HG3DClass -> IO ()
- numAttachedObjects :: HG3DClass -> IO Int
- getAttachedObject :: HG3DClass -> Int -> IO HG3DClass
- getAttachedObject2 :: HG3DClass -> String -> IO HG3DClass
- detachObject :: HG3DClass -> Int -> IO HG3DClass
- detachObject2 :: HG3DClass -> HG3DClass -> IO ()
- detachObject3 :: HG3DClass -> String -> IO HG3DClass
- detachAllObjects :: HG3DClass -> IO ()
- isInSceneGraph :: HG3DClass -> IO Bool
- getCreator :: HG3DClass -> IO HG3DClass
- removeAndDestroyChild :: HG3DClass -> String -> IO ()
- removeAndDestroyChild2 :: HG3DClass -> Int -> IO ()
- removeAndDestroyAllChildren :: HG3DClass -> IO ()
- showBoundingBox :: HG3DClass -> Bool -> IO ()
- hideBoundingBox :: HG3DClass -> Bool -> IO ()
- getShowBoundingBox :: HG3DClass -> IO Bool
- createChildSceneNode :: HG3DClass -> Vec3 -> Quaternion -> IO HG3DClass
- createChildSceneNode2 :: HG3DClass -> String -> Vec3 -> Quaternion -> IO HG3DClass
- setFixedYawAxis :: HG3DClass -> Bool -> Vec3 -> IO ()
- getAutoTrackTarget :: HG3DClass -> IO HG3DClass
- getAutoTrackOffset :: HG3DClass -> IO Vec3
- getAutoTrackLocalDirection :: HG3DClass -> IO Vec3
- getParentSceneNode :: HG3DClass -> IO HG3DClass
- setVisible :: HG3DClass -> Bool -> Bool -> IO ()
- flipVisibility :: HG3DClass -> Bool -> IO ()
- setDebugDisplayEnabled :: HG3DClass -> Bool -> Bool -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
- attachObject'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- numAttachedObjects'_ :: HG3DClassPtr -> Ptr CUShort -> IO ()
- getAttachedObject'_ :: HG3DClassPtr -> CUShort -> HG3DClassPtr -> IO ()
- getAttachedObject2'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()
- detachObject'_ :: HG3DClassPtr -> CUShort -> HG3DClassPtr -> IO ()
- detachObject2'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- detachObject3'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()
- detachAllObjects'_ :: HG3DClassPtr -> IO ()
- isInSceneGraph'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getCreator'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- removeAndDestroyChild'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- removeAndDestroyChild2'_ :: HG3DClassPtr -> CUShort -> IO ()
- removeAndDestroyAllChildren'_ :: HG3DClassPtr -> IO ()
- showBoundingBox'_ :: HG3DClassPtr -> CInt -> IO ()
- hideBoundingBox'_ :: HG3DClassPtr -> CInt -> IO ()
- getShowBoundingBox'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- createChildSceneNode'_ :: HG3DClassPtr -> Vec3Ptr -> QuaternionPtr -> HG3DClassPtr -> IO ()
- createChildSceneNode2'_ :: HG3DClassPtr -> Ptr CChar -> Vec3Ptr -> QuaternionPtr -> HG3DClassPtr -> IO ()
- setFixedYawAxis'_ :: HG3DClassPtr -> CInt -> Vec3Ptr -> IO ()
- getAutoTrackTarget'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getAutoTrackOffset'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()
- getAutoTrackLocalDirection'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()
- getParentSceneNode'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- setVisible'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()
- flipVisibility'_ :: HG3DClassPtr -> CInt -> IO ()
- setDebugDisplayEnabled'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()
Documentation
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | obj |
-> IO () |
Reports the number of objects attached to this node.
Adds an instance of a scene object to this node. Scene objects can include EntityCameraLightMovableObject
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | index |
-> IO HG3DClass |
Retrieves a pointer to an attached object. Retrieves by object name, see alternate version to retrieve by index.
Retrieves a pointer to an attached object. Retrieves by index, see alternate version to retrieve by name. The index of an object may change as other objects are added / removed.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> IO HG3DClass |
Detaches the indexed object from this scene node. Detaches by index, see the alternate version to detach by name. Object indexes may change as other objects are added / removed.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | index |
-> IO HG3DClass |
Detaches an object by pointer.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | obj |
-> IO () |
Detaches the named object from this node and returns a pointer to it.
Determines whether this node is in the scene graph, i.e. whether it's ultimate ancestor is the root scene node.
Detaches all objects attached to this node.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass |
This method removes and destroys the named child and all of its children. Unlike removeChild, which removes a single named child from this node but does not destroy it, this method destroys the child and all of it's children. Use this if you wish to recursively destroy a node as well as detaching it from it's parent. Note that any objects attached to the nodes will be detached but will not themselves be destroyed.
Gets the creator of this scene node. This method returns the SceneManager
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> IO () |
This method removes and destroys the child and all of its children. Unlike removeChild, which removes a single named child from this node but does not destroy it, this method destroys the child and all of it's children. Use this if you wish to recursively destroy a node as well as detaching it from it's parent. Note that any objects attached to the nodes will be detached but will not themselves be destroyed.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | index |
-> IO () |
Removes and destroys all children of this node. Use this to destroy all child nodes of this node and remove them from the scene graph. Note that all objects attached to this node will be detached but will not be destroyed.
removeAndDestroyAllChildrenSource
Allows the showing of the node's bounding box. Use this to show or hide the bounding box of the node.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | bShow |
-> IO () |
Allows the overriding of the node's bounding box over the SceneManager's bounding box setting. Use this to override the bounding box setting of the node.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | bHide |
-> IO () |
This allows scene managers to determine if the node's bounding box should be added to the rendering queue. Scene Managers that implement their own _findVisibleObjects will have to check this flag and then use _addBoundingBoxToQueue to add the bounding box wireframe.
Creates an unnamed new SceneNode as a child of this node.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Vec3 | translate - Initial translation offset of child relative to parent |
-> Quaternion | rotate - Initial rotation relative to parent |
-> IO HG3DClass |
Creates a new named SceneNode as a child of this node. This creates a child node with a given name, which allows you to look the node up from the parent which holds this collection of nodes.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> Vec3 | translate - Initial translation offset of child relative to parent |
-> Quaternion | rotate - Initial rotation relative to parent |
-> IO HG3DClass |
Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice. This method allows you to change the yaw behaviour of the node - by default, it yaws around it's own local Y axis when told to yaw with TS_LOCAL, this makes it yaw around a fixed axis. You only really need this when you're using auto tracking (see setAutoTracking, because when you're manually rotating a node you can specify the TransformSpace in which you wish to work anyway.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | useFixed - If true, the axis passed in the second parameter will always be the yaw axis no matter what the node orientation. If false, the node returns to it's default behaviour. |
-> Vec3 | fixedAxis - The axis to use if the first parameter is true. |
-> IO () |
Get the auto tracking target for this node, if any.
Get the auto tracking offset for this node, if the node is auto tracking.
getAutoTrackLocalDirectionSource
Get the auto tracking local direction for this node, if it is auto tracking.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass |
Gets the parent of this SceneNode
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | visible - Whether the objects are to be made visible or invisible |
-> Bool | cascade - If true, this setting cascades into child nodes too. |
-> IO () |
Inverts the visibility of all objects attached to this node. This is a shortcut to calling setVisible(!isVisible()) on the objects attached to this node, and optionally to all objects attached to child nodes.
Makes all objects attached to this node become visible / invisible. This is a shortcut to calling setVisible()
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | cascade - If true, this setting cascades into child nodes too. |
-> IO () |
Tells all objects attached to this node whether to display their debug information or not. This is a shortcut to calling setDebugDisplayEnabled()
delete'_ :: HG3DClassPtr -> IO ()Source
attachObject'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
numAttachedObjects'_ :: HG3DClassPtr -> Ptr CUShort -> IO ()Source
getAttachedObject'_ :: HG3DClassPtr -> CUShort -> HG3DClassPtr -> IO ()Source
getAttachedObject2'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()Source
detachObject'_ :: HG3DClassPtr -> CUShort -> HG3DClassPtr -> IO ()Source
detachObject2'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
detachObject3'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()Source
detachAllObjects'_ :: HG3DClassPtr -> IO ()Source
isInSceneGraph'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getCreator'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
removeAndDestroyChild'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source
removeAndDestroyChild2'_ :: HG3DClassPtr -> CUShort -> IO ()Source
showBoundingBox'_ :: HG3DClassPtr -> CInt -> IO ()Source
hideBoundingBox'_ :: HG3DClassPtr -> CInt -> IO ()Source
getShowBoundingBox'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
createChildSceneNode'_ :: HG3DClassPtr -> Vec3Ptr -> QuaternionPtr -> HG3DClassPtr -> IO ()Source
createChildSceneNode2'_ :: HG3DClassPtr -> Ptr CChar -> Vec3Ptr -> QuaternionPtr -> HG3DClassPtr -> IO ()Source
setFixedYawAxis'_ :: HG3DClassPtr -> CInt -> Vec3Ptr -> IO ()Source
getAutoTrackTarget'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getAutoTrackOffset'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()Source
getAutoTrackLocalDirection'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()Source
getParentSceneNode'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
setVisible'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()Source
flipVisibility'_ :: HG3DClassPtr -> CInt -> IO ()Source
setDebugDisplayEnabled'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()Source