-- 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\\EnumGpuConstantType.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. -- -- EnumGpuConstantType.h -- -- -- -- -- File for type, method, enum or function stubs -- in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreGpuProgramParams.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.EnumGpuConstantType where import C2HS import Foreign import Foreign.Ptr import Foreign.C import Monad (liftM, liftM2) {- enum from ..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreGpuProgramParams.h line:52 -} data EnumGpuConstantType = GctFloat1 | GctFloat2 | GctFloat3 | GctFloat4 | GctSampler1d | GctSampler2d | GctSampler3d | GctSamplercube | GctSampler1dshadow | GctSampler2dshadow | GctMatrix2x2 | GctMatrix2x3 | GctMatrix2x4 | GctMatrix3x2 | GctMatrix3x3 | GctMatrix3x4 | GctMatrix4x2 | GctMatrix4x3 | GctMatrix4x4 | GctInt1 | GctInt2 | GctInt3 | GctInt4 | GctUnknown deriving (Eq) instance Enum EnumGpuConstantType where fromEnum GctFloat1 = 1 fromEnum GctFloat2 = 2 fromEnum GctFloat3 = 3 fromEnum GctFloat4 = 4 fromEnum GctSampler1d = 5 fromEnum GctSampler2d = 6 fromEnum GctSampler3d = 7 fromEnum GctSamplercube = 8 fromEnum GctSampler1dshadow = 9 fromEnum GctSampler2dshadow = 10 fromEnum GctMatrix2x2 = 11 fromEnum GctMatrix2x3 = 12 fromEnum GctMatrix2x4 = 13 fromEnum GctMatrix3x2 = 14 fromEnum GctMatrix3x3 = 15 fromEnum GctMatrix3x4 = 16 fromEnum GctMatrix4x2 = 17 fromEnum GctMatrix4x3 = 18 fromEnum GctMatrix4x4 = 19 fromEnum GctInt1 = 20 fromEnum GctInt2 = 21 fromEnum GctInt3 = 22 fromEnum GctInt4 = 23 fromEnum GctUnknown = 99 toEnum 1 = GctFloat1 toEnum 2 = GctFloat2 toEnum 3 = GctFloat3 toEnum 4 = GctFloat4 toEnum 5 = GctSampler1d toEnum 6 = GctSampler2d toEnum 7 = GctSampler3d toEnum 8 = GctSamplercube toEnum 9 = GctSampler1dshadow toEnum 10 = GctSampler2dshadow toEnum 11 = GctMatrix2x2 toEnum 12 = GctMatrix2x3 toEnum 13 = GctMatrix2x4 toEnum 14 = GctMatrix3x2 toEnum 15 = GctMatrix3x3 toEnum 16 = GctMatrix3x4 toEnum 17 = GctMatrix4x2 toEnum 18 = GctMatrix4x3 toEnum 19 = GctMatrix4x4 toEnum 20 = GctInt1 toEnum 21 = GctInt2 toEnum 22 = GctInt3 toEnum 23 = GctInt4 toEnum 99 = GctUnknown toEnum unmatched = error ("EnumGpuConstantType.toEnum: Cannot match " ++ show unmatched)