Safe Haskell | Safe-Infered |
---|
- delete :: HG3DClass -> IO ()
- getMesh :: HG3DClass -> IO SharedPtr
- getNumSubEntities :: HG3DClass -> IO Int
- clone :: HG3DClass -> String -> IO HG3DClass
- setMaterialName :: HG3DClass -> String -> String -> IO ()
- setMaterial :: HG3DClass -> SharedPtr -> IO ()
- getMovableType :: HG3DClass -> IO String
- getAnimationState :: HG3DClass -> String -> IO HG3DClass
- getAllAnimationStates :: HG3DClass -> IO HG3DClass
- setDisplaySkeleton :: HG3DClass -> Bool -> IO ()
- getDisplaySkeleton :: HG3DClass -> IO Bool
- getManualLodLevel :: HG3DClass -> Int -> IO HG3DClass
- getNumManualLodLevels :: HG3DClass -> IO Int
- setPolygonModeOverrideable :: HG3DClass -> Bool -> IO ()
- detachObjectFromBone :: HG3DClass -> String -> IO HG3DClass
- detachObjectFromBone2 :: HG3DClass -> HG3DClass -> IO ()
- detachAllObjectsFromBone :: HG3DClass -> IO ()
- getBoundingRadius :: HG3DClass -> IO Float
- hasEdgeList :: HG3DClass -> IO Bool
- hasSkeleton :: HG3DClass -> IO Bool
- isHardwareAnimationEnabled :: HG3DClass -> IO Bool
- getSoftwareAnimationRequests :: HG3DClass -> IO Int
- getSoftwareAnimationNormalsRequests :: HG3DClass -> IO Int
- addSoftwareAnimationRequest :: HG3DClass -> Bool -> IO ()
- removeSoftwareAnimationRequest :: HG3DClass -> Bool -> IO ()
- shareSkeletonInstanceWith :: HG3DClass -> HG3DClass -> IO ()
- hasVertexAnimation :: HG3DClass -> IO Bool
- stopSharingSkeletonInstance :: HG3DClass -> IO ()
- sharesSkeletonInstance :: HG3DClass -> IO Bool
- refreshAvailableAnimationState :: HG3DClass -> IO ()
- chooseVertexDataForBinding :: HG3DClass -> Bool -> IO EnumEntityVertexDataBindChoice
- isInitialised :: HG3DClass -> IO Bool
- backgroundLoadingComplete :: HG3DClass -> HG3DClass -> IO ()
- setSkipAnimationStateUpdate :: HG3DClass -> Bool -> IO ()
- getSkipAnimationStateUpdate :: HG3DClass -> IO Bool
- delete'_ :: HG3DClassPtr -> IO ()
- getMesh'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()
- getNumSubEntities'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()
- clone'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()
- setMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CChar -> IO ()
- setMaterial'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()
- getMovableType'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- getAnimationState'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()
- getAllAnimationStates'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- setDisplaySkeleton'_ :: HG3DClassPtr -> CInt -> IO ()
- getDisplaySkeleton'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getManualLodLevel'_ :: HG3DClassPtr -> CInt -> HG3DClassPtr -> IO ()
- getNumManualLodLevels'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setPolygonModeOverrideable'_ :: HG3DClassPtr -> CInt -> IO ()
- detachObjectFromBone'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()
- detachObjectFromBone2'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- detachAllObjectsFromBone'_ :: HG3DClassPtr -> IO ()
- getBoundingRadius'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- hasEdgeList'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- hasSkeleton'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isHardwareAnimationEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSoftwareAnimationRequests'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSoftwareAnimationNormalsRequests'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- addSoftwareAnimationRequest'_ :: HG3DClassPtr -> CInt -> IO ()
- removeSoftwareAnimationRequest'_ :: HG3DClassPtr -> CInt -> IO ()
- shareSkeletonInstanceWith'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- hasVertexAnimation'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- stopSharingSkeletonInstance'_ :: HG3DClassPtr -> IO ()
- sharesSkeletonInstance'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- refreshAvailableAnimationState'_ :: HG3DClassPtr -> IO ()
- chooseVertexDataForBinding'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()
- isInitialised'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- backgroundLoadingComplete'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- setSkipAnimationStateUpdate'_ :: HG3DClassPtr -> CInt -> IO ()
- getSkipAnimationStateUpdate'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
Documentation
Default destructor.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO SharedPtr |
Gets the MeshEntity
Retrieves the number of SubEntity objects making up this entity.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | newName - Name for the new entity. |
-> IO HG3DClass |
Clones this entity and returns a pointer to the clone. Useful method for duplicating an entity. The new entity must be given a unique name, and is not attached to the scene in any way so must be attached to a SceneNodeSceneManager::createEntity
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> String | groupName |
-> IO () |
Sets the material to use for the whole of this entity. This is a shortcut method to set all the materials for all subentities of this entity. Only use this method is you want to set the same material for all subentities or if you know there is only one. Otherwise call getSubEntity()
Sets the material to use for the whole of this entity. This is a shortcut method to set all the materials for all subentities of this entity. Only use this method is you want to set the same material for all subentities or if you know there is only one. Otherwise call getSubEntity()
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> SharedPtr | material |
-> IO () |
Overridden from MovableObject
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> IO HG3DClass |
For entities based on animated meshes, gets the AnimationStateYou animate an entity by updating the animation state objects. Each of these represents the current state of each animation available to the entity. The AnimationStateMesh
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass | return value - In case the entity is animated, this functions returns the pointer to a |
For entities based on animated meshes, gets the AnimationStateYou animate an entity by updating the animation state objects. Each of these represents the current state of each animation available to the entity. The AnimationStateMesh
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | display |
-> IO () |
Returns whether or not the entity is currently displaying its skeleton.
Tells the Entity
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | index |
-> IO HG3DClass |
Gets a pointer to the entity representing the numbered manual level of detail. The zero-based index never includes the original entity, unlike Mesh::getLodLevel
Returns the number of manual levels of detail that this entity supports. This number never includes the original entity, it is difference with Mesh::getNumLodLevels
setPolygonModeOverrideableSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | PolygonModeOverrideable |
-> IO () |
Detach a MovableObject
Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | obj |
-> IO () |
Detach all MovableObjects previously attached using attachObjectToBone.
Detaches an object by pointer. Use this method to destroy a MovableObject
detachAllObjectsFromBoneSource
MovableObject::getBoundingRadius
Overridden member from ShadowCaster.
Returns whether or not this entity is skeletally animated.
isHardwareAnimationEnabledSource
Returns whether or not hardware animation is enabled. Because fixed-function indexed vertex blending is rarely supported by existing graphics cards, hardware animation can only be done if the vertex programs in the materials used to render an entity support it. Therefore, this method will only return true if all the materials assigned to this entity have vertex programs assigned, and all those vertex programs must support 'includes_morph_animation true' if using morph animation, 'includes_pose_animation true' if using pose animation and 'includes_skeletal_animation true' if using skeletal animation.
getSoftwareAnimationRequestsSource
Returns the number of requests that have been made for software animation If non-zero then software animation will be performed in updateAnimation regardless of the current setting of isHardwareAnimationEnabled or any internal optimise for eliminate software animation. Requests for software animation are made by calling the addSoftwareAnimationRequest()
getSoftwareAnimationNormalsRequestsSource
Returns the number of requests that have been made for software animation of normals If non-zero, and getSoftwareAnimationRequests()getSoftwareAnimationRequests()addSoftwareAnimationRequest()
addSoftwareAnimationRequestSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | normalsAlso |
-> IO () |
Removes a request for software animation Calling this decrements the entity's internal counter of the number of requests for software animation. If the counter is already zero then calling this method throws an exception. The normalsAlso
flag if set to true
will also decrement the internal counter of number of requests for software animation of normals.
Add a request for software animation Tells the entity to perform animation calculations for skeletal/vertex animations in software, regardless of the current setting of isHardwareAnimationEnabled()removeSoftwareAnimationRequest()
removeSoftwareAnimationRequestSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | normalsAlso |
-> IO () |
Shares the SkeletonInstance with the supplied entity. Note that in order for this to work, both entities must have the same Skeleton
shareSkeletonInstanceWithSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | entity |
-> IO () |
Returns whether or not this entity is either morph or pose animated.
stopSharingSkeletonInstanceSource
Returns whether this entity shares it's SkeltonInstance with other entity instances.
Stops sharing the SkeletonInstance with other entities.
refreshAvailableAnimationStateSource
Choose which vertex data to bind to the renderer.
Updates the internal animation state set to include the latest available animations from the attached skeleton. Use this method if you manually add animations to a skeleton, or have linked the skeleton to another for animation purposes since creating this entity. If you have called getAnimationState prior to calling this method, the pointers will still remain valid.
chooseVertexDataForBindingSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | hasVertexAnim |
-> IO EnumEntityVertexDataBindChoice |
Has this EntityIf this returns false, it means this EntityMeshSkeletonEntity
backgroundLoadingCompleteSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | res |
-> IO () |
EntityAnimationStateAnimationState
Resource::ListenerEntityMesh
setSkipAnimationStateUpdateSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | skip |
-> IO () |
EntityAnimationStateAnimationState
delete'_ :: HG3DClassPtr -> IO ()Source
getMesh'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()Source
getNumSubEntities'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()Source
clone'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()Source
setMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CChar -> IO ()Source
setMaterial'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()Source
getMovableType'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source
getAnimationState'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()Source
setDisplaySkeleton'_ :: HG3DClassPtr -> CInt -> IO ()Source
getDisplaySkeleton'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getManualLodLevel'_ :: HG3DClassPtr -> CInt -> HG3DClassPtr -> IO ()Source
getNumManualLodLevels'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
detachObjectFromBone'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> IO ()Source
getBoundingRadius'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
hasEdgeList'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
hasSkeleton'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
hasVertexAnimation'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
sharesSkeletonInstance'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
chooseVertexDataForBinding'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()Source
isInitialised'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source