change line_strip drawing for outlines to indexed lines

This commit is contained in:
Konstantin Käfer
2014-02-13 15:32:25 +01:00
parent 54454ed66a
commit f5846e1ebb
9 changed files with 97 additions and 62 deletions

View File

@@ -9,6 +9,12 @@ void TriangleElementsBuffer::add(element_type a, element_type b, element_type c)
elements[2] = c;
}
void LineElementsBuffer::add(element_type a, element_type b) {
element_type *elements = static_cast<element_type *>(addElement());
elements[0] = a;
elements[1] = b;
}
void PointElementsBuffer::add(element_type a) {
uint16_t *data = static_cast<element_type *>(addElement());
data[0] = a;