This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
htanks/src/Model.hs

18 lines
456 B
Haskell
Raw Normal View History

2010-04-12 02:47:09 +02:00
module Model ( Model(..)
, InterleavedObj
, modelPath
2010-04-12 02:47:09 +02:00
) where
import Paths_htanks
2010-04-16 09:20:01 +02:00
import Data.Obj3D.OpenGL (InterleavedObj)
2010-04-12 02:47:09 +02:00
data Model = ModelTank | ModelBullet | ModelBlock
2010-04-12 02:47:09 +02:00
deriving (Eq, Ord, Show)
modelPath :: Model -> IO FilePath
modelPath t = getDataFileName $ "model/" ++ (name t) ++ ".obj"
where
name ModelTank = "tank"
name ModelBullet = "bullet"
name ModelBlock = "cube"