Public Member Functions

xl7::direct3d::clips::TextureClip Class Reference

#include <TextureClip.h>

List of all members.

Public Member Functions

 TextureClip (void)
 TextureClip (textures::Texture *texture, D3DCOLOR color=0xffffffff)
 TextureClip (textures::Texture *texture, const ml7::Vector2 &top_left, const ml7::Vector2 &bottom_right, D3DCOLOR color=0xffffffff)
 TextureClip (const TextureClip &rhs)
 ~TextureClip (void)
TextureClipoperator= (const TextureClip &rhs)
void swap (TextureClip &rhs)
xl7::direct3d::textures::TextureGetTexture () const
const ml7::Vector2GetTopLeft () const
const ml7::Vector2GetBottomRight () 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::TextureGetTexture (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 ()

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines