Fixes to smoothing visitor and tesselator to handle indexed Geometry.
This commit is contained in:
@@ -36,10 +36,10 @@ void DrawArrayLengths::accept(Drawable::PrimitiveFunctor& functor)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int DrawArrayLengths::getNumIndices()
|
||||
unsigned int DrawArrayLengths::getNumIndices() const
|
||||
{
|
||||
unsigned int count = 0;
|
||||
for(VectorSizei::iterator itr=begin();
|
||||
for(VectorSizei::const_iterator itr=begin();
|
||||
itr!=end();
|
||||
++itr)
|
||||
{
|
||||
@@ -48,7 +48,6 @@ unsigned int DrawArrayLengths::getNumIndices()
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
void DrawElementsUByte::draw() const
|
||||
{
|
||||
glDrawElements(_mode,size(),GL_UNSIGNED_BYTE,&front());
|
||||
|
||||
Reference in New Issue
Block a user