-- 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\\ClassBillboardChain.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. -- -- ClassBillboardChain.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreBillboardChain.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.ClassBillboardChain 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\\ClassBillboardChain.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} import HGamer3D.Bindings.Ogre.EnumTexCoordDirection {-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} cBcSetMaxChainElements :: HG3DClass -> Int -> IO () cBcSetMaxChainElements a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cBcSetMaxChainElements'_ a1' a2' >>= \res -> return () {-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetMaxChainElements :: HG3DClass -> IO (Int) cBcGetMaxChainElements a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetMaxChainElements'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetNumberOfChains :: HG3DClass -> Int -> IO () cBcSetNumberOfChains a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cBcSetNumberOfChains'_ a1' a2' >>= \res -> return () {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetNumberOfChains :: HG3DClass -> IO (Int) cBcGetNumberOfChains a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetNumberOfChains'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetUseTextureCoords :: HG3DClass -> Bool -> IO () cBcSetUseTextureCoords a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cBcSetUseTextureCoords'_ a1' a2' >>= \res -> return () {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetUseTextureCoords :: HG3DClass -> IO (Bool) cBcGetUseTextureCoords a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetUseTextureCoords'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetTextureCoordDirection :: HG3DClass -> EnumTexCoordDirection -> IO () cBcSetTextureCoordDirection a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cBcSetTextureCoordDirection'_ a1' a2' >>= \res -> return () {-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetTextureCoordDirection :: HG3DClass -> IO (EnumTexCoordDirection) cBcGetTextureCoordDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetTextureCoordDirection'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetOtherTextureCoordRange :: HG3DClass -> Float -> Float -> IO () cBcSetOtherTextureCoordRange a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in cBcSetOtherTextureCoordRange'_ a1' a2' a3' >>= \res -> return () {-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetUseVertexColours :: HG3DClass -> Bool -> IO () cBcSetUseVertexColours a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cBcSetUseVertexColours'_ a1' a2' >>= \res -> return () {-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetUseVertexColours :: HG3DClass -> IO (Bool) cBcGetUseVertexColours a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetUseVertexColours'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetDynamic :: HG3DClass -> Bool -> IO () cBcSetDynamic a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cBcSetDynamic'_ a1' a2' >>= \res -> return () {-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetDynamic :: HG3DClass -> IO (Bool) cBcGetDynamic a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cBcGetDynamic'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcRemoveChainElement :: HG3DClass -> Int -> IO () cBcRemoveChainElement a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cBcRemoveChainElement'_ a1' a2' >>= \res -> return () {-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetNumChainElements :: HG3DClass -> Int -> IO (Int) cBcGetNumChainElements a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> cBcGetNumChainElements'_ a1' a2' a3' >>= \res -> peekIntConv a3'>>= \a3'' -> return (a3'') {-# LINE 121 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcClearChain :: HG3DClass -> Int -> IO () cBcClearChain a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cBcClearChain'_ a1' a2' >>= \res -> return () {-# LINE 125 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcClearAllChains :: HG3DClass -> IO () cBcClearAllChains a1 = withHG3DClass a1 $ \a1' -> cBcClearAllChains'_ a1' >>= \res -> return () {-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcGetMaterialName :: HG3DClass -> IO (String) cBcGetMaterialName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cBcGetMaterialName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcSetMaterialName :: HG3DClass -> String -> String -> IO () cBcSetMaterialName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> cBcSetMaterialName'_ a1' a2' a3' >>= \res -> return () {-# LINE 137 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; cBcNotifyCurrentCamera :: HG3DClass -> HG3DClass -> IO () cBcNotifyCurrentCamera a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cBcNotifyCurrentCamera'_ a1' a2' >>= \res -> return () {-# LINE 141 "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setMaxChainElements_c" cBcSetMaxChainElements'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getMaxChainElements_c" cBcGetMaxChainElements'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setNumberOfChains_c" cBcSetNumberOfChains'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getNumberOfChains_c" cBcGetNumberOfChains'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setUseTextureCoords_c" cBcSetUseTextureCoords'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getUseTextureCoords_c" cBcGetUseTextureCoords'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setTextureCoordDirection_c" cBcSetTextureCoordDirection'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getTextureCoordDirection_c" cBcGetTextureCoordDirection'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setOtherTextureCoordRange_c" cBcSetOtherTextureCoordRange'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setUseVertexColours_c" cBcSetUseVertexColours'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getUseVertexColours_c" cBcGetUseVertexColours'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setDynamic_c" cBcSetDynamic'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getDynamic_c" cBcGetDynamic'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_removeChainElement_c" cBcRemoveChainElement'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getNumChainElements_c" cBcGetNumChainElements'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_clearChain_c" cBcClearChain'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_clearAllChains_c" cBcClearAllChains'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_getMaterialName_c" cBcGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc_setMaterialName_c" cBcSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBillboardChain.chs.h cBc__notifyCurrentCamera_c" cBcNotifyCurrentCamera'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))