Public Member Functions

fl7::Image Class Reference

#include <Image.h>

List of all members.

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)
Imageoperator= (const Image &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

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.


Member Function Documentation

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).

Image & fl7::Image::operator= ( const Image rhs  ) 

Copy assignment operator.

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.


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