common buffer implementation

This commit is contained in:
Konstantin Käfer
2014-02-10 15:14:52 +01:00
parent 0157e4f140
commit f4996046a2
14 changed files with 99 additions and 219 deletions

View File

@@ -12,7 +12,7 @@ VertexBuffer::~VertexBuffer() {
}
}
uint32_t VertexBuffer::length() const {
uint32_t VertexBuffer::index() const {
// We store 2 coordinates per vertex + 1 linesofar + 1 extrude coord pair == 4 (== 8 bytes)
return array.size() / 2;
}