Before we begin, open TinderBox and create a new project with the name BasicAnimation
. Open xcode/BasicAnimation.xcodeproj
(vc10\BasicAnimation.sln
on Windows). Open BasicAnimationApp.cpp
in the editor so that we can start making changes.
We are going to change the window size this time as 640 x 480 px might be too small for most of the compositions we will want to create later. To do that, we need to override another Cinder
AppBasic
method—prepareSettings()
. Add a new declaration just after the draw()
method declaration as follows:
class BasicAnimationApp : public AppBasic {
public:
void setup();
void update();
void draw();
void prepareSettings( Settings *settings );
};
Now add the implementation of the method that we just declared just before the implementation of the setup()
method:
void BasicAnimationApp::prepareSettings( Settings *settings ){}
Let's change the window size. To do that, add the following line of code inside the prepareSettings
method implementation...