UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::graphic::TexturedRectangle Class Reference

#include <ugdk/graphic/drawable/texturedrectangle.h>

Inheritance diagram for ugdk::graphic::TexturedRectangle:
Collaboration diagram for ugdk::graphic::TexturedRectangle:

Public Member Functions

 TexturedRectangle (Texture *texture)
 
 TexturedRectangle (Texture *texture, const Vector2D &size)
 
 ~TexturedRectangle ()
 
void Update (double dt)
 
void Draw () const
 
const Vector2Dsize () const
 
void set_size (const Vector2D &size)
 
- Public Member Functions inherited from ugdk::graphic::Shape
virtual ~Shape ()
 
- Public Member Functions inherited from ugdk::graphic::Drawable
virtual ~Drawable ()
 
void set_hotspot (const Vector2D &hotspot)
 
void set_hotspot (const HookPoint &hook)
 
const double width () const
 
const double height () const
 
const Vector2Dhotspot () const
 

Additional Inherited Members

- Public Types inherited from ugdk::graphic::Drawable
enum  HookPoint {
  TOP_LEFT, TOP, TOP_RIGHT, LEFT,
  CENTER, RIGHT, BOTTOM_LEFT, BOTTOM,
  BOTTOM_RIGHT
}
 
- Protected Member Functions inherited from ugdk::graphic::Shape
 Shape ()
 
- Protected Attributes inherited from ugdk::graphic::Drawable
ugdk::Vector2D hotspot_
 

Constructor & Destructor Documentation

ugdk::graphic::TexturedRectangle::TexturedRectangle ( Texture texture)
ugdk::graphic::TexturedRectangle::TexturedRectangle ( Texture texture,
const Vector2D size 
)
ugdk::graphic::TexturedRectangle::~TexturedRectangle ( )

Member Function Documentation

void ugdk::graphic::TexturedRectangle::Draw ( ) const
virtual
void ugdk::graphic::TexturedRectangle::set_size ( const Vector2D size)
inline
const Vector2D& ugdk::graphic::TexturedRectangle::size ( ) const
inlinevirtual
void ugdk::graphic::TexturedRectangle::Update ( double  dt)
virtual

The documentation for this class was generated from the following files: