This repository has been archived on 2025-03-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
htanks/src/Model.hs

16 lines
360 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-12 02:47:09 +02:00
import Data.Obj3D.GL (InterleavedObj)
data Model = ModelTank
deriving (Eq, Ord, Show)
modelPath :: Model -> IO FilePath
modelPath t = getDataFileName $ "model/" ++ (name t) ++ ".obj"
where
name ModelTank = "tank"