#include <Texture.hh>


Texture is a function which returns color for given u,v coordinates
Definition at line 33 of file Texture.hh.
Public Member Functions | |
| virtual Color | Get (Math::Point UV) const =0 |
Protected Member Functions | |
| Texture (const Double SizeU=1.0, const Double SizeV=1.0, const Bool Tiled=true) | |
| void | Tile (Math::Point &UV) const |
| virtual std::string | Dump () const |
Protected Attributes | |
| const Bool | Tiled |
| const Double | SizeU |
| const Double | SizeV |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Texture &T) |
| World::Texture::Texture | ( | const Double | SizeU = 1.0, |
|
| const Double | SizeV = 1.0, |
|||
| const Bool | Tiled = true | |||
| ) | [inline, protected] |
Default constructor for creating textures.
Definition at line 41 of file Texture.hh.
| void World::Texture::Tile | ( | Math::Point & | UV | ) | const [inline, protected] |
Change u,v coords if they are outside (0, Size) range
Definition at line 47 of file Texture.hh.
References Math::Point::GetU(), Math::Point::GetV(), Math::Point::SetU(), Math::Point::SetV(), SizeU, and SizeV.
Referenced by World::TexLib::Checked::Get().


| std::string World::Texture::Dump | ( | ) | const [protected, virtual] |
Debug function; dumps information about texture
Reimplemented in World::TexLib::Plain, and World::TexLib::Checked.
Definition at line 23 of file Texture.cc.
References SizeU, SizeV, and Tiled.
Referenced by World::TexLib::Checked::Dump(), World::TexLib::Plain::Dump(), and World::operator<<().

| virtual Color World::Texture::Get | ( | Math::Point | UV | ) | const [pure virtual] |
Get texture color at point (u,v)
Implemented in World::TexLib::Plain, and World::TexLib::Checked.
Referenced by World::Material::GetColor().

| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Texture & | T | |||
| ) | [friend] |
Pretty-printer
Definition at line 33 of file Texture.cc.
const Double World::Texture::SizeU [protected] |
Texture Size
Definition at line 36 of file Texture.hh.
Referenced by Dump(), World::TexLib::Checked::Get(), and Tile().
const Double World::Texture::SizeV [protected] |
Texture Size
Definition at line 36 of file Texture.hh.
Referenced by Dump(), World::TexLib::Checked::Get(), and Tile().
const Bool World::Texture::Tiled [protected] |
Tilling setting
Definition at line 38 of file Texture.hh.
Referenced by Dump(), and World::TexLib::Checked::Get().
1.5.5