OpenGL: refactor all of our StreamBuffers

The old way was to use big switch/case statements based on a type of buffer.
The new one is to use inheritance.

This change prohibits us to change the buffer type while running, but I doubt we'll ever do so.
Performance should also be a bit better. Also a nice cleanup.

Added some comments about this different kind of buffers.
This commit is contained in:
degasus
2014-01-23 15:12:31 +01:00
parent be1fee6d74
commit 128fcdac26
4 changed files with 373 additions and 256 deletions
File diff suppressed because it is too large Load Diff