#include <TextureClip.h>
| xl7::direct3d::clips::TextureClip::TextureClip | ( | void | ) |
Default constructor.
| xl7::direct3d::clips::TextureClip::TextureClip | ( | textures::Texture * | texture, | |
| D3DCOLOR | color = 0xffffffff | |||
| ) |
Explicit constructor.
| xl7::direct3d::clips::TextureClip::TextureClip | ( | textures::Texture * | texture, | |
| const ml7::Vector2 & | top_left, | |||
| const ml7::Vector2 & | bottom_right, | |||
| D3DCOLOR | color = 0xffffffff | |||
| ) |
Explicit constructor.
| xl7::direct3d::clips::TextureClip::TextureClip | ( | const TextureClip & | rhs | ) |
Copy constructor.
| xl7::direct3d::clips::TextureClip::~TextureClip | ( | void | ) |
Destructor.
| void xl7::direct3d::clips::TextureClip::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& xl7::direct3d::clips::TextureClip::GetBottomRight | ( | ) | const [inline] |
Returns the lower-right corner of this clip within the source texture.
| D3DCOLOR xl7::direct3d::clips::TextureClip::GetColor | ( | ) | const [inline] |
Returns the color to mix up the texture with (default 0xffffffff).
| xl7::direct3d::textures::Texture* xl7::direct3d::clips::TextureClip::GetTexture | ( | ) | const [inline] |
Returns the source texture as the basis of this clip.
| xl7::direct3d::textures::Texture * xl7::direct3d::clips::TextureClip::GetTexture | ( | ml7::Vector2 * | out_top_left, | |
| ml7::Vector2 * | out_bottom_right | |||
| ) |
Returns the source texture as the basis of this clip and stores the upper-left and lower-right corner positions of this clip within the source texture.
| const ml7::Vector2& xl7::direct3d::clips::TextureClip::GetTopLeft | ( | ) | const [inline] |
Returns the upper-left corner of this clip within the source texture.
| bool xl7::direct3d::clips::TextureClip::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).
| TextureClip & xl7::direct3d::clips::TextureClip::operator= | ( | const TextureClip & | rhs | ) |
Copy assignment operator.
| void xl7::direct3d::clips::TextureClip::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 xl7::direct3d::clips::TextureClip::SetBottomRight | ( | const ml7::Vector2 & | bottom_right | ) | [inline] |
Sets the lower-right corner of this clip within the source texture.
| void xl7::direct3d::clips::TextureClip::SetColor | ( | D3DCOLOR | color | ) | [inline] |
Sets the color to mix up the texture with (default 0xffffffff).
| void xl7::direct3d::clips::TextureClip::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 xl7::direct3d::clips::TextureClip::SetTexture | ( | xl7::direct3d::textures::Texture * | texture, | |
| const ml7::Vector2 & | top_left, | |||
| const ml7::Vector2 & | bottom_right | |||
| ) |
Sets the source texture as the basis of this clip as well as the upper-left and lower-right corner positions of this clip within the source texture.
| void xl7::direct3d::clips::TextureClip::SetTexture | ( | xl7::direct3d::textures::Texture * | texture | ) | [inline] |
Sets the source texture as the basis of this clip.
| void xl7::direct3d::clips::TextureClip::SetTopLeft | ( | const ml7::Vector2 & | top_left | ) | [inline] |
Sets the upper-left corner of this clip within the source texture.
| void xl7::direct3d::clips::TextureClip::swap | ( | TextureClip & | rhs | ) |
Swap operation.
1.7.1