Use OF functions in my own classes


I made my own class and in its draw function (which I call in testApp’s draw function) I use some of OF (graphics) functions. I had to include “ofGraphics.h” to make this work, but I wonder if that is the way to go, because a lot of instantiations of my class yield a lot of (redundant?) header inclusions.
Maybe smart use of pointers is more appropriate? If so, how would I do that?

/ Ben

hey ben,

because of the #ifndef there are no redundant header inclusions.
like in ofGraphics.h:

#ifndef OF_GEOM  
#define OF_GEOM