Hi there

I would like to read the OpenGL extensions with isGLExtensionSupported(), but for this I need a draw context. I registred a DrawCallback Class, see below. I need to call the operator() method only once, but because this method is const, I cannot write to the member variable bool first. How can I resolve this problem?

        class GameViewOSGDrawCallback : public osg::Camera::DrawCallback
        {
        private:
            GameViewOSG *parent;
            bool first;

        public:
            GameViewOSGDrawCallback(GameViewOSG* parent=0);

            virtual void operator()(const osg::Camera&) const;
        };

Thanks a lot
Dominic
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to