-- 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\\ClassCompositionTargetPass.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 -- -- (c) 2011 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. -- -- ClassCompositionTargetPass.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "Dep-OgreSDK/include/OGRE\OgreCompositionTargetPass.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.ClassCompositionTargetPass 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\\ClassCompositionTargetPass.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} import HGamer3D.Bindings.Ogre.EnumInputMode {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} cCotpSetInputMode :: HG3DClass -> EnumInputMode -> IO () cCotpSetInputMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cCotpSetInputMode'_ a1' a2' >>= \res -> return () {-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetInputMode :: HG3DClass -> IO (EnumInputMode) cCotpGetInputMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetInputMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') {-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetOutputName :: HG3DClass -> String -> IO () cCotpSetOutputName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cCotpSetOutputName'_ a1' a2' >>= \res -> return () {-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetOutputName :: HG3DClass -> IO (String) cCotpGetOutputName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cCotpGetOutputName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetOnlyInitial :: HG3DClass -> Bool -> IO () cCotpSetOnlyInitial a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCotpSetOnlyInitial'_ a1' a2' >>= \res -> return () {-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetOnlyInitial :: HG3DClass -> IO (Bool) cCotpGetOnlyInitial a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetOnlyInitial'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 81 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetVisibilityMask :: HG3DClass -> Int -> IO () cCotpSetVisibilityMask a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cCotpSetVisibilityMask'_ a1' a2' >>= \res -> return () {-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetVisibilityMask :: HG3DClass -> IO (Int) cCotpGetVisibilityMask a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetVisibilityMask'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 89 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetMaterialScheme :: HG3DClass -> String -> IO () cCotpSetMaterialScheme a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cCotpSetMaterialScheme'_ a1' a2' >>= \res -> return () {-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetMaterialScheme :: HG3DClass -> IO (String) cCotpGetMaterialScheme a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cCotpGetMaterialScheme'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetShadowsEnabled :: HG3DClass -> Bool -> IO () cCotpSetShadowsEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCotpSetShadowsEnabled'_ a1' a2' >>= \res -> return () {-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetShadowsEnabled :: HG3DClass -> IO (Bool) cCotpGetShadowsEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetShadowsEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpSetLodBias :: HG3DClass -> Float -> IO () cCotpSetLodBias a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in cCotpSetLodBias'_ a1' a2' >>= \res -> return () {-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetLodBias :: HG3DClass -> IO (Float) cCotpGetLodBias a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetLodBias'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpCreatePass :: HG3DClass -> IO (HG3DClass) cCotpCreatePass a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpCreatePass'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpRemovePass :: HG3DClass -> Int -> IO () cCotpRemovePass a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cCotpRemovePass'_ a1' a2' >>= \res -> return () {-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetPass :: HG3DClass -> Int -> IO (HG3DClass) cCotpGetPass a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cCotpGetPass'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetNumPasses :: HG3DClass -> IO (Int) cCotpGetNumPasses a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetNumPasses'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpRemoveAllPasses :: HG3DClass -> IO () cCotpRemoveAllPasses a1 = withHG3DClass a1 $ \a1' -> cCotpRemoveAllPasses'_ a1' >>= \res -> return () {-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpGetParent :: HG3DClass -> IO (HG3DClass) cCotpGetParent a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpGetParent'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; cCotpIsSupported :: HG3DClass -> IO (Bool) cCotpIsSupported a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCotpIsSupported'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setInputMode_c" cCotpSetInputMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getInputMode_c" cCotpGetInputMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setOutputName_c" cCotpSetOutputName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getOutputName_c" cCotpGetOutputName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setOnlyInitial_c" cCotpSetOnlyInitial'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getOnlyInitial_c" cCotpGetOnlyInitial'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setVisibilityMask_c" cCotpSetVisibilityMask'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getVisibilityMask_c" cCotpGetVisibilityMask'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setMaterialScheme_c" cCotpSetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getMaterialScheme_c" cCotpGetMaterialScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setShadowsEnabled_c" cCotpSetShadowsEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getShadowsEnabled_c" cCotpGetShadowsEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_setLodBias_c" cCotpSetLodBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getLodBias_c" cCotpGetLodBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_createPass_c" cCotpCreatePass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_removePass_c" cCotpRemovePass'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getPass_c" cCotpGetPass'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getNumPasses_c" cCotpGetNumPasses'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_removeAllPasses_c" cCotpRemoveAllPasses'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp_getParent_c" cCotpGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositionTargetPass.chs.h cCotp__isSupported_c" cCotpIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))