packages feed

HGamer3D-Ogre-Binding-0.1.5: HGamer3D/Bindings/Ogre/ClassTextureManager.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\\ClassTextureManager.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
-- 
-- (c) 2011 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.
-- 
-- ClassTextureManager.chs
-- 
-- 
-- 
-- 
-- File for type, method, enum or function stubs  
-- in: "Dep-OgreSDK/include/OGRE\OgreTextureManager.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.ClassTextureManager 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\\ClassTextureManager.chs" #-}
import HGamer3D.Bindings.Ogre.ClassPtr
{-# LINE 53 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
import HGamer3D.Bindings.Ogre.Utils
{-# LINE 54 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
import HGamer3D.Bindings.Ogre.TypeSharedPtr
{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumTextureType
{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumPixelFormat
{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}


cTmPrepare :: HG3DClass -> String -> String -> EnumTextureType -> Int -> Float -> Bool -> EnumPixelFormat -> Bool -> IO (SharedPtr)
cTmPrepare a1 a2 a3 a4 a5 a6 a7 a8 a9 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  let {a4' = cIntFromEnum a4} in 
  let {a5' = fromIntegral a5} in 
  let {a6' = realToFrac a6} in 
  let {a7' = fromBool a7} in 
  let {a8' = cIntFromEnum a8} in 
  let {a9' = fromBool a9} in 
  alloca $ \a10' -> 
  cTmPrepare'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' >>= \res ->
  peek  a10'>>= \a10'' -> 
  return (a10'')
{-# LINE 71 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmLoad :: HG3DClass -> String -> String -> EnumTextureType -> Int -> Float -> Bool -> EnumPixelFormat -> Bool -> IO (SharedPtr)
cTmLoad a1 a2 a3 a4 a5 a6 a7 a8 a9 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  let {a4' = cIntFromEnum a4} in 
  let {a5' = fromIntegral a5} in 
  let {a6' = realToFrac a6} in 
  let {a7' = fromBool a7} in 
  let {a8' = cIntFromEnum a8} in 
  let {a9' = fromBool a9} in 
  alloca $ \a10' -> 
  cTmLoad'_ a1' a2' a3' a4' a5' a6' a7' a8' a9' a10' >>= \res ->
  peek  a10'>>= \a10'' -> 
  return (a10'')
{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmIsFormatSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (Bool)
cTmIsFormatSupported a1 a2 a3 a4 =
  withHG3DClass a1 $ \a1' -> 
  let {a2' = cIntFromEnum a2} in 
  let {a3' = cIntFromEnum a3} in 
  let {a4' = fromIntegral a4} in 
  alloca $ \a5' -> 
  cTmIsFormatSupported'_ a1' a2' a3' a4' a5' >>= \res ->
  peekBoolUtil  a5'>>= \a5'' -> 
  return (a5'')
{-# LINE 90 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmIsEquivalentFormatSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (Bool)
cTmIsEquivalentFormatSupported a1 a2 a3 a4 =
  withHG3DClass a1 $ \a1' -> 
  let {a2' = cIntFromEnum a2} in 
  let {a3' = cIntFromEnum a3} in 
  let {a4' = fromIntegral a4} in 
  alloca $ \a5' -> 
  cTmIsEquivalentFormatSupported'_ a1' a2' a3' a4' a5' >>= \res ->
  peekBoolUtil  a5'>>= \a5'' -> 
  return (a5'')
{-# LINE 97 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmGetNativeFormat :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> IO (EnumPixelFormat)
cTmGetNativeFormat a1 a2 a3 a4 =
  withHG3DClass a1 $ \a1' -> 
  let {a2' = cIntFromEnum a2} in 
  let {a3' = cIntFromEnum a3} in 
  let {a4' = fromIntegral a4} in 
  alloca $ \a5' -> 
  cTmGetNativeFormat'_ a1' a2' a3' a4' a5' >>= \res ->
  peekEnumUtil  a5'>>= \a5'' -> 
  return (a5'')
{-# LINE 104 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmIsHardwareFilteringSupported :: HG3DClass -> EnumTextureType -> EnumPixelFormat -> Int -> Bool -> IO (Bool)
cTmIsHardwareFilteringSupported a1 a2 a3 a4 a5 =
  withHG3DClass a1 $ \a1' -> 
  let {a2' = cIntFromEnum a2} in 
  let {a3' = cIntFromEnum a3} in 
  let {a4' = fromIntegral a4} in 
  let {a5' = fromBool a5} in 
  alloca $ \a6' -> 
  cTmIsHardwareFilteringSupported'_ a1' a2' a3' a4' a5' a6' >>= \res ->
  peekBoolUtil  a6'>>= \a6'' -> 
  return (a6'')
{-# LINE 112 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmSetDefaultNumMipmaps :: HG3DClass -> Int -> IO ()
cTmSetDefaultNumMipmaps a1 a2 =
  withHG3DClass a1 $ \a1' -> 
  let {a2' = fromIntegral a2} in 
  cTmSetDefaultNumMipmaps'_ a1' a2' >>= \res ->
  return ()
{-# LINE 116 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
cTmGetDefaultNumMipmaps :: HG3DClass -> IO (Int)
cTmGetDefaultNumMipmaps a1 =
  withHG3DClass a1 $ \a1' -> 
  alloca $ \a2' -> 
  cTmGetDefaultNumMipmaps'_ a1' a2' >>= \res ->
  peekIntConv  a2'>>= \a2'' -> 
  return (a2'')
{-# LINE 120 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;
-- created constructor function from default constructor
cTmGetSingletonPtr :: IO (HG3DClass)
cTmGetSingletonPtr =
  alloca $ \a1' -> 
  cTmGetSingletonPtr'_ a1' >>= \res ->
  peek  a1'>>= \a1'' -> 
  return (a1'')
{-# LINE 124 "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs" #-}
;

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_prepare_c"
  cTmPrepare'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (CInt -> (CFloat -> (CInt -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ())))))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_load_c"
  cTmLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (CInt -> (CFloat -> (CInt -> (CInt -> (CInt -> ((SharedPtrPtr) -> (IO ())))))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isFormatSupported_c"
  cTmIsFormatSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ()))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isEquivalentFormatSupported_c"
  cTmIsEquivalentFormatSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ()))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getNativeFormat_c"
  cTmGetNativeFormat'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ()))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_isHardwareFilteringSupported_c"
  cTmIsHardwareFilteringSupported'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (CInt -> (CInt -> ((Ptr CInt) -> (IO ())))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_setDefaultNumMipmaps_c"
  cTmSetDefaultNumMipmaps'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getDefaultNumMipmaps_c"
  cTmGetDefaultNumMipmaps'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassTextureManager.chs.h cTm_getSingletonPtr_c"
  cTmGetSingletonPtr'_ :: ((HG3DClassPtr) -> (IO ()))