Added more models and render with perspective transform now
This commit is contained in:
parent
5951108c0a
commit
a19dc0d6aa
10 changed files with 1156 additions and 37 deletions
|
@ -6,10 +6,12 @@ module Model ( Model(..)
|
|||
import Paths_htanks
|
||||
import Data.Obj3D.GL (InterleavedObj)
|
||||
|
||||
data Model = ModelTank
|
||||
data Model = ModelTank | ModelBullet | ModelBlock
|
||||
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"
|
||||
|
|
Reference in a new issue