9 #ifndef TurtleBrains_GraphicList_hpp
10 #define TurtleBrains_GraphicList_hpp
12 #include <turtle_brains/graphics/tb_graphic.hpp>
77 void RecalculateWidthAndHeight(
void);
84 virtual void OnUpdate(
const float deltaTime)
override;
94 virtual void OnRender(
void)
const override;
97 void ReallyAddGraphic(
Graphic* graphic,
const bool managed);
102 void SetOrigin(
const float originX,
const float originY) {
Graphic::SetOrigin(originX, originY); }
104 void SetScroll(
const float scroll) { SetScroll(scroll, scroll); }
105 void SetScroll(
const float scrollX,
const float scrollY)
107 for (
Graphic* graphic : mGraphics)
114 typedef std::list<Graphic*> GraphicContainer;
115 GraphicContainer mGraphics;
116 GraphicContainer mManagedGraphics;
Definition: tb_graphic.hpp:61
virtual ~GraphicList(void)
Definition: tb_graphic_list.hpp:27
AnchorLocation
Definition: tb_graphic.hpp:44
virtual PixelSpace GetPixelWidth(void) const
Definition: tb_graphic_list.hpp:74
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
void RemoveGraphic(Graphic *graphic)
virtual void OnUpdate(const float deltaTime) override
void AddGraphic(Graphic *graphic)
virtual void SetColor(const tbGraphics::Color &newColor) override
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
Definition: tb_color.hpp:24
void SetScroll(const float scroll)
Definition: tb_graphic.hpp:245
virtual PixelSpace GetPixelHeight(void) const
Definition: tb_graphic_list.hpp:75
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:36
void SetOrigin(const AnchorLocation &anchor, const tbMath::Vector2 &offset=tbMath::Vector2::Zero())
virtual void OnRender(void) const override