Removed old style OpenGL methods from PrimitiveFunctor classes/templates as these are no longer used or required.

This commit is contained in:
Robert Osfield
2017-04-27 15:04:44 +01:00
parent e7e372bad2
commit 48a3fc30f3
4 changed files with 56 additions and 195 deletions

View File

@@ -49,25 +49,6 @@ public:
{
}
virtual void begin(GLenum mode)
{
_modeCache = mode;
_indexCache.clear();
}
virtual void vertex(unsigned int vert)
{
_indexCache.push_back(vert);
}
virtual void end()
{
if (!_indexCache.empty())
{
drawElements(_modeCache,_indexCache.size(),&_indexCache.front());
}
}
virtual void drawArrays(GLenum mode,GLint first,GLsizei count)
{
switch(mode)
@@ -334,9 +315,6 @@ public:
break;
}
}
GLenum _modeCache;
std::vector<GLuint> _indexCache;
};
}