Original Post
Here''s and odd question that may or may not have an obvious answer. In my current project I want to make a list of any object I create for collision detection, rendering, bsp tree, etc. I have my object class which includes all the objects info such as verticies and a List class that looks somewhat like this.
class List
{
public:
Render();
Clear();
...
Add_Obj(3D_Obj name);
Del_Obj(3D_Obj name);
private:
3D_Obj *objlist; // list of pointers
};
I want to be able to call the Add_Obj() function every time I call a 3D_Obj constructor. Add_Obj() will then add a pointer to the new object to the list. My problem now is that I need the 3D_Obj to reference its own name so I can send it to the list. I''ve heard of somthing called a "this" pointer, is that what it does? Please ask for clarification if I didn''t explain well enough.
-----------------------------
Blue*Omega
(Insert Witty Quote Here)