#include <Line.h>
|
| | Line (Vector4D p1, Vector4D p2, Vector4D color={1.0f, 0.0f, 0.0f, 1.0f}) |
| | Line (std::pair< float, float > p1, std::pair< float, float > p2, Vector4D color={1.0f, 0.f, 0.f, 1.f}) |
| | Line (const Line &other)=default |
| | Line (Line &&other) noexcept=default |
| auto | operator= (const Line &other) -> Line &=default |
| auto | operator= (Line &&other) noexcept -> Line &=default |
| | operator std::pair< gfx::Vertex, gfx::Vertex > () const |
| | convertion operator to a pair of verts, intended for use when adding a line to a vertex Buffer
|
| auto | p1 () const -> const Vector4D & |
| auto | p1 (const Vector4D &p1) -> void |
| auto | p2 () const -> const Vector4D & |
| auto | p2 (const Vector4D &p2) -> void |
| auto | color () const -> const Vector4D & |
| auto | color (const Vector4D &color) -> void |
◆ Line() [1/4]
◆ Line() [2/4]
| Line::Line |
( |
std::pair< float, float > | p1, |
|
|
std::pair< float, float > | p2, |
|
|
Vector4D | color = {1.0f, 0.f, 0.f, 1.f} ) |
|
inline |
◆ Line() [3/4]
| Line::Line |
( |
const Line & | other | ) |
|
|
default |
◆ Line() [4/4]
| Line::Line |
( |
Line && | other | ) |
|
|
defaultnoexcept |
◆ color() [1/2]
| auto Line::color |
( |
| ) |
const->constVector4D & |
|
nodiscard |
◆ color() [2/2]
| auto Line::color |
( |
const Vector4D & | color | ) |
->void |
◆ operator std::pair< gfx::Vertex, gfx::Vertex >()
convertion operator to a pair of verts, intended for use when adding a line to a vertex Buffer
◆ operator=() [1/2]
| auto Line::operator= |
( |
const Line & | other | ) |
->Line &=default |
|
default |
◆ operator=() [2/2]
| auto Line::operator= |
( |
Line && | other | ) |
->Line &=default |
|
defaultnoexcept |
◆ p1() [1/2]
| auto Line::p1 |
( |
| ) |
const->constVector4D & |
|
nodiscard |
◆ p1() [2/2]
| auto Line::p1 |
( |
const Vector4D & | p1 | ) |
->void |
◆ p2() [1/2]
| auto Line::p2 |
( |
| ) |
const->constVector4D & |
|
nodiscard |
◆ p2() [2/2]
| auto Line::p2 |
( |
const Vector4D & | p2 | ) |
->void |
◆ operator*
◆ operator*=
◆ _color
| Vector4D Line::_color {1.0f, 0.0f, 0.0f, 1.0f} |
|
private |
◆ _p1
◆ _p2
The documentation for this class was generated from the following files:
- /home/egrazil/sites/Brunot/The House/source/Graphics/Line.h
- /home/egrazil/sites/Brunot/The House/source/Graphics/Line.cpp