9 #ifndef TurtleBrains_Line_hpp
10 #define TurtleBrains_Line_hpp
12 #include <turtle_brains/graphics/tb_graphic.hpp>
13 #include <turtle_brains/graphics/implementation/tbi_renderer.hpp>
14 #include <turtle_brains/math/tb_vector.hpp>
22 class OutlinedPolygonShape;
53 virtual void OnRender(
void)
const override;
68 void SetAsLineStrip(
void);
73 void SetAsLines(
void);
78 std::vector<tbImplementation::Renderer::Vertex2D> mVertices;
79 tbImplementation::Renderer::PrimitiveType mPrimitiveType;
Definition: tb_vector.hpp:48
Definition: tb_graphic.hpp:61
Line(const tbMath::Vector2 &start, const tbMath::Vector2 &final, const tbGraphics::Color &color=tbGraphics::ColorPalette::White)
virtual ~LineContainer(void)
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
virtual void OnRender(void) const override
virtual void SetColor(const tbGraphics::Color &newColor) override
Definition: tb_line.hpp:27
Definition: tb_basic_shapes.hpp:152
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
void SetStartPosition(const tbMath::Vector2 &start)
Definition: tb_color.hpp:24
Definition: tb_line.hpp:88
void AddVertex(const tbMath::Vector2 &position)
void SetFinalPosition(const tbMath::Vector2 &final)