Skip to content

Instantly share code, notes, and snippets.

@philipnilsson
Created December 14, 2014 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipnilsson/0dcfc1c403b7164758c3 to your computer and use it in GitHub Desktop.
Save philipnilsson/0dcfc1c403b7164758c3 to your computer and use it in GitHub Desktop.
module Main where
import Engine
pretty elem
= elem $= texture (fromFile "slim.jpg")
scene =
pretty cube $= rotateX 2t $= rotateY 3t
view =
fromBoundingBox scene
main = render (scene $= transform view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment