#include <Image.h>
Public Member Functions | |
| Image (void) | |
| Image (xl7::direct3d::textures::Texture *texture, D3DCOLOR color=0xffffffff) | |
| Image (xl7::direct3d::textures::Texture *texture, const ml7::Vector2 &top_left, const ml7::Vector2 &bottom_right, D3DCOLOR color=0xffffffff) | |
| Image (const Image &rhs) | |
| ~Image (void) | |
| Image & | operator= (const Image &rhs) |
| xl7::direct3d::textures::Texture * | GetTexture () const |
| const ml7::Vector2 & | GetTopLeft () const |
| const ml7::Vector2 & | GetBottomRight () const |
| D3DCOLOR | GetColor () const |
| bool | IsRelative () const |
| void | SetTexture (xl7::direct3d::textures::Texture *texture) |
| void | SetTopLeft (const ml7::Vector2 &top_left) |
| void | SetBottomRight (const ml7::Vector2 &bottom_right) |
| void | SetColor (D3DCOLOR color) |
| void | SetRelative (bool relative) |
| xl7::direct3d::textures::Texture * | GetTexture (ml7::Vector2 *out_top_left, ml7::Vector2 *out_bottom_right) |
| void | SetTexture (xl7::direct3d::textures::Texture *texture, const ml7::Vector2 &top_left, const ml7::Vector2 &bottom_right) |
| void | Relative () |
| void | Absolute () |
| fl7::Image::Image | ( | void | ) |
Default constructor.
| fl7::Image::Image | ( | xl7::direct3d::textures::Texture * | texture, | |
| D3DCOLOR | color = 0xffffffff | |||
| ) |
Explicit constructor.
| fl7::Image::Image | ( | xl7::direct3d::textures::Texture * | texture, | |
| const ml7::Vector2 & | top_left, | |||
| const ml7::Vector2 & | bottom_right, | |||
| D3DCOLOR | color = 0xffffffff | |||
| ) |
Explicit constructor.
| fl7::Image::Image | ( | const Image & | rhs | ) |
Copy constructor.
| fl7::Image::~Image | ( | void | ) |
Destructor.
| void fl7::Image::Absolute | ( | ) | [inline] |
Sets the flag specifying whether the texture coordinates are interpreted as relative values (0 to 1) or absolute texel values (0 to texture size) to false: absolute values (0 to texture size).
| const ml7::Vector2& fl7::Image::GetBottomRight | ( | ) | const [inline] |
Returns the lower-right corner of this image within the source texture.
| D3DCOLOR fl7::Image::GetColor | ( | ) | const [inline] |
Returns the color to mix up the texture with (default 0xffffffff).
| xl7::direct3d::textures::Texture* fl7::Image::GetTexture | ( | ) | const [inline] |
Returns the source texture containing the pixel data of this image.
| xl7::direct3d::textures::Texture * fl7::Image::GetTexture | ( | ml7::Vector2 * | out_top_left, | |
| ml7::Vector2 * | out_bottom_right | |||
| ) |
Returns the source texture containing the pixel data of this image and stores the upper-left and lower-right corner positions of this image within the source texture.
| const ml7::Vector2& fl7::Image::GetTopLeft | ( | ) | const [inline] |
Returns the upper-left corner of this image within the source texture.
| bool fl7::Image::IsRelative | ( | ) | const [inline] |
Returns the flag specifying whether the texture coordinates are interpreted as relative values (0 to 1) or absolute texel values (0 to texture size).
| void fl7::Image::Relative | ( | ) | [inline] |
Sets the flag specifying whether the texture coordinates are interpreted as relative values (0 to 1) or absolute texel values (0 to texture size) to true: relative values (0 to 1).
| void fl7::Image::SetBottomRight | ( | const ml7::Vector2 & | bottom_right | ) | [inline] |
Sets the lower-right corner of this image within the source texture.
| void fl7::Image::SetColor | ( | D3DCOLOR | color | ) | [inline] |
Sets the color to mix up the texture with (default 0xffffffff).
| void fl7::Image::SetRelative | ( | bool | relative | ) | [inline] |
Sets the flag specifying whether the texture coordinates are interpreted as relative values (0 to 1) or absolute texel values (0 to texture size).
| void fl7::Image::SetTexture | ( | xl7::direct3d::textures::Texture * | texture, | |
| const ml7::Vector2 & | top_left, | |||
| const ml7::Vector2 & | bottom_right | |||
| ) |
Sets the source texture containing the pixel data of this image as well as the upper-left and lower-right corner positions of this image within the source texture.
| void fl7::Image::SetTexture | ( | xl7::direct3d::textures::Texture * | texture | ) | [inline] |
Sets the source texture containing the pixel data of this image.
| void fl7::Image::SetTopLeft | ( | const ml7::Vector2 & | top_left | ) | [inline] |
Sets the upper-left corner of this image within the source texture.
1.7.1