Added support osg::State::drawQuad(..) for number of vertices in quads to uint range rather than just ushort range.

This commit is contained in:
Robert Osfield
2011-06-14 15:48:27 +00:00
parent 5b3eed5dce
commit b6a15b2ef8
2 changed files with 59 additions and 27 deletions

View File

@@ -512,8 +512,11 @@ class OSG_EXPORT State : public Referenced, public Observer
_currentPBO = 0;
}
typedef std::vector<GLushort> Indices;
Indices _quadIndices[6];
typedef std::vector<GLushort> IndicesGLushort;
IndicesGLushort _quadIndicesGLushort[4];
typedef std::vector<GLuint> IndicesGLuint;
IndicesGLuint _quadIndicesGLuint[4];
void drawQuads(GLint first, GLsizei count, GLsizei primCount=0);