summaryrefslogtreecommitdiff
path: root/src/geometry/fill_buffer.cpp
blob: 61aee76c53ba1ede77fc7f369207b5449596e783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <llmr/geometry/fill_buffer.hpp>
#include <llmr/platform/gl.hpp>

#include <climits>

using namespace llmr;

void FillVertexBuffer::add(vertex_type x, vertex_type y) {
    vertex_type *vertices = static_cast<vertex_type *>(addElement());
    vertices[0] = x;
    vertices[1] = y;
}