Hello Sebastian,

Sebastian Knödel wrote:
> I pasted below the simple class I wrote to obtain the Display list Id of 
> the Geometry.
> I derive myGeometry from Geometry but the compiler still tells me that I 
> can not acces the protected member function getGLId() .
> Probably there is a bug in the class I wrote.
> 
> Thanks for any help
> 
> class myGeometry : public Geometry
> {
> public:
>       myGeometry(){};
> 
>       inline int getDListID(GeometryPtr g, PassiveWindowPtr win)      
>                       {return win->getGLObjectId(g->getGLId());}
> };

what happens, if you use the following member function instead ?

inline int
myGeometry::getDListId(WindowPtr win)
{
     return win->getGLObjectId(getGLId());
}

i.e. attempt to get the id of "this" instead of a passed in object ?

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to