-- 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\\ClassTechnique.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. -- -- ClassTechnique.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreTechnique.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.ClassTechnique 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\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.TypeColourValue {-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumCompareFunction {-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumCullingMode {-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumManualCullingMode {-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumShadeOptions {-# LINE 61 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumFogMode {-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions {-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumGPUVendor {-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} import HGamer3D.Bindings.Ogre.EnumIncludeOrExclude {-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} cTIsSupported :: HG3DClass -> IO (Bool) cTIsSupported a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsSupported'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTCompile :: HG3DClass -> Bool -> IO (String) cTCompile a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in alloc64k $ \a3' -> cTCompile'_ a1' a2' a3' >>= \res -> peekCString a3'>>= \a3'' -> return (a3'') {-# LINE 76 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTCompileIlluminationPasses :: HG3DClass -> IO () cTCompileIlluminationPasses a1 = withHG3DClass a1 $ \a1' -> cTCompileIlluminationPasses'_ a1' >>= \res -> return () {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTCreatePass :: HG3DClass -> IO (HG3DClass) cTCreatePass a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTCreatePass'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetPass :: HG3DClass -> Int -> IO (HG3DClass) cTGetPass a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cTGetPass'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetPass2 :: HG3DClass -> String -> IO (HG3DClass) cTGetPass2 a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> cTGetPass2'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 93 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetNumPasses :: HG3DClass -> IO (Int) cTGetNumPasses a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTGetNumPasses'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTRemovePass :: HG3DClass -> Int -> IO () cTRemovePass a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cTRemovePass'_ a1' a2' >>= \res -> return () {-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTRemoveAllPasses :: HG3DClass -> IO () cTRemoveAllPasses a1 = withHG3DClass a1 $ \a1' -> cTRemoveAllPasses'_ a1' >>= \res -> return () {-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTMovePass :: HG3DClass -> Int -> Int -> IO (Bool) cTMovePass a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromIntegral a3} in alloca $ \a4' -> cTMovePass'_ a1' a2' a3' a4' >>= \res -> peekBoolUtil a4'>>= \a4'' -> return (a4'') {-# LINE 110 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetParent :: HG3DClass -> IO (HG3DClass) cTGetParent a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTGetParent'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 114 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetResourceGroup :: HG3DClass -> IO (String) cTGetResourceGroup a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cTGetResourceGroup'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 118 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsTransparent :: HG3DClass -> IO (Bool) cTIsTransparent a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsTransparent'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 122 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsTransparentSortingEnabled :: HG3DClass -> IO (Bool) cTIsTransparentSortingEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsTransparentSortingEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 126 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsTransparentSortingForced :: HG3DClass -> IO (Bool) cTIsTransparentSortingForced a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsTransparentSortingForced'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 130 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTPrepare :: HG3DClass -> IO () cTPrepare a1 = withHG3DClass a1 $ \a1' -> cTPrepare'_ a1' >>= \res -> return () {-# LINE 133 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTUnprepare :: HG3DClass -> IO () cTUnprepare a1 = withHG3DClass a1 $ \a1' -> cTUnprepare'_ a1' >>= \res -> return () {-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTLoad :: HG3DClass -> IO () cTLoad a1 = withHG3DClass a1 $ \a1' -> cTLoad'_ a1' >>= \res -> return () {-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTUnload :: HG3DClass -> IO () cTUnload a1 = withHG3DClass a1 $ \a1' -> cTUnload'_ a1' >>= \res -> return () {-# LINE 142 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsLoaded :: HG3DClass -> IO (Bool) cTIsLoaded a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsLoaded'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 146 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTNotifyNeedsRecompile :: HG3DClass -> IO () cTNotifyNeedsRecompile a1 = withHG3DClass a1 $ \a1' -> cTNotifyNeedsRecompile'_ a1' >>= \res -> return () {-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetPointSize :: HG3DClass -> Float -> IO () cTSetPointSize a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in cTSetPointSize'_ a1' a2' >>= \res -> return () {-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetAmbient :: HG3DClass -> Float -> Float -> Float -> IO () cTSetAmbient a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in cTSetAmbient'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetAmbient2 :: HG3DClass -> ColourValue -> IO () cTSetAmbient2 a1 a2 = withHG3DClass a1 $ \a1' -> withColourValue a2 $ \a2' -> cTSetAmbient2'_ a1' a2' >>= \res -> return () {-# LINE 163 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDiffuse :: HG3DClass -> Float -> Float -> Float -> Float -> IO () cTSetDiffuse a1 a2 a3 a4 a5 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in let {a5' = realToFrac a5} in cTSetDiffuse'_ a1' a2' a3' a4' a5' >>= \res -> return () {-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDiffuse2 :: HG3DClass -> ColourValue -> IO () cTSetDiffuse2 a1 a2 = withHG3DClass a1 $ \a1' -> withColourValue a2 $ \a2' -> cTSetDiffuse2'_ a1' a2' >>= \res -> return () {-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetSpecular :: HG3DClass -> Float -> Float -> Float -> Float -> IO () cTSetSpecular a1 a2 a3 a4 a5 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in let {a5' = realToFrac a5} in cTSetSpecular'_ a1' a2' a3' a4' a5' >>= \res -> return () {-# LINE 181 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetSpecular2 :: HG3DClass -> ColourValue -> IO () cTSetSpecular2 a1 a2 = withHG3DClass a1 $ \a1' -> withColourValue a2 $ \a2' -> cTSetSpecular2'_ a1' a2' >>= \res -> return () {-# LINE 185 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetShininess :: HG3DClass -> Float -> IO () cTSetShininess a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in cTSetShininess'_ a1' a2' >>= \res -> return () {-# LINE 189 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetSelfIllumination :: HG3DClass -> Float -> Float -> Float -> IO () cTSetSelfIllumination a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in cTSetSelfIllumination'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 195 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetSelfIllumination2 :: HG3DClass -> ColourValue -> IO () cTSetSelfIllumination2 a1 a2 = withHG3DClass a1 $ \a1' -> withColourValue a2 $ \a2' -> cTSetSelfIllumination2'_ a1' a2' >>= \res -> return () {-# LINE 199 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDepthCheckEnabled :: HG3DClass -> Bool -> IO () cTSetDepthCheckEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cTSetDepthCheckEnabled'_ a1' a2' >>= \res -> return () {-# LINE 203 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDepthWriteEnabled :: HG3DClass -> Bool -> IO () cTSetDepthWriteEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cTSetDepthWriteEnabled'_ a1' a2' >>= \res -> return () {-# LINE 207 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDepthFunction :: HG3DClass -> EnumCompareFunction -> IO () cTSetDepthFunction a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTSetDepthFunction'_ a1' a2' >>= \res -> return () {-# LINE 211 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetColourWriteEnabled :: HG3DClass -> Bool -> IO () cTSetColourWriteEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cTSetColourWriteEnabled'_ a1' a2' >>= \res -> return () {-# LINE 215 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetCullingMode :: HG3DClass -> EnumCullingMode -> IO () cTSetCullingMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTSetCullingMode'_ a1' a2' >>= \res -> return () {-# LINE 219 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetManualCullingMode :: HG3DClass -> EnumManualCullingMode -> IO () cTSetManualCullingMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTSetManualCullingMode'_ a1' a2' >>= \res -> return () {-# LINE 223 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetLightingEnabled :: HG3DClass -> Bool -> IO () cTSetLightingEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cTSetLightingEnabled'_ a1' a2' >>= \res -> return () {-# LINE 227 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetShadingMode :: HG3DClass -> EnumShadeOptions -> IO () cTSetShadingMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTSetShadingMode'_ a1' a2' >>= \res -> return () {-# LINE 231 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetFog :: HG3DClass -> Bool -> EnumFogMode -> ColourValue -> Float -> Float -> Float -> IO () cTSetFog a1 a2 a3 a4 a5 a6 a7 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in let {a3' = cIntFromEnum a3} in withColourValue a4 $ \a4' -> let {a5' = realToFrac a5} in let {a6' = realToFrac a6} in let {a7' = realToFrac a7} in cTSetFog'_ a1' a2' a3' a4' a5' a6' a7' >>= \res -> return () {-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetDepthBias :: HG3DClass -> Float -> Float -> IO () cTSetDepthBias a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in cTSetDepthBias'_ a1' a2' a3' >>= \res -> return () {-# LINE 245 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO () cTSetTextureFiltering a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTSetTextureFiltering'_ a1' a2' >>= \res -> return () {-# LINE 249 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetTextureAnisotropy :: HG3DClass -> Int -> IO () cTSetTextureAnisotropy a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cTSetTextureAnisotropy'_ a1' a2' >>= \res -> return () {-# LINE 253 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetLodIndex :: HG3DClass -> Int -> IO () cTSetLodIndex a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cTSetLodIndex'_ a1' a2' >>= \res -> return () {-# LINE 257 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetLodIndex :: HG3DClass -> IO (Int) cTGetLodIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTGetLodIndex'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 261 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetSchemeName :: HG3DClass -> String -> IO () cTSetSchemeName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cTSetSchemeName'_ a1' a2' >>= \res -> return () {-# LINE 265 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetSchemeName :: HG3DClass -> IO (String) cTGetSchemeName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cTGetSchemeName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 269 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetSchemeIndex :: HG3DClass -> IO (Int) cTGetSchemeIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTGetSchemeIndex'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 273 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsDepthWriteEnabled :: HG3DClass -> IO (Bool) cTIsDepthWriteEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsDepthWriteEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 277 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTIsDepthCheckEnabled :: HG3DClass -> IO (Bool) cTIsDepthCheckEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTIsDepthCheckEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 281 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTHasColourWriteDisabled :: HG3DClass -> IO (Bool) cTHasColourWriteDisabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cTHasColourWriteDisabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 285 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTSetName :: HG3DClass -> String -> IO () cTSetName a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cTSetName'_ a1' a2' >>= \res -> return () {-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTGetName :: HG3DClass -> IO (String) cTGetName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cTGetName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 293 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTAddGPUVendorRule :: HG3DClass -> EnumGPUVendor -> EnumIncludeOrExclude -> IO () cTAddGPUVendorRule a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in let {a3' = cIntFromEnum a3} in cTAddGPUVendorRule'_ a1' a2' a3' >>= \res -> return () {-# LINE 298 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTRemoveGPUVendorRule :: HG3DClass -> EnumGPUVendor -> IO () cTRemoveGPUVendorRule a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cTRemoveGPUVendorRule'_ a1' a2' >>= \res -> return () {-# LINE 302 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTAddGPUDeviceNameRule :: HG3DClass -> String -> EnumIncludeOrExclude -> Bool -> IO () cTAddGPUDeviceNameRule a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> let {a3' = cIntFromEnum a3} in let {a4' = fromBool a4} in cTAddGPUDeviceNameRule'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 308 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; cTRemoveGPUDeviceNameRule :: HG3DClass -> String -> IO () cTRemoveGPUDeviceNameRule a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cTRemoveGPUDeviceNameRule'_ a1' a2' >>= \res -> return () {-# LINE 312 "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isSupported_c" cTIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__compile_c" cTCompile'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CChar) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__compileIlluminationPasses_c" cTCompileIlluminationPasses'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_createPass_c" cTCreatePass'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getPass_c" cTGetPass'_ :: ((HG3DClassPtr) -> (CUInt -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getPass2_c" cTGetPass2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getNumPasses_c" cTGetNumPasses'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removePass_c" cTRemovePass'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeAllPasses_c" cTRemoveAllPasses'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_movePass_c" cTMovePass'_ :: ((HG3DClassPtr) -> (CUInt -> (CUInt -> ((Ptr CInt) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getParent_c" cTGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getResourceGroup_c" cTGetResourceGroup'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparent_c" cTIsTransparent'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparentSortingEnabled_c" cTIsTransparentSortingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isTransparentSortingForced_c" cTIsTransparentSortingForced'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__prepare_c" cTPrepare'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__unprepare_c" cTUnprepare'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__load_c" cTLoad'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__unload_c" cTUnload'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isLoaded_c" cTIsLoaded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__notifyNeedsRecompile_c" cTNotifyNeedsRecompile'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setPointSize_c" cTSetPointSize'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setAmbient_c" cTSetAmbient'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setAmbient2_c" cTSetAmbient2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDiffuse_c" cTSetDiffuse'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDiffuse2_c" cTSetDiffuse2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSpecular_c" cTSetSpecular'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSpecular2_c" cTSetSpecular2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setShininess_c" cTSetShininess'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSelfIllumination_c" cTSetSelfIllumination'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSelfIllumination2_c" cTSetSelfIllumination2'_ :: ((HG3DClassPtr) -> ((ColourValuePtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthCheckEnabled_c" cTSetDepthCheckEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthWriteEnabled_c" cTSetDepthWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthFunction_c" cTSetDepthFunction'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setColourWriteEnabled_c" cTSetColourWriteEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setCullingMode_c" cTSetCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setManualCullingMode_c" cTSetManualCullingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setLightingEnabled_c" cTSetLightingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setShadingMode_c" cTSetShadingMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setFog_c" cTSetFog'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> ((ColourValuePtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setDepthBias_c" cTSetDepthBias'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setTextureFiltering_c" cTSetTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setTextureAnisotropy_c" cTSetTextureAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setLodIndex_c" cTSetLodIndex'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getLodIndex_c" cTGetLodIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setSchemeName_c" cTSetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getSchemeName_c" cTGetSchemeName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT__getSchemeIndex_c" cTGetSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isDepthWriteEnabled_c" cTIsDepthWriteEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_isDepthCheckEnabled_c" cTIsDepthCheckEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_hasColourWriteDisabled_c" cTHasColourWriteDisabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_setName_c" cTSetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_getName_c" cTGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_addGPUVendorRule_c" cTAddGPUVendorRule'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeGPUVendorRule_c" cTRemoveGPUVendorRule'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_addGPUDeviceNameRule_c" cTAddGPUDeviceNameRule'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTechnique.chs.h cT_removeGPUDeviceNameRule_c" cTRemoveGPUDeviceNameRule'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))