packages feed

HGamer3D-Ogre-Binding-0.1.3: HGamer3D/Bindings/Ogre/EnumPixelFormat.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\\EnumPixelFormat.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.
-- 
-- EnumPixelFormat.h
-- 
-- 
-- 
-- 
-- File for type, method, enum or function stubs  
-- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgrePixelFormat.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.EnumPixelFormat where

import C2HS
import Foreign
import Foreign.Ptr
import Foreign.C
import Monad         (liftM, liftM2)




{- enum from ..\OgreSDK_vc10_v1-7-4\include\OGRE\OgrePixelFormat.h line:42 -}
data EnumPixelFormat = PfUnknown
                     | PfL8
                     | PfByteL
                     | PfL16
                     | PfShortL
                     | PfA8
                     | PfByteA
                     | PfA4l4
                     | PfByteLa
                     | PfR5g6b5
                     | PfB5g6r5
                     | PfR3g3b2
                     | PfA4r4g4b4
                     | PfA1r5g5b5
                     | PfR8g8b8
                     | PfB8g8r8
                     | PfA8r8g8b8
                     | PfA8b8g8r8
                     | PfB8g8r8a8
                     | PfR8g8b8a8
                     | PfX8r8g8b8
                     | PfX8b8g8r8
                     | PfByteRgb
                     | PfByteBgr
                     | PfByteBgra
                     | PfByteRgba
                     | PfA2r10g10b10
                     | PfA2b10g10r10
                     | PfDxt1
                     | PfDxt2
                     | PfDxt3
                     | PfDxt4
                     | PfDxt5
                     | PfFloat16R
                     | PfFloat16Rgb
                     | PfFloat16Rgba
                     | PfFloat32R
                     | PfFloat32Rgb
                     | PfFloat32Rgba
                     | PfFloat16Gr
                     | PfFloat32Gr
                     | PfDepth
                     | PfShortRgba
                     | PfShortGr
                     | PfShortRgb
                     | PfPvrtcRgb2
                     | PfPvrtcRgba2
                     | PfPvrtcRgb4
                     | PfPvrtcRgba4
                     | PfCount
                     deriving (Eq)
instance Enum EnumPixelFormat where
  fromEnum PfUnknown = 0
  fromEnum PfL8 = 1
  fromEnum PfByteL = 1
  fromEnum PfL16 = 2
  fromEnum PfShortL = 2
  fromEnum PfA8 = 3
  fromEnum PfByteA = 3
  fromEnum PfA4l4 = 4
  fromEnum PfByteLa = 5
  fromEnum PfR5g6b5 = 6
  fromEnum PfB5g6r5 = 7
  fromEnum PfR3g3b2 = 31
  fromEnum PfA4r4g4b4 = 8
  fromEnum PfA1r5g5b5 = 9
  fromEnum PfR8g8b8 = 10
  fromEnum PfB8g8r8 = 11
  fromEnum PfA8r8g8b8 = 12
  fromEnum PfA8b8g8r8 = 13
  fromEnum PfB8g8r8a8 = 14
  fromEnum PfR8g8b8a8 = 28
  fromEnum PfX8r8g8b8 = 26
  fromEnum PfX8b8g8r8 = 27
  fromEnum PfByteRgb = 10
  fromEnum PfByteBgr = 11
  fromEnum PfByteBgra = 14
  fromEnum PfByteRgba = 28
  fromEnum PfA2r10g10b10 = 15
  fromEnum PfA2b10g10r10 = 16
  fromEnum PfDxt1 = 17
  fromEnum PfDxt2 = 18
  fromEnum PfDxt3 = 19
  fromEnum PfDxt4 = 20
  fromEnum PfDxt5 = 21
  fromEnum PfFloat16R = 32
  fromEnum PfFloat16Rgb = 22
  fromEnum PfFloat16Rgba = 23
  fromEnum PfFloat32R = 33
  fromEnum PfFloat32Rgb = 24
  fromEnum PfFloat32Rgba = 25
  fromEnum PfFloat16Gr = 35
  fromEnum PfFloat32Gr = 36
  fromEnum PfDepth = 29
  fromEnum PfShortRgba = 30
  fromEnum PfShortGr = 34
  fromEnum PfShortRgb = 37
  fromEnum PfPvrtcRgb2 = 38
  fromEnum PfPvrtcRgba2 = 39
  fromEnum PfPvrtcRgb4 = 40
  fromEnum PfPvrtcRgba4 = 41
  fromEnum PfCount = 42

  toEnum 0 = PfUnknown
  toEnum 1 = PfL8
  toEnum 1 = PfByteL
  toEnum 2 = PfL16
  toEnum 2 = PfShortL
  toEnum 3 = PfA8
  toEnum 3 = PfByteA
  toEnum 4 = PfA4l4
  toEnum 5 = PfByteLa
  toEnum 6 = PfR5g6b5
  toEnum 7 = PfB5g6r5
  toEnum 31 = PfR3g3b2
  toEnum 8 = PfA4r4g4b4
  toEnum 9 = PfA1r5g5b5
  toEnum 10 = PfR8g8b8
  toEnum 11 = PfB8g8r8
  toEnum 12 = PfA8r8g8b8
  toEnum 13 = PfA8b8g8r8
  toEnum 14 = PfB8g8r8a8
  toEnum 28 = PfR8g8b8a8
  toEnum 26 = PfX8r8g8b8
  toEnum 27 = PfX8b8g8r8
  toEnum 10 = PfByteRgb
  toEnum 11 = PfByteBgr
  toEnum 14 = PfByteBgra
  toEnum 28 = PfByteRgba
  toEnum 15 = PfA2r10g10b10
  toEnum 16 = PfA2b10g10r10
  toEnum 17 = PfDxt1
  toEnum 18 = PfDxt2
  toEnum 19 = PfDxt3
  toEnum 20 = PfDxt4
  toEnum 21 = PfDxt5
  toEnum 32 = PfFloat16R
  toEnum 22 = PfFloat16Rgb
  toEnum 23 = PfFloat16Rgba
  toEnum 33 = PfFloat32R
  toEnum 24 = PfFloat32Rgb
  toEnum 25 = PfFloat32Rgba
  toEnum 35 = PfFloat16Gr
  toEnum 36 = PfFloat32Gr
  toEnum 29 = PfDepth
  toEnum 30 = PfShortRgba
  toEnum 34 = PfShortGr
  toEnum 37 = PfShortRgb
  toEnum 38 = PfPvrtcRgb2
  toEnum 39 = PfPvrtcRgba2
  toEnum 40 = PfPvrtcRgb4
  toEnum 41 = PfPvrtcRgba4
  toEnum 42 = PfCount
  toEnum unmatched = error ("EnumPixelFormat.toEnum: Cannot match " ++ show unmatched)