-- 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\\ClassCompositorManager.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. -- -- ClassCompositorManager.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreCompositorManager.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.ClassCompositorManager 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\\ClassCompositorManager.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} import HGamer3D.Bindings.Ogre.TypeSharedPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} cComInitialise :: HG3DClass -> IO () cComInitialise a1 = withHG3DClass a1 $ \a1' -> cComInitialise'_ a1' >>= \res -> return () {-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComParseScript :: HG3DClass -> String -> IO (SharedPtr) cComParseScript a1 a3 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> withCString a3 $ \a3' -> cComParseScript'_ a1' a2' a3' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComGetCompositorChain :: HG3DClass -> HG3DClass -> IO (HG3DClass) cComGetCompositorChain a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> alloca $ \a3' -> cComGetCompositorChain'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComHasCompositorChain :: HG3DClass -> HG3DClass -> IO (Bool) cComHasCompositorChain a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> alloca $ \a3' -> cComHasCompositorChain'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') {-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComRemoveCompositorChain :: HG3DClass -> HG3DClass -> IO () cComRemoveCompositorChain a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cComRemoveCompositorChain'_ a1' a2' >>= \res -> return () {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComAddCompositor :: HG3DClass -> HG3DClass -> String -> Int -> IO (HG3DClass) cComAddCompositor a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withCString a3 $ \a3' -> let {a4' = fromIntegral a4} in alloca $ \a5' -> cComAddCompositor'_ a1' a2' a3' a4' a5' >>= \res -> peek a5'>>= \a5'' -> return (a5'') {-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComRemoveCompositor :: HG3DClass -> HG3DClass -> String -> IO () cComRemoveCompositor a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withCString a3 $ \a3' -> cComRemoveCompositor'_ a1' a2' a3' >>= \res -> return () {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComSetCompositorEnabled :: HG3DClass -> HG3DClass -> String -> Bool -> IO () cComSetCompositorEnabled a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withCString a3 $ \a3' -> let {a4' = fromBool a4} in cComSetCompositorEnabled'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComRemoveAll :: HG3DClass -> IO () cComRemoveAll a1 = withHG3DClass a1 $ \a1' -> cComRemoveAll'_ a1' >>= \res -> return () {-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComReconstructAllCompositorResources :: HG3DClass -> IO () cComReconstructAllCompositorResources a1 = withHG3DClass a1 $ \a1' -> cComReconstructAllCompositorResources'_ a1' >>= \res -> return () {-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComFreePooledTextures :: HG3DClass -> Bool -> IO () cComFreePooledTextures a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cComFreePooledTextures'_ a1' a2' >>= \res -> return () {-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; cComRelocateChain :: HG3DClass -> HG3DClass -> HG3DClass -> IO () cComRelocateChain a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withHG3DClass a3 $ \a3' -> cComRelocateChain'_ a1' a2' a3' >>= \res -> return () {-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_initialise_c" cComInitialise'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_parseScript_c" cComParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_getCompositorChain_c" cComGetCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_hasCompositorChain_c" cComHasCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeCompositorChain_c" cComRemoveCompositorChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_addCompositor_c" cComAddCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((HG3DClassPtr) -> (IO ())))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeCompositor_c" cComRemoveCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_setCompositorEnabled_c" cComSetCompositorEnabled'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_removeAll_c" cComRemoveAll'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom__reconstructAllCompositorResources_c" cComReconstructAllCompositorResources'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom_freePooledTextures_c" cComFreePooledTextures'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorManager.chs.h cCom__relocateChain_c" cComRelocateChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))