Name change and const change of Drawable::drawImmediateMode(State&) to
Drawable::drawImplementation(State&) const. Various updates to the rest of the OSG to accomodate this.
This commit is contained in:
@@ -602,10 +602,10 @@ osg::Group *ac_load_object(FILE *f,const ACObject *parent)
|
||||
(*vgeom).push_back((*vertpool)[i1]);
|
||||
(*tgeom).push_back((*tcs)[i]);
|
||||
}
|
||||
GLenum poltype=osg::Primitive::POLYGON;
|
||||
if (asurf.flags & SURFACE_TYPE_CLOSEDLINE) poltype=osg::Primitive::LINE_LOOP;
|
||||
if (asurf.flags & SURFACE_TYPE_LINE) poltype=osg::Primitive::LINE_STRIP;
|
||||
geom->addPrimitive(new osg::DrawArrays(poltype,nstart,asurf.num_vertref));
|
||||
GLenum poltype=osg::PrimitiveSet::POLYGON;
|
||||
if (asurf.flags & SURFACE_TYPE_CLOSEDLINE) poltype=osg::PrimitiveSet::LINE_LOOP;
|
||||
if (asurf.flags & SURFACE_TYPE_LINE) poltype=osg::PrimitiveSet::LINE_STRIP;
|
||||
geom->addPrimitiveSet(new osg::DrawArrays(poltype,nstart,asurf.num_vertref));
|
||||
if (asurf.flags & 0x10) needSmooth++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ class ReaderWriterGEO : public ReaderWriter
|
||||
ia.push_back(txidx); // look up table for which texture corresponds to which geom
|
||||
}
|
||||
int nv=getprim((*itr)->getchildren(),vinf);
|
||||
geom[igeom]->addPrimitive(new osg::DrawArrays(osg::Primitive::POLYGON,nstart,nv));
|
||||
geom[igeom]->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON,nstart,nv));
|
||||
nstart+=nv;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ class Logos: public osg::Drawable
|
||||
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const Logos*>(obj)!=NULL; }
|
||||
virtual const char* className() const { return "Logos"; }
|
||||
|
||||
virtual void drawImmediateMode( osg::State &state )
|
||||
virtual void drawImplementation(osg::State &state ) const
|
||||
{
|
||||
if( state.getContextID() != _contextID ) return;
|
||||
|
||||
@@ -100,7 +100,7 @@ class Logos: public osg::Drawable
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
|
||||
std::vector <osg::Image *>::iterator p;
|
||||
std::vector <osg::Image *>::const_iterator p;
|
||||
float th = 0.0;
|
||||
for( p = logos[Center].begin(); p != logos[Center].end(); p++ )
|
||||
th += (*p)->t();
|
||||
|
||||
Reference in New Issue
Block a user