-- 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\\ClassStaticGeometry.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. -- -- ClassStaticGeometry.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreStaticGeometry.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.ClassStaticGeometry 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\\ClassStaticGeometry.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} import HGamer3D.Bindings.Ogre.TypeVector3 {-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} import HGamer3D.Bindings.Ogre.TypeQuaternion {-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} cSgGetName :: HG3DClass -> IO (String) cSgGetName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cSgGetName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 64 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgAddEntity :: HG3DClass -> HG3DClass -> Vector3 -> Quaternion -> Vector3 -> IO () cSgAddEntity a1 a2 a3 a4 a5 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withVector3 a3 $ \a3' -> withQuaternion a4 $ \a4' -> withVector3 a5 $ \a5' -> cSgAddEntity'_ a1' a2' a3' a4' a5' >>= \res -> return () {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgBuild :: HG3DClass -> IO () cSgBuild a1 = withHG3DClass a1 $ \a1' -> cSgBuild'_ a1' >>= \res -> return () {-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgDestroy :: HG3DClass -> IO () cSgDestroy a1 = withHG3DClass a1 $ \a1' -> cSgDestroy'_ a1' >>= \res -> return () {-# LINE 77 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgReset :: HG3DClass -> IO () cSgReset a1 = withHG3DClass a1 $ \a1' -> cSgReset'_ a1' >>= \res -> return () {-# LINE 80 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetRenderingDistance :: HG3DClass -> Float -> IO () cSgSetRenderingDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in cSgSetRenderingDistance'_ a1' a2' >>= \res -> return () {-# LINE 84 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetRenderingDistance :: HG3DClass -> IO (Float) cSgGetRenderingDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetRenderingDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 88 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetSquaredRenderingDistance :: HG3DClass -> IO (Float) cSgGetSquaredRenderingDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetSquaredRenderingDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetVisible :: HG3DClass -> Bool -> IO () cSgSetVisible a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSgSetVisible'_ a1' a2' >>= \res -> return () {-# LINE 96 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgIsVisible :: HG3DClass -> IO (Bool) cSgIsVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgIsVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 100 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetCastShadows :: HG3DClass -> Bool -> IO () cSgSetCastShadows a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSgSetCastShadows'_ a1' a2' >>= \res -> return () {-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetCastShadows :: HG3DClass -> IO (Bool) cSgGetCastShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetCastShadows'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 108 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetRegionDimensions :: HG3DClass -> Vector3 -> IO () cSgSetRegionDimensions a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cSgSetRegionDimensions'_ a1' a2' >>= \res -> return () {-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetRegionDimensions :: HG3DClass -> IO (Vector3) cSgGetRegionDimensions a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetRegionDimensions'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetOrigin :: HG3DClass -> Vector3 -> IO () cSgSetOrigin a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cSgSetOrigin'_ a1' a2' >>= \res -> return () {-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetOrigin :: HG3DClass -> IO (Vector3) cSgGetOrigin a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetOrigin'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgSetVisibilityFlags :: HG3DClass -> Int -> IO () cSgSetVisibilityFlags a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cSgSetVisibilityFlags'_ a1' a2' >>= \res -> return () {-# LINE 128 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgGetVisibilityFlags :: HG3DClass -> IO (Int) cSgGetVisibilityFlags a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSgGetVisibilityFlags'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 132 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; cSgDump :: HG3DClass -> String -> IO () cSgDump a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cSgDump'_ a1' a2' >>= \res -> return () {-# LINE 136 "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getName_c" cSgGetName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_addEntity_c" cSgAddEntity'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Vector3Ptr) -> ((QuaternionPtr) -> ((Vector3Ptr) -> (IO ())))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_build_c" cSgBuild'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_destroy_c" cSgDestroy'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_reset_c" cSgReset'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setRenderingDistance_c" cSgSetRenderingDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getRenderingDistance_c" cSgGetRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getSquaredRenderingDistance_c" cSgGetSquaredRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setVisible_c" cSgSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_isVisible_c" cSgIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setCastShadows_c" cSgSetCastShadows'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getCastShadows_c" cSgGetCastShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setRegionDimensions_c" cSgSetRegionDimensions'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getRegionDimensions_c" cSgGetRegionDimensions'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setOrigin_c" cSgSetOrigin'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getOrigin_c" cSgGetOrigin'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_setVisibilityFlags_c" cSgSetVisibilityFlags'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_getVisibilityFlags_c" cSgGetVisibilityFlags'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassStaticGeometry.chs.h cSg_dump_c" cSgDump'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))