Running the book's examples
We just saw the first of the book's examples. You will see there are many other examples in the book. Some examples require additional content files, and also the code of some of the examples is given in shortened form. So for efficient work with the book, please download the book's example source codes and its content files from the Support tab of the book's page available at the following link:
http://www.packtpub.com/mastering-openframeworks-creative-coding-demystified/book
Note all the example projects are presented just as source files (.h
and .cpp
). The content files such as images, videos, and sounds are located in separate folders. For running an example, you need to create a new openFrameworks project, copy the .h
and .cpp
source files of the downloaded example to the src
folder of this project (with replacing files), and copy the needed content files into the bin/data
folder of the project.
We will always specify which project should be taken as a base for the example project, and which content files are required for running the example. Also, for convenience, we will place the name of the folder with the example's codes in an information box, like this:
Note
This is example 01-Basics/01-Pendulum
.