O'Reilly logo

Cinder – Begin Creative Coding by Krisjanis Rijnieks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Final adjustments

No matter what kind of setup you choose, you'll have to edit one single file that is located in the same place relative to the project directory and whose name is the same in all configurations, src/BaseApp.cpp. Open it. We will try to understand what the different lines of code mean.

#include "cinder/app/AppBasic.h"
#include "cinder/gl/gl.h"

These are the initial include statements that are responsible for including all the necessary Cinder stuff before we start to write our actual Cinder code.

using namespace ci;
using namespace ci::app;
using namespace std;

Here we tell the compiler that we are going to use some namespaces. We do that to avoid writing the namespace names before the variables and methods that are defined in those ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required