TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
TurtleBrains::Graphics::LineContainer Class Reference

#include <tb_line.hpp>

Inheritance diagram for TurtleBrains::Graphics::LineContainer:
TurtleBrains::Graphics::Graphic TurtleBrains::Graphics::Line

Public Member Functions

 LineContainer (void)
 
 LineContainer (const LineContainer &other)
 
virtual ~LineContainer (void)
 
virtual void SetColor (const tbGraphics::Color &newColor) override
 
- Public Member Functions inherited from TurtleBrains::Graphics::Graphic
 Graphic (void)
 
 Graphic (const Graphic &other)
 
virtual ~Graphic (void)
 
bool IsActive (void) const
 
void SetActive (const bool isActive)
 
void Update (const float deltaTime)
 
bool IsVisible (void) const
 
void SetVisible (const bool isVisible)
 
void Render (void) const
 
const tbMath::Vector2GetPosition (void) const
 
void SetPosition (const float x, const float y)
 
void SetPosition (const tbMath::Vector2 &position)
 
const tbMath::Vector2GetOrigin (void) const
 
void SetOrigin (const AnchorLocation &anchor, const tbMath::Vector2 &offset=tbMath::Vector2::Zero())
 
void SetOrigin (const float originX, const float originY)
 
void SetOrigin (const tbMath::Vector2 &origin)
 
float GetDepth (void) const
 
void SetDepth (const float newDepth)
 
const tbMath::Vector2GetScale (void) const
 
void SetScale (const float scale)
 
void SetScale (const tbMath::Vector2 &scale)
 
void SetScale (const float scaleX, const float scaleY)
 
float GetRotation (void) const
 
void SetRotation (const float rotation)
 
void SetScroll (const float scroll)
 
void SetScroll (const float scrollX, const float scrollY)
 
bool IsRelative (void) const
 
const ColorGetColor (void) const
 
virtual PixelSpace GetPixelWidth (void) const
 
virtual PixelSpace GetPixelHeight (void) const
 
float GetWidth (void) const
 
float GetHeight (void) const
 
float GetScaledWidth (void) const
 
float GetScaledHeight (void) const
 
bool UnstableIsPointContained (const tbMath::Vector2 &point) const
 

Protected Member Functions

virtual void OnRender (void) const override
 
void ClearVertices (void)
 
void AddVertex (const tbMath::Vector2 &position)
 
void SetAsLineStrip (void)
 
void SetAsLines (void)
 
- Protected Member Functions inherited from TurtleBrains::Graphics::Graphic
virtual void OnUpdate (const float deltaTime)
 
virtual void ApplyTransform (void) const
 
virtual void PopTransform (void) const
 

Friends

class tbGraphics::OutlinedPolygonShape
 

Detailed Description

TODO: TurtleBrains: Documentation: Teach the user how to use this.

Constructor & Destructor Documentation

TurtleBrains::Graphics::LineContainer::LineContainer ( void  )

TODO: TurtleBrains: Documentation: Teach the user how to use this.

TurtleBrains::Graphics::LineContainer::LineContainer ( const LineContainer other)

TODO: TurtleBrains: Documentation: Teach the user how to use this.

virtual TurtleBrains::Graphics::LineContainer::~LineContainer ( void  )
virtual

TODO: TurtleBrains: Documentation: Teach the user how to use this.

Member Function Documentation

void TurtleBrains::Graphics::LineContainer::AddVertex ( const tbMath::Vector2 position)
protected

TODO: TurtleBrains: Documentation: Teach the user how to use this.

void TurtleBrains::Graphics::LineContainer::ClearVertices ( void  )
protected

TODO: TurtleBrains: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Graphics::LineContainer::OnRender ( void  ) const
overrideprotectedvirtual

TODO: TurtleBrains: Documentation: Teach the user how to use this.

Implements TurtleBrains::Graphics::Graphic.

virtual void TurtleBrains::Graphics::LineContainer::SetColor ( const tbGraphics::Color newColor)
overridevirtual

Change the color of the sprite so it can fade in/out with alpha, or modify the color for other effects.

Reimplemented from TurtleBrains::Graphics::Graphic.