-- 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\\ClassCompositorInstance.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. -- -- ClassCompositorInstance.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreCompositorInstance.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.ClassCompositorInstance 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\\ClassCompositorInstance.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} import HGamer3D.Bindings.Ogre.TypeSharedPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} cCoiSetEnabled :: HG3DClass -> Bool -> IO () cCoiSetEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCoiSetEnabled'_ a1' a2' >>= \res -> return () {-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetEnabled :: HG3DClass -> IO (Bool) cCoiGetEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCoiGetEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetTextureInstanceName :: HG3DClass -> String -> Int -> IO (String) cCoiGetTextureInstanceName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromIntegral a3} in alloc64k $ \a4' -> cCoiGetTextureInstanceName'_ a1' a2' a3' a4' >>= \res -> peekCString a4'>>= \a4'' -> return (a4'') {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetTextureInstance :: HG3DClass -> String -> Int -> IO (SharedPtr) cCoiGetTextureInstance a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromIntegral a3} in alloca $ \a4' -> cCoiGetTextureInstance'_ a1' a2' a3' a4' >>= \res -> peek a4'>>= \a4'' -> return (a4'') {-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetRenderTarget :: HG3DClass -> String -> IO (HG3DClass) cCoiGetRenderTarget a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cCoiGetRenderTarget'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 82 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetCompositor :: HG3DClass -> IO (HG3DClass) cCoiGetCompositor a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCoiGetCompositor'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 86 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetTechnique :: HG3DClass -> IO (HG3DClass) cCoiGetTechnique a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCoiGetTechnique'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiSetTechnique :: HG3DClass -> HG3DClass -> Bool -> IO () cCoiSetTechnique a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> let {a3' = fromBool a3} in cCoiSetTechnique'_ a1' a2' a3' >>= \res -> return () {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiSetScheme :: HG3DClass -> String -> Bool -> IO () cCoiSetScheme a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = fromBool a3} in cCoiSetScheme'_ a1' a2' a3' >>= \res -> return () {-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetScheme :: HG3DClass -> IO (String) cCoiGetScheme a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cCoiGetScheme'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiNotifyResized :: HG3DClass -> IO () cCoiNotifyResized a1 = withHG3DClass a1 $ \a1' -> cCoiNotifyResized'_ a1' >>= \res -> return () {-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiGetChain :: HG3DClass -> IO (HG3DClass) cCoiGetChain a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCoiGetChain'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiFireNotifyMaterialSetup :: HG3DClass -> Int -> IO (SharedPtr) cCoiFireNotifyMaterialSetup a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cCoiFireNotifyMaterialSetup'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiFireNotifyMaterialRender :: HG3DClass -> Int -> IO (SharedPtr) cCoiFireNotifyMaterialRender a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cCoiFireNotifyMaterialRender'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; cCoiFireNotifyResourcesCreated :: HG3DClass -> Bool -> IO () cCoiFireNotifyResourcesCreated a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCoiFireNotifyResourcesCreated'_ a1' a2' >>= \res -> return () {-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setEnabled_c" cCoiSetEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getEnabled_c" cCoiGetEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getTextureInstanceName_c" cCoiGetTextureInstanceName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getTextureInstance_c" cCoiGetTextureInstance'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getRenderTarget_c" cCoiGetRenderTarget'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getCompositor_c" cCoiGetCompositor'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getTechnique_c" cCoiGetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setTechnique_c" cCoiSetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_setScheme_c" cCoiSetScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getScheme_c" cCoiGetScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_notifyResized_c" cCoiNotifyResized'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi_getChain_c" cCoiGetChain'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyMaterialSetup_c" cCoiFireNotifyMaterialSetup'_ :: ((HG3DClassPtr) -> (CUInt -> ((SharedPtrPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyMaterialRender_c" cCoiFireNotifyMaterialRender'_ :: ((HG3DClassPtr) -> (CUInt -> ((SharedPtrPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCompositorInstance.chs.h cCoi__fireNotifyResourcesCreated_c" cCoiFireNotifyResourcesCreated'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))