-
Book Overview & Buying
-
Table Of Contents
Cinder Creative Coding Cookbook
In this recipe, we will learn how to create objects responsible to multi-touch gestures, such as dragging, scaling, or rotating by extending the InteractiveObject class mentioned in the Creating an interactive object that responds to the mouse recipe of this chapter. We are going to build an iOS application that uses iOS device multi-touch capabilities.

Please refer to the Creating an interactive object that responds to the mouse recipe to find the InteractiveObject class headers and source code and Creating a project for an iOS touch application recipe from Chapter 1.
We will create an iPhone application with sample objects that can be dragged, scaled, or rotated.
Add a new header file named TouchInteractiveObject.h to your project:
#pragma once #include "cinder/app/AppNative.h" #include "cinder/gl/gl.h" #include "cinder/Color.h" #include "InteractiveObject.h" using namespace std; using namespace ci; using...
Change the font size
Change margin width
Change background colour