In my header file i have a private variable:
ofColor hitColor;
Also i have the following empty constructor and method:
ImageRayTracer(void);
void setHitColor(ofColor c);
My implementation looks like this:
ImageRayTracer::ImageRayTracer(void) {
hitColor.set(0);
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
void setHitColor(ofColor c) {
//Use of undeclared identifier
hitColor = c;
}
But i get “Use of undeclared identifier”, how can this issue be solved?
I looked at stackoverflow but i mostly saw iphone development solutions with @synthesize etc.