Fixes for IRIX and Boris Bralo's TerraPage loader.
This commit is contained in:
@@ -83,7 +83,7 @@ class SG_EXPORT Billboard : public Geode
|
||||
struct ComputeBillboardCallback : public osg::Referenced
|
||||
{
|
||||
/** Get the transformation matrix which moves from local coords to world coords.*/
|
||||
virtual void computeMatrix(const Matrix& matrix, const Billboard* billboard, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const;
|
||||
virtual const bool computeMatrix(const Matrix& matrix, const Billboard* billboard, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const;
|
||||
};
|
||||
|
||||
friend struct osg::Billboard::ComputeBillboardCallback;
|
||||
@@ -99,7 +99,7 @@ class SG_EXPORT Billboard : public Geode
|
||||
const ComputeBillboardCallback* getComputeBillboardCallback() const { return _computeBillboardCallback.get(); }
|
||||
|
||||
|
||||
inline void getMatrix(Matrix& matrix, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const
|
||||
inline const bool getMatrix(Matrix& matrix, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const
|
||||
{
|
||||
if (_computeBillboardCallback.valid())
|
||||
return _computeBillboardCallback->computeMatrix(matrix,this,eye_local,up_local,pos_local);
|
||||
@@ -113,7 +113,7 @@ class SG_EXPORT Billboard : public Geode
|
||||
|
||||
virtual const bool computeBound() const;
|
||||
|
||||
virtual void computeMatrix(Matrix& matrix, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const;
|
||||
virtual const bool computeMatrix(Matrix& matrix, const Vec3& eye_local, const Vec3& up_local, const Vec3& pos_local) const;
|
||||
|
||||
enum AxisAligned
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@ class SG_EXPORT Statistics : public osg::Referenced, public osg::Drawable::Attri
|
||||
primverts[0] += (end-begin);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void addNumPrims(const int typ, const int nprimlen, const int numprimtype, const int primvert)
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace osgGLUT
|
||||
* but shouldn't be viewed as the be all and end of osg viewer classes.
|
||||
* Someone please rewrite it :-)
|
||||
*/
|
||||
class OSGGLUT_EXPORT Viewer : public Window, osgUtil::GUIActionAdapter
|
||||
class OSGGLUT_EXPORT Viewer : public Window, public osgUtil::GUIActionAdapter
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class OSGTEXT_EXPORT Font : public osg::Object
|
||||
|
||||
Font();
|
||||
Font(const Font& font,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY):
|
||||
Object(font,copyop),
|
||||
osg::Object(font,copyop),
|
||||
_init(false),
|
||||
_created(false),
|
||||
_font(0L),
|
||||
|
||||
@@ -28,7 +28,7 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin
|
||||
|
||||
|
||||
RenderStage();
|
||||
virtual osg::Object* cloneType(const osg::CopyOp&) const { return new RenderStage(); }
|
||||
virtual osg::Object* cloneType() const { return new RenderStage(); }
|
||||
virtual osg::Object* clone(const osg::CopyOp&) const { return new RenderStage(); } // note only implements a clone of type.
|
||||
virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const RenderStage*>(obj)!=0L; }
|
||||
virtual const char* className() const { return "RenderStage"; }
|
||||
|
||||
Reference in New Issue
Block a user