Euphoria
lines.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base/vec3.h"
4 #include "base/rgb.h"
5 
6 
7 #include <tuple>
8 
9 namespace eu::core
10 {
11  struct LinePoint
12  {
15 
16  LinePoint(const vec3f& p, const Rgb& c);
17  };
18 
19 
20  struct Lines
21  {
22  using FromToIndices = std::tuple<int, int>;
23 
24  std::vector<LinePoint> points;
25  std::vector<FromToIndices> indices;
26 
27  void add_line(const vec3f& from, const vec3f& to, const Rgb& c);
28  };
29 }
Definition: rgb.h:62
LinePoint(const vec3f &p, const Rgb &c)
Definition: lines.cc:7
void add_line(const vec3f &from, const vec3f &to, const Rgb &c)
Definition: lines.cc:14
std::vector< FromToIndices > indices
Definition: lines.h:25
std::tuple< int, int > FromToIndices
Definition: lines.h:22
std::vector< LinePoint > points
Definition: lines.h:24
Definition: vec3.h:48