Moved VBO switching code into inline methods into osg::State to speed performance

This commit is contained in:
Robert Osfield
2007-05-01 06:28:20 +00:00
parent a67111a64c
commit 40db1a8934
12 changed files with 377 additions and 79 deletions

View File

@@ -269,16 +269,16 @@ class OSG_EXPORT VertexBufferObject : public BufferObject
};
class DrawElements;
class OSG_EXPORT ElementsBufferObject : public BufferObject
class OSG_EXPORT ElementBufferObject : public BufferObject
{
public:
ElementsBufferObject();
ElementBufferObject();
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
ElementsBufferObject(const ElementsBufferObject& pbo,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
ElementBufferObject(const ElementBufferObject& pbo,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
META_Object(osg,ElementsBufferObject);
META_Object(osg,ElementBufferObject);
typedef std::pair< BufferEntry, DrawElements* > BufferEntryDrawElementstPair;
typedef std::vector< BufferEntryDrawElementstPair > BufferEntryDrawElementsPairs;
@@ -297,7 +297,7 @@ class OSG_EXPORT ElementsBufferObject : public BufferObject
protected:
virtual ~ElementsBufferObject();
virtual ~ElementBufferObject();
BufferEntryDrawElementsPairs _bufferEntryDrawElementsPairs;
};