-- 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\\ClassGpuProgram.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. -- -- ClassGpuProgram.chs -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-3\include\OGRE\OgreGpuProgram.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.ClassGpuProgram 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\\ClassGpuProgram.chs" #-} import HGamer3D.Bindings.Ogre.ClassPtr {-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} import HGamer3D.Bindings.Ogre.Utils {-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} import HGamer3D.Bindings.Ogre.EnumGpuProgramType {-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} cGpSetSourceFile :: HG3DClass -> String -> IO () cGpSetSourceFile a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cGpSetSourceFile'_ a1' a2' >>= \res -> return () {-# LINE 63 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetSource :: HG3DClass -> String -> IO () cGpSetSource a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cGpSetSource'_ a1' a2' >>= \res -> return () {-# LINE 67 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetSyntaxCode :: HG3DClass -> IO (String) cGpGetSyntaxCode a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cGpGetSyntaxCode'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetSyntaxCode :: HG3DClass -> String -> IO () cGpSetSyntaxCode a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cGpSetSyntaxCode'_ a1' a2' >>= \res -> return () {-# LINE 75 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetSourceFile :: HG3DClass -> IO (String) cGpGetSourceFile a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cGpGetSourceFile'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetSource :: HG3DClass -> IO (String) cGpGetSource a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cGpGetSource'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetType :: HG3DClass -> EnumGpuProgramType -> IO () cGpSetType a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = cIntFromEnum a2} in cGpSetType'_ a1' a2' >>= \res -> return () {-# LINE 87 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetType :: HG3DClass -> IO (EnumGpuProgramType) cGpGetType a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpGetType'_ a1' a2' >>= \res -> peekEnumUtil a2'>>= \a2'' -> return (a2'') {-# LINE 91 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetBindingDelegate :: HG3DClass -> IO (HG3DClass) cGpGetBindingDelegate a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpGetBindingDelegate'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 95 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsSupported :: HG3DClass -> IO (Bool) cGpIsSupported a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsSupported'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 99 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetSkeletalAnimationIncluded :: HG3DClass -> Bool -> IO () cGpSetSkeletalAnimationIncluded a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cGpSetSkeletalAnimationIncluded'_ a1' a2' >>= \res -> return () {-# LINE 103 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsSkeletalAnimationIncluded :: HG3DClass -> IO (Bool) cGpIsSkeletalAnimationIncluded a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsSkeletalAnimationIncluded'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetMorphAnimationIncluded :: HG3DClass -> Bool -> IO () cGpSetMorphAnimationIncluded a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cGpSetMorphAnimationIncluded'_ a1' a2' >>= \res -> return () {-# LINE 111 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsMorphAnimationIncluded :: HG3DClass -> IO (Bool) cGpIsMorphAnimationIncluded a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsMorphAnimationIncluded'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 115 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsPoseAnimationIncluded :: HG3DClass -> IO (Bool) cGpIsPoseAnimationIncluded a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsPoseAnimationIncluded'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 119 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetVertexTextureFetchRequired :: HG3DClass -> Bool -> IO () cGpSetVertexTextureFetchRequired a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cGpSetVertexTextureFetchRequired'_ a1' a2' >>= \res -> return () {-# LINE 123 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsVertexTextureFetchRequired :: HG3DClass -> IO (Bool) cGpIsVertexTextureFetchRequired a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsVertexTextureFetchRequired'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 127 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetAdjacencyInfoRequired :: HG3DClass -> Bool -> IO () cGpSetAdjacencyInfoRequired a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in cGpSetAdjacencyInfoRequired'_ a1' a2' >>= \res -> return () {-# LINE 131 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpIsAdjacencyInfoRequired :: HG3DClass -> IO (Bool) cGpIsAdjacencyInfoRequired a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpIsAdjacencyInfoRequired'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 135 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpHasDefaultParameters :: HG3DClass -> IO (Bool) cGpHasDefaultParameters a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpHasDefaultParameters'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 139 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetPassSurfaceAndLightStates :: HG3DClass -> IO (Bool) cGpGetPassSurfaceAndLightStates a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpGetPassSurfaceAndLightStates'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 143 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetPassFogStates :: HG3DClass -> IO (Bool) cGpGetPassFogStates a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpGetPassFogStates'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 147 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetPassTransformStates :: HG3DClass -> IO (Bool) cGpGetPassTransformStates a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpGetPassTransformStates'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 151 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetLanguage :: HG3DClass -> IO (String) cGpGetLanguage a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cGpGetLanguage'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 155 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpHasCompileError :: HG3DClass -> IO (Bool) cGpHasCompileError a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> cGpHasCompileError'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 159 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpResetCompileError :: HG3DClass -> IO () cGpResetCompileError a1 = withHG3DClass a1 $ \a1' -> cGpResetCompileError'_ a1' >>= \res -> return () {-# LINE 162 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpSetManualNamedConstantsFile :: HG3DClass -> String -> IO () cGpSetManualNamedConstantsFile a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> cGpSetManualNamedConstantsFile'_ a1' a2' >>= \res -> return () {-# LINE 166 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; cGpGetManualNamedConstantsFile :: HG3DClass -> IO (String) cGpGetManualNamedConstantsFile a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> cGpGetManualNamedConstantsFile'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 170 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs" #-} ; foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSourceFile_c" cGpSetSourceFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSource_c" cGpSetSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSyntaxCode_c" cGpGetSyntaxCode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSyntaxCode_c" cGpSetSyntaxCode'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSourceFile_c" cGpGetSourceFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getSource_c" cGpGetSource'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setType_c" cGpSetType'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getType_c" cGpGetType'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp__getBindingDelegate_c" cGpGetBindingDelegate'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isSupported_c" cGpIsSupported'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setSkeletalAnimationIncluded_c" cGpSetSkeletalAnimationIncluded'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isSkeletalAnimationIncluded_c" cGpIsSkeletalAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setMorphAnimationIncluded_c" cGpSetMorphAnimationIncluded'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isMorphAnimationIncluded_c" cGpIsMorphAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isPoseAnimationIncluded_c" cGpIsPoseAnimationIncluded'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setVertexTextureFetchRequired_c" cGpSetVertexTextureFetchRequired'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isVertexTextureFetchRequired_c" cGpIsVertexTextureFetchRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setAdjacencyInfoRequired_c" cGpSetAdjacencyInfoRequired'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_isAdjacencyInfoRequired_c" cGpIsAdjacencyInfoRequired'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_hasDefaultParameters_c" cGpHasDefaultParameters'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassSurfaceAndLightStates_c" cGpGetPassSurfaceAndLightStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassFogStates_c" cGpGetPassFogStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getPassTransformStates_c" cGpGetPassTransformStates'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getLanguage_c" cGpGetLanguage'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_hasCompileError_c" cGpHasCompileError'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_resetCompileError_c" cGpResetCompileError'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_setManualNamedConstantsFile_c" cGpSetManualNamedConstantsFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgram.chs.h cGp_getManualNamedConstantsFile_c" cGpGetManualNamedConstantsFile'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))