[osg-users] Problems porting from osg-3.4.0 to osg-3.6.0
Herman Varma
hermanvarma at eastlink.ca
Thu Sep 13 05:47:55 PDT 2018
Hi Robert,
I am new in OSG so please be patient. I am still reading the book.
Just to clarify I should replace in the class CSimpleInterimShadowTechnique
CSimpleInterimShadowTechnique();
CSimpleInterimShadowTechnique(const CSimpleInterimShadowTechnique& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osgShadow, CSimpleInterimShadowTechnique);
with
CSimpleInterimShadowTechnique();
CSimpleInterimShadowTechnique(const CSimpleInterimShadowTechnique& es, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const CSimpleInterimShadowTechnique*>(obj) != NULL; } \
virtual const char* libraryName() const { return "osgShadow"; }\
virtual const char* className() const { return "CSimpleInterimShadowTechnique"; }
removing META_object
and also add
/** Resize any per context GLObject buffers to specified size. */
virtual void resizeGLObjectBuffers(unsigned int maxSize) = 0;
/** If State is non-zero, this function releases any associated OpenGL objects for
* the specified graphics context. Otherwise, releases OpenGL objects
* for all graphics contexts. */
virtual void releaseGLObjects(osg::State* = 0) const = 0;
to the class.
Do I have this right?
Thank you!
Cheers,
Herman
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74741#74741
More information about the osg-users
mailing list