drawing lines with triangles

This commit is contained in:
Konstantin Käfer
2014-02-11 15:51:54 +01:00
parent eb9a6b7068
commit bec0ad10c4
34 changed files with 452 additions and 263 deletions

View File

@@ -0,0 +1,15 @@
#include <llmr/geometry/elements_buffer.hpp>
using namespace llmr;
void TriangleElementsBuffer::add(element_type a, element_type b, element_type c) {
element_type *elements = static_cast<element_type *>(addElement());
elements[0] = a;
elements[1] = b;
elements[2] = c;
}
void PointElementsBuffer::add(element_type a) {
uint16_t *data = static_cast<element_type *>(addElement());
data[0] = a;
}