packages feed

HGamer3D-Ogre-Binding-0.1.3: HGamer3D/Bindings/Ogre/ClassGpuProgramManager.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\\ClassGpuProgramManager.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.
-- 
-- ClassGpuProgramManager.chs
-- 
-- 
-- 
-- 
-- File for type, method, enum or function stubs  
-- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreGpuProgramManager.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.ClassGpuProgramManager 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\\ClassGpuProgramManager.chs" #-}
import HGamer3D.Bindings.Ogre.ClassPtr
{-# LINE 55 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
import HGamer3D.Bindings.Ogre.Utils
{-# LINE 56 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
import HGamer3D.Bindings.Ogre.TypeSharedPtr
{-# LINE 57 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
import HGamer3D.Bindings.Ogre.EnumGpuProgramType
{-# LINE 58 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}


cGpmLoad :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr)
cGpmLoad a1 a2 a3 a4 a5 a6 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  withCString a4 $ \a4' -> 
  let {a5' = cIntFromEnum a5} in 
  withCString a6 $ \a6' -> 
  alloca $ \a7' -> 
  cGpmLoad'_ a1' a2' a3' a4' a5' a6' a7' >>= \res ->
  peek  a7'>>= \a7'' -> 
  return (a7'')
{-# LINE 69 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;
cGpmLoadFromString :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr)
cGpmLoadFromString a1 a2 a3 a4 a5 a6 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  withCString a4 $ \a4' -> 
  let {a5' = cIntFromEnum a5} in 
  withCString a6 $ \a6' -> 
  alloca $ \a7' -> 
  cGpmLoadFromString'_ a1' a2' a3' a4' a5' a6' a7' >>= \res ->
  peek  a7'>>= \a7'' -> 
  return (a7'')
{-# LINE 78 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;
cGpmIsSyntaxSupported :: HG3DClass -> String -> IO (Bool)
cGpmIsSyntaxSupported a1 a2 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  alloca $ \a3' -> 
  cGpmIsSyntaxSupported'_ a1' a2' a3' >>= \res ->
  peekBoolUtil  a3'>>= \a3'' -> 
  return (a3'')
{-# LINE 83 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;
cGpmCreateProgram :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr)
cGpmCreateProgram a1 a2 a3 a4 a5 a6 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  withCString a4 $ \a4' -> 
  let {a5' = cIntFromEnum a5} in 
  withCString a6 $ \a6' -> 
  alloca $ \a7' -> 
  cGpmCreateProgram'_ a1' a2' a3' a4' a5' a6' a7' >>= \res ->
  peek  a7'>>= \a7'' -> 
  return (a7'')
{-# LINE 92 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;
cGpmCreateProgramFromString :: HG3DClass -> String -> String -> String -> EnumGpuProgramType -> String -> IO (SharedPtr)
cGpmCreateProgramFromString a1 a2 a3 a4 a5 a6 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  withCString a3 $ \a3' -> 
  withCString a4 $ \a4' -> 
  let {a5' = cIntFromEnum a5} in 
  withCString a6 $ \a6' -> 
  alloca $ \a7' -> 
  cGpmCreateProgramFromString'_ a1' a2' a3' a4' a5' a6' a7' >>= \res ->
  peek  a7'>>= \a7'' -> 
  return (a7'')
{-# LINE 101 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;
cGpmGetByName :: HG3DClass -> String -> Bool -> IO (SharedPtr)
cGpmGetByName a1 a2 a3 =
  withHG3DClass a1 $ \a1' -> 
  withCString a2 $ \a2' -> 
  let {a3' = fromBool a3} in 
  alloca $ \a4' -> 
  cGpmGetByName'_ a1' a2' a3' a4' >>= \res ->
  peek  a4'>>= \a4'' -> 
  return (a4'')
{-# LINE 107 "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs" #-}
;

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_load_c"
  cGpmLoad'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_loadFromString_c"
  cGpmLoadFromString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_isSyntaxSupported_c"
  cGpmIsSyntaxSupported'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_createProgram_c"
  cGpmCreateProgram'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_createProgramFromString_c"
  cGpmCreateProgramFromString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> ((SharedPtrPtr) -> (IO ()))))))))

foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassGpuProgramManager.chs.h cGpm_getByName_c"
  cGpmGetByName'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> ((SharedPtrPtr) -> (IO ())))))