summaryrefslogtreecommitdiff
path: root/include/llmr/geometry/fill_buffer.hpp
blob: 90265b8b97a65c64914684a20ca9eca7b338bcbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LLMR_GEOMETRY_FILL_BUFFER
#define LLMR_GEOMETRY_FILL_BUFFER

#include "buffer.hpp"
#include <vector>
#include <cstdint>

namespace llmr {

class FillVertexBuffer : public Buffer<
    4 // bytes per coordinates (2 * unsigned short == 4 bytes)
> {
public:
    typedef int16_t vertex_type;

    void addDegenerate();
    void add(vertex_type x, vertex_type y);
};

}

#endif