Safe Haskell | Safe-Infered |
---|
- delete :: HG3DClass -> IO ()
- setMaxChainElements :: HG3DClass -> Int -> IO ()
- getMaxChainElements :: HG3DClass -> IO Int
- setNumberOfChains :: HG3DClass -> Int -> IO ()
- getNumberOfChains :: HG3DClass -> IO Int
- setUseTextureCoords :: HG3DClass -> Bool -> IO ()
- getUseTextureCoords :: HG3DClass -> IO Bool
- setTextureCoordDirection :: HG3DClass -> EnumBillboardChainTexCoordDirection -> IO ()
- getTextureCoordDirection :: HG3DClass -> IO EnumBillboardChainTexCoordDirection
- setOtherTextureCoordRange :: HG3DClass -> Float -> Float -> IO ()
- setUseVertexColours :: HG3DClass -> Bool -> IO ()
- getUseVertexColours :: HG3DClass -> IO Bool
- setDynamic :: HG3DClass -> Bool -> IO ()
- getDynamic :: HG3DClass -> IO Bool
- removeChainElement :: HG3DClass -> Int -> IO ()
- getNumChainElements :: HG3DClass -> Int -> IO Int
- clearChain :: HG3DClass -> Int -> IO ()
- clearAllChains :: HG3DClass -> IO ()
- getMaterialName :: HG3DClass -> IO String
- setMaterialName :: HG3DClass -> String -> String -> IO ()
- getSquaredViewDepth :: HG3DClass -> HG3DClass -> IO Float
- getBoundingRadius :: HG3DClass -> IO Float
- getMaterial :: HG3DClass -> IO SharedPtr
- getMovableType :: HG3DClass -> IO String
- delete'_ :: HG3DClassPtr -> IO ()
- setMaxChainElements'_ :: HG3DClassPtr -> CInt -> IO ()
- getMaxChainElements'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setNumberOfChains'_ :: HG3DClassPtr -> CInt -> IO ()
- getNumberOfChains'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setUseTextureCoords'_ :: HG3DClassPtr -> CInt -> IO ()
- getUseTextureCoords'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setTextureCoordDirection'_ :: HG3DClassPtr -> CInt -> IO ()
- getTextureCoordDirection'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setOtherTextureCoordRange'_ :: HG3DClassPtr -> CFloat -> CFloat -> IO ()
- setUseVertexColours'_ :: HG3DClassPtr -> CInt -> IO ()
- getUseVertexColours'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setDynamic'_ :: HG3DClassPtr -> CInt -> IO ()
- getDynamic'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- removeChainElement'_ :: HG3DClassPtr -> CInt -> IO ()
- getNumChainElements'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()
- clearChain'_ :: HG3DClassPtr -> CInt -> IO ()
- clearAllChains'_ :: HG3DClassPtr -> IO ()
- getMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- setMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CChar -> IO ()
- getSquaredViewDepth'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CFloat -> IO ()
- getBoundingRadius'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- getMaterial'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()
- getMovableType'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
Documentation
destructor
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | maxElements |
-> IO () |
Get the maximum number of chain elements per chain
Set the maximum number of chain elements per chain
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | numChains |
-> IO () |
Get the number of chain segments (this class can render multiple chains at once using the same material).
Set the number of chain segments (this class can render multiple chains at once using the same material).
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | use |
-> IO () |
Gets whether texture coordinate information should be included in the final buffers generated.
Sets whether texture coordinate information should be included in the final buffers generated. You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
setTextureCoordDirectionSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> EnumBillboardChainTexCoordDirection | dir - The direction, default is TCD_U. |
-> IO () |
Gets the direction in which texture coords specified on each element are deemed to run.
Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.
getTextureCoordDirectionSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO EnumBillboardChainTexCoordDirection |
setOtherTextureCoordRangeSource
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | start - Start coordinate, default 0.0 |
-> Float | end - End coordinate, default 1.0 |
-> IO () |
Sets whether vertex colour information should be included in the final buffers generated. You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
Set the range of the texture coordinates generated across the width of the chain elements.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | use |
-> IO () |
Gets whether vertex colour information should be included in the final buffers generated.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | dyn |
-> IO () |
Gets whether or not the buffers created for this object are suitable for dynamic alteration.
Sets whether or not the buffers created for this object are suitable for dynamic alteration.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | chainIndex - The index of the chain |
-> IO () |
Returns the number of chain elements.
Remove an element from the tail
of a chain.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | chainIndex |
-> IO () |
Remove all elements from all chains (but leave the chains themselves intact).
Remove all elements of a given chain (but leave the chain intact).
Get the material name in use.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | name |
-> String | groupName |
-> IO () |
Returns the camera-relative squared depth of this renderable. Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result.
Set the material name to use for rendering.
Retrieves the radius of the origin-centered bounding sphere for this object.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO SharedPtr |
Retrieves a weak reference to the material this renderable object uses. Note that the Renderable
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO String |
Returns the type name of this object.
delete'_ :: HG3DClassPtr -> IO ()Source
setMaxChainElements'_ :: HG3DClassPtr -> CInt -> IO ()Source
getMaxChainElements'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setNumberOfChains'_ :: HG3DClassPtr -> CInt -> IO ()Source
getNumberOfChains'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setUseTextureCoords'_ :: HG3DClassPtr -> CInt -> IO ()Source
getUseTextureCoords'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setTextureCoordDirection'_ :: HG3DClassPtr -> CInt -> IO ()Source
getTextureCoordDirection'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setOtherTextureCoordRange'_ :: HG3DClassPtr -> CFloat -> CFloat -> IO ()Source
setUseVertexColours'_ :: HG3DClassPtr -> CInt -> IO ()Source
getUseVertexColours'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setDynamic'_ :: HG3DClassPtr -> CInt -> IO ()Source
getDynamic'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
removeChainElement'_ :: HG3DClassPtr -> CInt -> IO ()Source
getNumChainElements'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()Source
clearChain'_ :: HG3DClassPtr -> CInt -> IO ()Source
getMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source
setMaterialName'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CChar -> IO ()Source
getSquaredViewDepth'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CFloat -> IO ()Source
getBoundingRadius'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
getMaterial'_ :: HG3DClassPtr -> SharedPtrPtr -> IO ()Source
getMovableType'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source