hogre-examples 0.0.1 → 0.0.2
raw patch · 2 files changed
+46/−6 lines, 2 files
Files
- README +40/−1
- hogre-examples.cabal +6/−5
README view
@@ -1,1 +1,40 @@-Models available at http://www.blendermodels.org/+Introduction:++Examples for using Hogre, Haskell bindings to OGRE+(Object-Oriented Graphics Rendering Engine)+(http://www.ogre3d.org/).++Usage:++1. Install non-Haskell dependencies (OGRE: http://www.ogre3d.org/,+SDL: http://www.libsdl.org/).+2. Install Haskell dependencies (hogre (see +http://github.com/anttisalonen/hogre), SDL, stm) either using+cabal, by downloading and installing the packages manually.+3. Unpack hogre-examples+4. cabal configure [--user] && cabal build+5. Define the directory where the OGRE plugins are installed in plugins.cfg.+The default is /usr/lib/OGRE.+6. dist/build/example_0[123]/example_0[123]++You need to run all the examples in the directory where the directory Media+is located (root directory of the package), otherwise the content will not +be found.++Example descriptions:++example_01 creates a simple scene with a moving entity.+It roughly corresponds to OGRE basic tutorial #2 but without input.+If nothing is rendered, try deleting the ogre.cfg file.++example_02 demonstrates use of SDL for input and window creation.+Use arrow keys and page up/down to move, mouse with right mouse button down+to look around and 'q' or escape to exit.++example_03 demonstrates ray scene queries and loading a world configuration +from a file.+It roughly corresponds to OGRE intermediate tutorial #2.+Use arrow keys and page up/down to move, mouse with right mouse button down+to look around and 'q' or escape to exit. With the left mouse button you can+create some robots on the landscape.+
hogre-examples.cabal view
@@ -1,5 +1,5 @@ Name: hogre-examples-Version: 0.0.1+Version: 0.0.2 Cabal-Version: >= 1.6 License: OtherLicense License-File: LICENSE@@ -7,6 +7,7 @@ Maintainer: Antti Salonen<ajsalonen at gmail dot com> Copyright: Antti Salonen 2009 Stability: Unstable+Homepage: http://github.com/anttisalonen/hogre-examples Category: Graphics Synopsis: Examples for using Hogre. Description: Examples for using Hogre, Haskell bindings to OGRE@@ -40,21 +41,21 @@ source-repository head type: git- location: http://github.com/anttisalonen/hogre-examples+ location: git://github.com/anttisalonen/hogre-examples.git Executable example_01 Build-Depends: base >= 3 && < 5, haskell98, hogre>=0.0.1 Main-is: Example_01.hs Hs-Source-Dirs: src Ghc-options: -Wall- extra-libraries: CEGUIOgreRenderer, OgreMain, CEGUIBase+ extra-libraries: OgreMain Executable example_02 Build-Depends: base >= 3 && < 5, haskell98, hogre>=0.0.1, SDL>=0.4.0 Main-is: Example_02.hs Hs-Source-Dirs: src Ghc-options: -Wall- extra-libraries: CEGUIOgreRenderer, OgreMain, CEGUIBase+ extra-libraries: OgreMain Executable example_03 Build-Depends: base >= 3 && < 5, haskell98, hogre>=0.0.1, SDL>=0.4.0,@@ -62,5 +63,5 @@ Main-is: Example_03.hs Hs-Source-Dirs: src Ghc-options: -Wall- extra-libraries: CEGUIOgreRenderer, OgreMain, CEGUIBase+ extra-libraries: OgreMain