-- 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\\ClassSubEntity.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. -- -- ClassSubEntity.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreSubEntity.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.ClassSubEntity 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\\ClassSubEntity.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} cSeGetMaterialName :: HG3DClass -> IO (String) cSeGetMaterialName a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cSeGetMaterialName'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 62 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeSetMaterialName :: HG3DClass -> String -> String -> IO () cSeSetMaterialName a1 a2 a3 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> withCString a3 $ \a3' -> cSeSetMaterialName'_ a1' a2' a3' >>= \res -> return () {-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeSetVisible :: HG3DClass -> Bool -> IO () cSeSetVisible a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSeSetVisible'_ a1' a2' >>= \res -> return () {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeIsVisible :: HG3DClass -> IO (Bool) cSeIsVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeIsVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetSubMesh :: HG3DClass -> IO (HG3DClass) cSeGetSubMesh a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetSubMesh'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetParent :: HG3DClass -> IO (HG3DClass) cSeGetParent a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetParent'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetTechnique :: HG3DClass -> IO (HG3DClass) cSeGetTechnique a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetTechnique'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetNumWorldTransforms :: HG3DClass -> IO (Int) cSeGetNumWorldTransforms a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetNumWorldTransforms'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetCastsShadows :: HG3DClass -> IO (Bool) cSeGetCastsShadows a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetCastsShadows'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetSkelAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) cSeGetSkelAnimTempBufferInfo a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetSkelAnimTempBufferInfo'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetVertexAnimTempBufferInfo :: HG3DClass -> IO (HG3DClass) cSeGetVertexAnimTempBufferInfo a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetVertexAnimTempBufferInfo'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeMarkBuffersUnusedForAnimation :: HG3DClass -> IO () cSeMarkBuffersUnusedForAnimation a1 = withHG3DClass a1 $ \a1' -> cSeMarkBuffersUnusedForAnimation'_ a1' >>= \res -> return () {-# LINE 106 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeMarkBuffersUsedForAnimation :: HG3DClass -> IO () cSeMarkBuffersUsedForAnimation a1 = withHG3DClass a1 $ \a1' -> cSeMarkBuffersUsedForAnimation'_ a1' >>= \res -> return () {-# LINE 109 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeGetBuffersMarkedForAnimation :: HG3DClass -> IO (Bool) cSeGetBuffersMarkedForAnimation a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cSeGetBuffersMarkedForAnimation'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 113 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; cSeRestoreBuffersForUnusedAnimation :: HG3DClass -> Bool -> IO () cSeRestoreBuffersForUnusedAnimation a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cSeRestoreBuffersForUnusedAnimation'_ a1' a2' >>= \res -> return () {-# LINE 117 "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getMaterialName_c" cSeGetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_setMaterialName_c" cSeSetMaterialName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_setVisible_c" cSeSetVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_isVisible_c" cSeIsVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getSubMesh_c" cSeGetSubMesh'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getParent_c" cSeGetParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getTechnique_c" cSeGetTechnique'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getNumWorldTransforms_c" cSeGetNumWorldTransforms'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe_getCastsShadows_c" cSeGetCastsShadows'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getSkelAnimTempBufferInfo_c" cSeGetSkelAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getVertexAnimTempBufferInfo_c" cSeGetVertexAnimTempBufferInfo'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__markBuffersUnusedForAnimation_c" cSeMarkBuffersUnusedForAnimation'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__markBuffersUsedForAnimation_c" cSeMarkBuffersUsedForAnimation'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__getBuffersMarkedForAnimation_c" cSeGetBuffersMarkedForAnimation'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassSubEntity.chs.h cSe__restoreBuffersForUnusedAnimation_c" cSeRestoreBuffersForUnusedAnimation'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))