summaryrefslogtreecommitdiffstats
path: root/src/Model.hs
blob: 0c273e94c3dc8537715e294048f3149e1318e70c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Model ( Model(..)
             , InterleavedObj
             , modelPath
             ) where

import Paths_htanks
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"