-- 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\\ClassCamera.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. -- -- ClassCamera.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreCamera.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.ClassCamera 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\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.EnumPolygonMode {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.TypeVector3 {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.TypeRadian {-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.TypeQuaternion {-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} import HGamer3D.Bindings.Ogre.EnumFrustumPlane {-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} cCGetSceneManager :: HG3DClass -> IO (HG3DClass) cCGetSceneManager a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetSceneManager'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetPolygonMode :: HG3DClass -> EnumPolygonMode -> IO () cCSetPolygonMode a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cCSetPolygonMode'_ a1' a2' >>= \res -> return () {-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetPolygonMode :: HG3DClass -> IO (EnumPolygonMode) cCGetPolygonMode a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetPolygonMode'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') {-# LINE 73 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetPosition :: HG3DClass -> Float -> Float -> Float -> IO () cCSetPosition a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in cCSetPosition'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetPosition2 :: HG3DClass -> Vector3 -> IO () cCSetPosition2 a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cCSetPosition2'_ a1' a2' >>= \res -> return () {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetPosition :: HG3DClass -> IO (Vector3) cCGetPosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetPosition'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCMove :: HG3DClass -> Vector3 -> IO () cCMove a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cCMove'_ a1' a2' >>= \res -> return () {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCMoveRelative :: HG3DClass -> Vector3 -> IO () cCMoveRelative a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cCMoveRelative'_ a1' a2' >>= \res -> return () {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetDirection :: HG3DClass -> Float -> Float -> Float -> IO () cCSetDirection a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in cCSetDirection'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetDirection2 :: HG3DClass -> Vector3 -> IO () cCSetDirection2 a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cCSetDirection2'_ a1' a2' >>= \res -> return () {-# LINE 105 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetUp :: HG3DClass -> IO (Vector3) cCGetUp a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetUp'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRight :: HG3DClass -> IO (Vector3) cCGetRight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRight'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCLookAt :: HG3DClass -> Vector3 -> IO () cCLookAt a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> cCLookAt'_ a1' a2' >>= \res -> return () {-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCLookAt2 :: HG3DClass -> Float -> Float -> Float -> IO () cCLookAt2 a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in let {a3' = realToFrac a3} in let {a4' = realToFrac a4} in cCLookAt2'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCRoll :: HG3DClass -> Radians -> IO () cCRoll a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> cCRoll'_ a1' a2' >>= \res -> return () {-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCYaw :: HG3DClass -> Radians -> IO () cCYaw a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> cCYaw'_ a1' a2' >>= \res -> return () {-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCPitch :: HG3DClass -> Radians -> IO () cCPitch a1 a2 = withHG3DClass a1 $ \a1' -> withRadians a2 $ \a2' -> cCPitch'_ a1' a2' >>= \res -> return () {-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCRotate :: HG3DClass -> Vector3 -> Radians -> IO () cCRotate a1 a2 a3 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> withRadians a3 $ \a3' -> cCRotate'_ a1' a2' a3' >>= \res -> return () {-# LINE 140 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCRotate2 :: HG3DClass -> Quaternion -> IO () cCRotate2 a1 a2 = withHG3DClass a1 $ \a1' -> withQuaternion a2 $ \a2' -> cCRotate2'_ a1' a2' >>= \res -> return () {-# LINE 144 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetFixedYawAxis :: HG3DClass -> Bool -> Vector3 -> IO () cCSetFixedYawAxis a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in withVector3 a3 $ \a3' -> cCSetFixedYawAxis'_ a1' a2' a3' >>= \res -> return () {-# LINE 149 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetOrientation :: HG3DClass -> IO (Quaternion) cCGetOrientation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetOrientation'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 153 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetOrientation :: HG3DClass -> Quaternion -> IO () cCSetOrientation a1 a2 = withHG3DClass a1 $ \a1' -> withQuaternion a2 $ \a2' -> cCSetOrientation'_ a1' a2' >>= \res -> return () {-# LINE 157 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCRenderScene :: HG3DClass -> HG3DClass -> Bool -> IO () cCRenderScene a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> let {a3' = fromBool a3} in cCRenderScene'_ a1' a2' a3' >>= \res -> return () {-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCNotifyRenderedFaces :: HG3DClass -> Int -> IO () cCNotifyRenderedFaces a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cCNotifyRenderedFaces'_ a1' a2' >>= \res -> return () {-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCNotifyRenderedBatches :: HG3DClass -> Int -> IO () cCNotifyRenderedBatches a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in cCNotifyRenderedBatches'_ a1' a2' >>= \res -> return () {-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetNumRenderedFaces :: HG3DClass -> IO (Int) cCGetNumRenderedFaces a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetNumRenderedFaces'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 174 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetNumRenderedBatches :: HG3DClass -> IO (Int) cCGetNumRenderedBatches a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetNumRenderedBatches'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 178 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetDerivedOrientation :: HG3DClass -> IO (Quaternion) cCGetDerivedOrientation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetDerivedOrientation'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 182 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetDerivedPosition :: HG3DClass -> IO (Vector3) cCGetDerivedPosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetDerivedPosition'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 186 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetDerivedDirection :: HG3DClass -> IO (Vector3) cCGetDerivedDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetDerivedDirection'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 190 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetDerivedUp :: HG3DClass -> IO (Vector3) cCGetDerivedUp a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetDerivedUp'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 194 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetDerivedRight :: HG3DClass -> IO (Vector3) cCGetDerivedRight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetDerivedRight'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 198 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRealOrientation :: HG3DClass -> IO (Quaternion) cCGetRealOrientation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRealOrientation'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 202 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRealPosition :: HG3DClass -> IO (Vector3) cCGetRealPosition a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRealPosition'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 206 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRealDirection :: HG3DClass -> IO (Vector3) cCGetRealDirection a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRealDirection'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 210 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRealUp :: HG3DClass -> IO (Vector3) cCGetRealUp a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRealUp'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 214 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetRealRight :: HG3DClass -> IO (Vector3) cCGetRealRight a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetRealRight'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 218 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetMovableType :: HG3DClass -> IO (String) cCGetMovableType a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cCGetMovableType'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 222 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetAutoTracking :: HG3DClass -> Bool -> HG3DClass -> Vector3 -> IO () cCSetAutoTracking a1 a2 a3 a4 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in withHG3DClass a3 $ \a3' -> withVector3 a4 $ \a4' -> cCSetAutoTracking'_ a1' a2' a3' a4' >>= \res -> return () {-# LINE 228 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetLodBias :: HG3DClass -> Float -> IO () cCSetLodBias a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = realToFrac a2} in cCSetLodBias'_ a1' a2' >>= \res -> return () {-# LINE 232 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetLodBias :: HG3DClass -> IO (Float) cCGetLodBias a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetLodBias'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 236 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetLodBiasInverse :: HG3DClass -> IO (Float) cCGetLodBiasInverse a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetLodBiasInverse'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 240 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCAutoTrack :: HG3DClass -> IO () cCAutoTrack a1 = withHG3DClass a1 $ \a1' -> cCAutoTrack'_ a1' >>= \res -> return () {-# LINE 243 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCIsWindowSet :: HG3DClass -> IO (Bool) cCIsWindowSet a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCIsWindowSet'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 247 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetBoundingRadius :: HG3DClass -> IO (Float) cCGetBoundingRadius a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetBoundingRadius'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 251 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetAutoTrackTarget :: HG3DClass -> IO (HG3DClass) cCGetAutoTrackTarget a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetAutoTrackTarget'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 255 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetAutoTrackOffset :: HG3DClass -> IO (Vector3) cCGetAutoTrackOffset a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetAutoTrackOffset'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 259 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetViewport :: HG3DClass -> IO (HG3DClass) cCGetViewport a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetViewport'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 263 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCNotifyViewport :: HG3DClass -> HG3DClass -> IO () cCNotifyViewport a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cCNotifyViewport'_ a1' a2' >>= \res -> return () {-# LINE 267 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetAutoAspectRatio :: HG3DClass -> Bool -> IO () cCSetAutoAspectRatio a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCSetAutoAspectRatio'_ a1' a2' >>= \res -> return () {-# LINE 271 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetAutoAspectRatio :: HG3DClass -> IO (Bool) cCGetAutoAspectRatio a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetAutoAspectRatio'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 275 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetCullingFrustum :: HG3DClass -> HG3DClass -> IO () cCSetCullingFrustum a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> cCSetCullingFrustum'_ a1' a2' >>= \res -> return () {-# LINE 279 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetCullingFrustum :: HG3DClass -> IO (HG3DClass) cCGetCullingFrustum a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetCullingFrustum'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 283 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCIsVisible3 :: HG3DClass -> Vector3 -> IO (EnumFrustumPlane, Bool) cCIsVisible3 a1 a2 = withHG3DClass a1 $ \a1' -> withVector3 a2 $ \a2' -> alloca $ \a3' -> alloca $ \a4' -> cCIsVisible3'_ a1' a2' a3' a4' >>= \res -> peekEnumUtil a3'>>= \a3'' -> peekBoolUtil a4'>>= \a4'' -> return (a3'', a4'') {-# LINE 289 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetNearClipDistance :: HG3DClass -> IO (Float) cCGetNearClipDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetNearClipDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 293 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetFarClipDistance :: HG3DClass -> IO (Float) cCGetFarClipDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetFarClipDistance'_ a1' a2' >>= \res -> peekFloatConv a2'>>= \a2'' -> return (a2'') {-# LINE 297 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCSetUseRenderingDistance :: HG3DClass -> Bool -> IO () cCSetUseRenderingDistance a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cCSetUseRenderingDistance'_ a1' a2' >>= \res -> return () {-# LINE 301 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetUseRenderingDistance :: HG3DClass -> IO (Bool) cCGetUseRenderingDistance a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetUseRenderingDistance'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 305 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetPositionForViewUpdate :: HG3DClass -> IO (Vector3) cCGetPositionForViewUpdate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetPositionForViewUpdate'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 309 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; cCGetOrientationForViewUpdate :: HG3DClass -> IO (Quaternion) cCGetOrientationForViewUpdate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cCGetOrientationForViewUpdate'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 313 "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getSceneManager_c" cCGetSceneManager'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPolygonMode_c" cCSetPolygonMode'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPolygonMode_c" cCGetPolygonMode'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPosition_c" cCSetPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setPosition2_c" cCSetPosition2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPosition_c" cCGetPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_move_c" cCMove'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_moveRelative_c" cCMoveRelative'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setDirection_c" cCSetDirection'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setDirection2_c" cCSetDirection2'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getUp_c" cCGetUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRight_c" cCGetRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_lookAt_c" cCLookAt'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_lookAt2_c" cCLookAt2'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_roll_c" cCRoll'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_yaw_c" cCYaw'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_pitch_c" cCPitch'_ :: ((HG3DClassPtr) -> ((RadiansPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_rotate_c" cCRotate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((RadiansPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_rotate2_c" cCRotate2'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setFixedYawAxis_c" cCSetFixedYawAxis'_ :: ((HG3DClassPtr) -> (CInt -> ((Vector3Ptr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getOrientation_c" cCGetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setOrientation_c" cCSetOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__renderScene_c" cCRenderScene'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyRenderedFaces_c" cCNotifyRenderedFaces'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyRenderedBatches_c" cCNotifyRenderedBatches'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getNumRenderedFaces_c" cCGetNumRenderedFaces'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getNumRenderedBatches_c" cCGetNumRenderedBatches'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedOrientation_c" cCGetDerivedOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedPosition_c" cCGetDerivedPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedDirection_c" cCGetDerivedDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedUp_c" cCGetDerivedUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getDerivedRight_c" cCGetDerivedRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealOrientation_c" cCGetRealOrientation'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealPosition_c" cCGetRealPosition'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealDirection_c" cCGetRealDirection'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealUp_c" cCGetRealUp'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getRealRight_c" cCGetRealRight'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getMovableType_c" cCGetMovableType'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setAutoTracking_c" cCSetAutoTracking'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setLodBias_c" cCSetLodBias'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getLodBias_c" cCGetLodBias'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__getLodBiasInverse_c" cCGetLodBiasInverse'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__autoTrack_c" cCAutoTrack'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_isWindowSet_c" cCIsWindowSet'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getBoundingRadius_c" cCGetBoundingRadius'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoTrackTarget_c" cCGetAutoTrackTarget'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoTrackOffset_c" cCGetAutoTrackOffset'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getViewport_c" cCGetViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC__notifyViewport_c" cCNotifyViewport'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setAutoAspectRatio_c" cCSetAutoAspectRatio'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getAutoAspectRatio_c" cCGetAutoAspectRatio'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setCullingFrustum_c" cCSetCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getCullingFrustum_c" cCGetCullingFrustum'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_isVisible3_c" cCIsVisible3'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getNearClipDistance_c" cCGetNearClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getFarClipDistance_c" cCGetFarClipDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_setUseRenderingDistance_c" cCSetUseRenderingDistance'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getUseRenderingDistance_c" cCGetUseRenderingDistance'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getPositionForViewUpdate_c" cCGetPositionForViewUpdate'_ :: ((HG3DClassPtr) -> ((Vector3Ptr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassCamera.chs.h cC_getOrientationForViewUpdate_c" cCGetOrientationForViewUpdate'_ :: ((HG3DClassPtr) -> ((QuaternionPtr) -> (IO ())))