Creating a project for a screensaver application
In this recipe, we will learn how to create a project for a desktop screensaver for both Windows and Mac OS X.
Getting ready
To get ready with TinderBox, please refer to the Getting ready section of the previous Creating a project for a basic application recipe.
How to do it…
We'll use TinderBox, a utility tool that comes bundled with Cinder that allows easy creation of projects. Perform the following steps to create a project for a screensaver application:
Open TinderBox and choose your project's location. In the main TinderBox window select Screensaver as Target and OpenGL as Template, as shown in the following screenshot:
Select the compilers you want to create a project to, either Microsoft Visual C++ 2010 and/or OS X Xcode.
Click on Create and TinderBox will direct you to the folder where your project was created.
How it works...
TinderBox will create both a project for you and link it against the compiled Cinder library. It will also create the application's class and make it a subclass of ci::app::AppScreenSaver
, which is the class with all the basic functionality for a screensaver application. It will also create some sample code with a basic example to help you get started.