Hi!
I'm still new to C++ programming and I'm currently writing a plugin for a visual-effects application. I create a point, which is generated by the member function of a different class. Here is an excerpt of my source code
void create_geometry(Scene& scene, GeometryList& out)
{
out.add_primitive(obj, new Point(Point::SPHERE, 300.0f, i));
}
The Point class has a member function which is called render_mode(int v); and I want to call this member function for the Point object that just got created. But how do I do this without knowing which name that object got? Normally I would do something like myPoint.render_mode(true);. But that is not possible for this case right?
I'd appreciate any help!
Phong