-- 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\\ClassCompositorChain.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. -- -- ClassCompositorChain.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreCompositorChain.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.ClassCompositorChain 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.ColourValue import HGamer3D.Data.Radian import HGamer3D.Data.Degree import HGamer3D.Data.Angle import HGamer3D.Bindings.Ogre.TypeHG3DClass {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} cCocRemoveCompositor :: HG3DClass -> Int -> IO () cCocRemoveCompositor a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cCocRemoveCompositor'_ a1' a2' >>= \res -> return () {-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetNumCompositors :: HG3DClass -> IO (Int) cCocGetNumCompositors a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCocGetNumCompositors'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 66 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocRemoveAllCompositors :: HG3DClass -> IO () cCocRemoveAllCompositors a1 = withHG3DClass a1 $ \a1' -> cCocRemoveAllCompositors'_ a1' >>= \res -> return () {-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetCompositor :: HG3DClass -> Int -> IO (HG3DClass) cCocGetCompositor a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cCocGetCompositor'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetCompositor2 :: HG3DClass -> String -> IO (HG3DClass) cCocGetCompositor2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cCocGetCompositor2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetOriginalSceneCompositor :: HG3DClass -> IO (HG3DClass) cCocGetOriginalSceneCompositor a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCocGetOriginalSceneCompositor'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocSetCompositorEnabled :: HG3DClass -> Int -> Bool -> IO () cCocSetCompositorEnabled a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromBool a3} in cCocSetCompositorEnabled'_ a1' a2' a3' >>= \res -> return () {-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocMarkDirty :: HG3DClass -> IO () cCocMarkDirty a1 = withHG3DClass a1 $ \a1' -> cCocMarkDirty'_ a1' >>= \res -> return () {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetViewport :: HG3DClass -> IO (HG3DClass) cCocGetViewport a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCocGetViewport'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocNotifyViewport :: HG3DClass -> HG3DClass -> IO () cCocNotifyViewport a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cCocNotifyViewport'_ a1' a2' >>= \res -> return () {-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocRemoveInstance :: HG3DClass -> HG3DClass -> IO () cCocRemoveInstance a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cCocRemoveInstance'_ a1' a2' >>= \res -> return () {-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocCompile :: HG3DClass -> IO () cCocCompile a1 = withHG3DClass a1 $ \a1' -> cCocCompile'_ a1' >>= \res -> return () {-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; cCocGetPreviousInstance :: HG3DClass -> HG3DClass -> Bool -> IO (HG3DClass) cCocGetPreviousInstance a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> let {a3' = fromBool a3} in alloca $ \a4' -> cCocGetPreviousInstance'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') {-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_removeCompositor_c" cCocRemoveCompositor'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getNumCompositors_c" cCocGetNumCompositors'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_removeAllCompositors_c" cCocRemoveAllCompositors'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getCompositor_c" cCocGetCompositor'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getCompositor2_c" cCocGetCompositor2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__getOriginalSceneCompositor_c" cCocGetOriginalSceneCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_setCompositorEnabled_c" cCocSetCompositorEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__markDirty_c" cCocMarkDirty'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getViewport_c" cCocGetViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__notifyViewport_c" cCocNotifyViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__removeInstance_c" cCocRemoveInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc__compile_c" cCocCompile'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorChain.chs.h cCoc_getPreviousInstance_c" cCocGetPreviousInstance'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))))