HGamer3D-Ogre-Binding-0.1.3: HGamer3D/Bindings/Ogre/ClassMaterialManager.hs
-- 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\\ClassMaterialManager.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.
--
-- ClassMaterialManager.chs
--
--
--
--
-- File for type, method, enum or function stubs
-- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreMaterialManager.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.ClassMaterialManager 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\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.ClassPtr
{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.Utils
{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.TypeSharedPtr
{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumTextureFilterOptions
{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumFilterType
{-# LINE 59 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumFilterOptions
{-# LINE 60 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
cMtmInitialise :: HG3DClass -> IO ()
cMtmInitialise a1 =
withHG3DClass a1 $ \a1' ->
cMtmInitialise'_ a1' >>= \res ->
return ()
{-# LINE 65 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmParseScript :: HG3DClass -> String -> IO (SharedPtr)
cMtmParseScript a1 a3 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
withCString a3 $ \a3' ->
cMtmParseScript'_ a1' a2' a3' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
{-# LINE 70 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmSetDefaultTextureFiltering :: HG3DClass -> EnumTextureFilterOptions -> IO ()
cMtmSetDefaultTextureFiltering a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = cIntFromEnum a2} in
cMtmSetDefaultTextureFiltering'_ a1' a2' >>= \res ->
return ()
{-# LINE 74 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmSetDefaultTextureFiltering2 :: HG3DClass -> EnumFilterType -> EnumFilterOptions -> IO ()
cMtmSetDefaultTextureFiltering2 a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
let {a2' = cIntFromEnum a2} in
let {a3' = cIntFromEnum a3} in
cMtmSetDefaultTextureFiltering2'_ a1' a2' a3' >>= \res ->
return ()
{-# LINE 79 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmSetDefaultTextureFiltering3 :: HG3DClass -> EnumFilterOptions -> EnumFilterOptions -> EnumFilterOptions -> IO ()
cMtmSetDefaultTextureFiltering3 a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
let {a2' = cIntFromEnum a2} in
let {a3' = cIntFromEnum a3} in
let {a4' = cIntFromEnum a4} in
cMtmSetDefaultTextureFiltering3'_ a1' a2' a3' a4' >>= \res ->
return ()
{-# LINE 85 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetDefaultTextureFiltering :: HG3DClass -> EnumFilterType -> IO (EnumFilterOptions)
cMtmGetDefaultTextureFiltering a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = cIntFromEnum a2} in
alloca $ \a3' ->
cMtmGetDefaultTextureFiltering'_ a1' a2' a3' >>= \res ->
peekEnumUtil a3'>>= \a3'' ->
return (a3'')
{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmSetDefaultAnisotropy :: HG3DClass -> Int -> IO ()
cMtmSetDefaultAnisotropy a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
cMtmSetDefaultAnisotropy'_ a1' a2' >>= \res ->
return ()
{-# LINE 94 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetDefaultAnisotropy :: HG3DClass -> IO (Int)
cMtmGetDefaultAnisotropy a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
cMtmGetDefaultAnisotropy'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
{-# LINE 98 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetDefaultSettings :: HG3DClass -> IO (SharedPtr)
cMtmGetDefaultSettings a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
cMtmGetDefaultSettings'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
{-# LINE 102 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetSchemeIndex :: HG3DClass -> String -> IO (Int)
cMtmGetSchemeIndex a1 a2 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
alloca $ \a3' ->
cMtmGetSchemeIndex'_ a1' a2' a3' >>= \res ->
peekIntConv a3'>>= \a3'' ->
return (a3'')
{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetSchemeName :: HG3DClass -> Int -> IO (String)
cMtmGetSchemeName a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
alloc64k $ \a3' ->
cMtmGetSchemeName'_ a1' a2' a3' >>= \res ->
peekCString a3'>>= \a3'' ->
return (a3'')
{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetActiveSchemeIndex :: HG3DClass -> IO (Int)
cMtmGetActiveSchemeIndex a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
cMtmGetActiveSchemeIndex'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmGetActiveScheme :: HG3DClass -> IO (String)
cMtmGetActiveScheme a1 =
withHG3DClass a1 $ \a1' ->
alloc64k $ \a2' ->
cMtmGetActiveScheme'_ a1' a2' >>= \res ->
peekCString a2'>>= \a2'' ->
return (a2'')
{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
cMtmSetActiveScheme :: HG3DClass -> String -> IO ()
cMtmSetActiveScheme a1 a2 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
cMtmSetActiveScheme'_ a1' a2' >>= \res ->
return ()
{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs" #-}
;
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_initialise_c"
cMtmInitialise'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_parseScript_c"
cMtmParseScript'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering_c"
cMtmSetDefaultTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering2_c"
cMtmSetDefaultTextureFiltering2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultTextureFiltering3_c"
cMtmSetDefaultTextureFiltering3'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getDefaultTextureFiltering_c"
cMtmGetDefaultTextureFiltering'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setDefaultAnisotropy_c"
cMtmSetDefaultAnisotropy'_ :: ((HG3DClassPtr) -> (CUInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getDefaultAnisotropy_c"
cMtmGetDefaultAnisotropy'_ :: ((HG3DClassPtr) -> ((Ptr CUInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getDefaultSettings_c"
cMtmGetDefaultSettings'_ :: ((HG3DClassPtr) -> ((SharedPtrPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeIndex_c"
cMtmGetSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CUShort) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getSchemeName_c"
cMtmGetSchemeName'_ :: ((HG3DClassPtr) -> (CUShort -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm__getActiveSchemeIndex_c"
cMtmGetActiveSchemeIndex'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_getActiveScheme_c"
cMtmGetActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassMaterialManager.chs.h cMtm_setActiveScheme_c"
cMtmSetActiveScheme'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))