-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell) -- Edit the ORIGNAL .chs file instead! {-# LINE 1 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE TypeSynonymInstances #-} -- This source file is part of HGamer3D -- (A project to enable 3D game development in Haskell) -- For the latest info, see http://www.althainz.de/HGamer3D.html -- -- Copyright 2011 Dr. Peter Althainz -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- ClassSkeleton.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreSkeleton.h" -- -- each stub combines the following files: -- a C++ implementation file, transforming cpp calls into C-functions -- a C-header file, making this C-functions available for the C2HS parser -- a chs file, give instructions to the C2HS parser. -- -- module HGamer3D.Bindings.Ogre.ClassSkeleton where import C2HS import Foreign import Foreign.Ptr import Foreign.C import Monad (liftM, liftM2) import HGamer3D.Data.HG3DClass import HGamer3D.Data.Vector2 import HGamer3D.Data.Vector3 import HGamer3D.Data.Vector4 import HGamer3D.Data.Quaternion import HGamer3D.Data.Colour import HGamer3D.Data.Angle import HGamer3D.Bindings.Ogre.TypeHG3DClass {-# LINE 52 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} import HGamer3D.Bindings.Ogre.EnumSkeletonAnimationBlendMode {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} cSCreateBone :: HG3DClass -> IO (HG3DClass) cSCreateBone a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSCreateBone'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSCreateBone2 :: HG3DClass -> Int -> IO (HG3DClass) cSCreateBone2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cSCreateBone2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSCreateBone3 :: HG3DClass -> String -> IO (HG3DClass) cSCreateBone3 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cSCreateBone3'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSCreateBone4 :: HG3DClass -> String -> Int -> IO (HG3DClass) cSCreateBone4 a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromIntegral a3} in alloca $ \a4' -> cSCreateBone4'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') {-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetNumBones :: HG3DClass -> IO (Int) cSGetNumBones a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSGetNumBones'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetRootBone :: HG3DClass -> IO (HG3DClass) cSGetRootBone a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSGetRootBone'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetBone :: HG3DClass -> Int -> IO (HG3DClass) cSGetBone a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cSGetBone'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetBone2 :: HG3DClass -> String -> IO (HG3DClass) cSGetBone2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cSGetBone2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSHasBone :: HG3DClass -> String -> IO (Bool) cSHasBone a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cSHasBone'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') {-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSSetBindingPose :: HG3DClass -> IO () cSSetBindingPose a1 = withHG3DClass a1 $ \a1' -> cSSetBindingPose'_ a1' >>= \res -> return () {-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSReset :: HG3DClass -> Bool -> IO () cSReset a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSReset'_ a1' a2' >>= \res -> return () {-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSCreateAnimation :: HG3DClass -> String -> Float -> IO (HG3DClass) cSCreateAnimation a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = realToFrac a3} in alloca $ \a4' -> cSCreateAnimation'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') {-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSHasAnimation :: HG3DClass -> String -> IO (Bool) cSHasAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cSHasAnimation'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') {-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSRemoveAnimation :: HG3DClass -> String -> IO () cSRemoveAnimation a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cSRemoveAnimation'_ a1' a2' >>= \res -> return () {-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetNumAnimations :: HG3DClass -> IO (Int) cSGetNumAnimations a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSGetNumAnimations'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetAnimation2 :: HG3DClass -> Int -> IO (HG3DClass) cSGetAnimation2 a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cSGetAnimation2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetBlendMode :: HG3DClass -> IO (EnumSkeletonAnimationBlendMode) cSGetBlendMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSGetBlendMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') {-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSSetBlendMode :: HG3DClass -> EnumSkeletonAnimationBlendMode -> IO () cSSetBlendMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cSSetBlendMode'_ a1' a2' >>= \res -> return () {-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSUpdateTransforms :: HG3DClass -> IO () cSUpdateTransforms a1 = withHG3DClass a1 $ \a1' -> cSUpdateTransforms'_ a1' >>= \res -> return () {-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSOptimiseAllAnimations :: HG3DClass -> Bool -> IO () cSOptimiseAllAnimations a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSOptimiseAllAnimations'_ a1' a2' >>= \res -> return () {-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSAddLinkedSkeletonAnimationSource :: HG3DClass -> String -> Float -> IO () cSAddLinkedSkeletonAnimationSource a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = realToFrac a3} in cSAddLinkedSkeletonAnimationSource'_ a1' a2' a3' >>= \res -> return () {-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSRemoveAllLinkedSkeletonAnimationSources :: HG3DClass -> IO () cSRemoveAllLinkedSkeletonAnimationSources a1 = withHG3DClass a1 $ \a1' -> cSRemoveAllLinkedSkeletonAnimationSources'_ a1' >>= \res -> return () {-# LINE 154 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSNotifyManualBonesDirty :: HG3DClass -> IO () cSNotifyManualBonesDirty a1 = withHG3DClass a1 $ \a1' -> cSNotifyManualBonesDirty'_ a1' >>= \res -> return () {-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSNotifyManualBoneStateChange :: HG3DClass -> HG3DClass -> IO () cSNotifyManualBoneStateChange a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cSNotifyManualBoneStateChange'_ a1' a2' >>= \res -> return () {-# LINE 161 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSGetManualBonesDirty :: HG3DClass -> IO (Bool) cSGetManualBonesDirty a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSGetManualBonesDirty'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 165 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; cSHasManualBones :: HG3DClass -> IO (Bool) cSHasManualBones a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSHasManualBones'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 169 "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone_c" cSCreateBone'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone2_c" cSCreateBone2'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone3_c" cSCreateBone3'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createBone4_c" cSCreateBone4'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CUShort -> ((HG3DClassPtr) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getNumBones_c" cSGetNumBones'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getRootBone_c" cSGetRootBone'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBone_c" cSGetBone'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBone2_c" cSGetBone2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasBone_c" cSHasBone'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_setBindingPose_c" cSSetBindingPose'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_reset_c" cSReset'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_createAnimation_c" cSCreateAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> ((HG3DClassPtr) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasAnimation_c" cSHasAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_removeAnimation_c" cSRemoveAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getNumAnimations_c" cSGetNumAnimations'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getAnimation2_c" cSGetAnimation2'_ :: ((HG3DClassPtr) -> (CUShort -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getBlendMode_c" cSGetBlendMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_setBlendMode_c" cSSetBlendMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__updateTransforms_c" cSUpdateTransforms'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_optimiseAllAnimations_c" cSOptimiseAllAnimations'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_addLinkedSkeletonAnimationSource_c" cSAddLinkedSkeletonAnimationSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CFloat -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_removeAllLinkedSkeletonAnimationSources_c" cSRemoveAllLinkedSkeletonAnimationSources'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__notifyManualBonesDirty_c" cSNotifyManualBonesDirty'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS__notifyManualBoneStateChange_c" cSNotifyManualBoneStateChange'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_getManualBonesDirty_c" cSGetManualBonesDirty'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSkeleton.chs.h cS_hasManualBones_c" cSHasManualBones'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))