diff options
author | Joshua Rahm <joshua.rahm@colorado.edu> | 2014-04-18 22:31:25 -0600 |
---|---|---|
committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2014-04-18 22:31:25 -0600 |
commit | e380f8f31246afc2a14eccc51d40aa78dbd12cb1 (patch) | |
tree | 7de51c820532ab896ce81a72df84872431b30f50 | |
parent | 0f408f531f8b569fe89fbd5d953833d9271e7764 (diff) | |
download | terralloc-e380f8f31246afc2a14eccc51d40aa78dbd12cb1.tar.gz terralloc-e380f8f31246afc2a14eccc51d40aa78dbd12cb1.tar.bz2 terralloc-e380f8f31246afc2a14eccc51d40aa78dbd12cb1.zip |
getting things to run
-rw-r--r-- | Resources.hs | 2 | ||||
-rw-r--r-- | Terralloc.cabal | 25 | ||||
-rw-r--r-- | maps/spain_height.png | bin | 0 -> 11145 bytes | |||
-rw-r--r-- | maps/spain_terrain.png | bin | 0 -> 4870 bytes | |||
-rw-r--r-- | maps/wonderland_height.png | bin | 0 -> 4252 bytes | |||
-rw-r--r-- | maps/wonderland_terrain.png | bin | 0 -> 1129 bytes | |||
-rw-r--r-- | terrain/unknown.png | bin | 0 -> 117 bytes |
7 files changed, 26 insertions, 1 deletions
diff --git a/Resources.hs b/Resources.hs index a7f7c14..f06d8fa 100644 --- a/Resources.hs +++ b/Resources.hs @@ -253,7 +253,7 @@ buildTerrainObject builder = do "tundra.png" ] print terrainList terrainProg <- loadProgramSafe' "shaders/basic.vert" "shaders/basic.frag" (Nothing::Maybe String) - lst <- forM (zip [0..7::Int] $ terrainList ++ repeat "height.png") $ \(idx,str) -> do + lst <- forM (zip [0..7::Int] $ terrainList ++ repeat "terrain/unknown.png") $ \(idx,str) -> do location <- get $ uniformLocation terrainProg $ "textures[" ++! idx ++ "]" load str >>= textureFromSurface >>= return . (,) location diff --git a/Terralloc.cabal b/Terralloc.cabal new file mode 100644 index 0000000..bd0545f --- /dev/null +++ b/Terralloc.cabal @@ -0,0 +1,25 @@ +-- Initial jora2470_hw2.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/ + +--enable-library-profiling and/or +--enable-executable-profiling. +name: homework9 +version: 0.1.0.0 +-- synopsis: +-- description: +-- license: +license-file: LICENSE +author: Josh Rahm +maintainer: joshuarahm@gmail.com +-- copyright: +-- category: +build-type: Simple +cabal-version: >=1.8 + +executable final + main-is: Final.hs + extensions: FlexibleInstances + ghc-options: -rtsopts -O3 + -- ghc-options: -prof -osuf h_o + -- other-modules: + build-depends: setters, base, OpenGL, bytestring, array, SDL, random, OpenGLRaw, AC-Angle, deepseq, containers, SDL-image, cpu, template-haskell, filepath, MissingH, StateVar diff --git a/maps/spain_height.png b/maps/spain_height.png Binary files differnew file mode 100644 index 0000000..8b150a2 --- /dev/null +++ b/maps/spain_height.png diff --git a/maps/spain_terrain.png b/maps/spain_terrain.png Binary files differnew file mode 100644 index 0000000..22b1165 --- /dev/null +++ b/maps/spain_terrain.png diff --git a/maps/wonderland_height.png b/maps/wonderland_height.png Binary files differnew file mode 100644 index 0000000..4667af0 --- /dev/null +++ b/maps/wonderland_height.png diff --git a/maps/wonderland_terrain.png b/maps/wonderland_terrain.png Binary files differnew file mode 100644 index 0000000..64704d5 --- /dev/null +++ b/maps/wonderland_terrain.png diff --git a/terrain/unknown.png b/terrain/unknown.png Binary files differnew file mode 100644 index 0000000..f21fa86 --- /dev/null +++ b/terrain/unknown.png |