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

Safe HaskellSafe-Infered

HGamer3D.Bindings.Ogre.ClassMeshManager

Synopsis

Documentation

newSource

Arguments

:: IO HG3DClass 

deleteSource

Arguments

:: HG3DClass

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

-> IO () 

Tells the mesh manager that all future meshes should prepare themselves for shadow volumes on loading.

setPrepareAllMeshesForShadowVolumesSource

Arguments

:: HG3DClass

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

-> Bool

enable

-> IO () 

Retrieves whether all Meshes should prepare themselves for shadow volumes.

getPrepareAllMeshesForShadowVolumesSource

Arguments

:: HG3DClass

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

-> IO Bool 

getBoundsPaddingFactorSource

Arguments

:: HG3DClass

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

-> IO Float 

Gets the factor by which the bounding box of an entity is padded. Default is 0.01

setBoundsPaddingFactorSource

Arguments

:: HG3DClass

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

-> Float

paddingFactor

-> IO () 

ManualResourceLoader::loadResource

Sets the factor by which the bounding box of an entity is padded

loadResourceSource

Arguments

:: HG3DClass

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

-> HG3DClass

res

-> IO () 

Override standard Singleton retrieval. Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll. This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.