2010-01-21 17:20:56 +01:00
|
|
|
==================
|
2010-01-21 15:28:16 +01:00
|
|
|
INSTALLATION GUIDE
|
|
|
|
==================
|
2010-01-22 21:08:55 +01:00
|
|
|
|
|
|
|
------------
|
2010-01-21 15:28:16 +01:00
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
|
|
|
Core poly2tri lib:
|
2010-01-21 17:20:56 +01:00
|
|
|
- Standard Template Library
|
2010-01-21 15:28:16 +01:00
|
|
|
|
|
|
|
Testbed:
|
|
|
|
- gcc
|
|
|
|
- OpenGL
|
2010-01-22 20:52:28 +01:00
|
|
|
- GLFW (http://glfw.sf.net)
|
|
|
|
- Python
|
2010-01-21 15:28:16 +01:00
|
|
|
|
|
|
|
Waf (http://code.google.com/p/waf/) is used to compile the testbed, and
|
|
|
|
the Python waf script (86kb) is included in the repositoty.
|
2010-01-22 21:08:55 +01:00
|
|
|
|
|
|
|
----------------------------------------------
|
2010-01-21 17:20:56 +01:00
|
|
|
Building the Testbed
|
2010-01-21 15:28:16 +01:00
|
|
|
----------------------------------------------
|
|
|
|
|
|
|
|
Posix/MSYS environment:
|
|
|
|
|
|
|
|
./waf configure
|
|
|
|
./waf build
|
|
|
|
|
|
|
|
Windows command line:
|
|
|
|
|
|
|
|
python waf configure
|
|
|
|
python waf build
|
2010-01-22 21:08:55 +01:00
|
|
|
|
|
|
|
----------------------------------------------
|
|
|
|
Running the Examples
|
2010-01-21 15:28:16 +01:00
|
|
|
----------------------------------------------
|
|
|
|
|
2010-01-22 20:52:28 +01:00
|
|
|
p2t <filename> <center-x> <center-y> <zoom>
|
2010-01-21 15:28:16 +01:00
|
|
|
|
2010-01-22 21:08:55 +01:00
|
|
|
Examples:
|
2010-01-21 15:28:16 +01:00
|
|
|
|
2010-01-22 21:08:55 +01:00
|
|
|
./p2t dude.dat 300 500 2
|
|
|
|
./p2t nazca_monkey.dat 0 0 9
|