UGDK
0.5.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
texturedrectangle.h
Go to the documentation of this file.
1
#ifndef UGDK_UI_DRAWABLE_TEXTUREDRECTANGLE_H_
2
#define UGDK_UI_DRAWABLE_TEXTUREDRECTANGLE_H_
3
4
#include <
ugdk/graphic.h
>
5
#include <
ugdk/ui/drawable.h
>
6
#include <
ugdk/graphic/vertexdata.h
>
7
8
namespace
ugdk
{
9
namespace
ui {
10
11
class
TexturedRectangle
:
public
Drawable
{
12
public
:
13
TexturedRectangle
(
const
graphic::GLTexture* texture);
14
TexturedRectangle
(
const
graphic::GLTexture* texture,
const
math::Vector2D
& _size);
15
~TexturedRectangle
();
16
17
void
Draw
(
graphic::Canvas
& canvas)
const override
;
18
19
const
math::Vector2D
&
size
()
const override
{
20
return
size_;
21
}
22
23
private
:
24
math::Vector2D
size_;
25
graphic::VertexData
data_;
26
const
graphic::GLTexture* texture_;
27
};
28
29
}
// namespace ui
30
}
// namespace ugdk
31
32
#endif // UGDK_UI_DRAWABLE_TEXTUREDRECTANGLE_H_
ugdk::graphic::Canvas
Definition:
canvas.h:28
ugdk::math::Vector2D
Definition:
vector2D.h:18
ugdk
Definition:
animation.h:11
ugdk::graphic::VertexData
Definition:
vertexdata.h:20
ugdk::ui::TexturedRectangle
Definition:
texturedrectangle.h:11
ugdk::ui::Drawable
Definition:
drawable.h:13
drawable.h
graphic.h
ugdk::ui::TexturedRectangle::size
const math::Vector2D & size() const override
Definition:
texturedrectangle.h:19
ugdk::ui::TexturedRectangle::TexturedRectangle
TexturedRectangle(const graphic::GLTexture *texture)
ugdk::ui::TexturedRectangle::Draw
void Draw(graphic::Canvas &canvas) const override
ugdk::ui::TexturedRectangle::~TexturedRectangle
~TexturedRectangle()
vertexdata.h
modules
ugdk-2d
include
ugdk
ui
drawable
texturedrectangle.h
Generated on Sun Dec 6 2015 00:40:24 for UGDK by
1.8.8