In Programming Interactivity there’s a code example for drawing two circles: http://my.safaribooksonline.com/9780596-…-wing-in-2d
Unfortunately I’ve been unable to get this example working. This being the case i think i’m not understanding the instructions correctly. Any clarification on the following points would be much appreciated.
For instance this sentence:
For example, to draw two circles to the screen, you would simply add the following methods to the draw() method of a program:
There follows two method definitions. It’s not clear to me whether its being suggested that these methods should be defined defined somewhere else (eg. simpleGraphics.cpp?) and then be called from within the draw() method of my program (in testApp.cpp) or whether the definitions actually belong inside the draw() method.
Further along there’s this sentence:
The .h header file for the class would look like so:
Am I correct in assuming that this file would be called simpleGraphics.h? When i try it this way, Xcode grumbles:
“error: ofAddons.h: No such file or directory”
Is there something else i need to do to get xcode to see addons/ofAddons.h?