#include <Texture2D.h>
Inheritance diagram for Texture2D:
Public Types | |
enum | Mapping { UV_MAPPING = (1<<0), XYZ_MAPPING = (1<<1) } |
Public Member Functions | |
Texture2D (void) | |
virtual | ~Texture2D () |
virtual bool | value (unsigned row, unsigned col, Color3f &c) const |
virtual bool | mapUV (float u, float v, Color3f &c) const |
virtual bool | mapXYZ (float x, float y, float z, Color3f &c) const |
bool | mapUV (const Vector2 &uv, Color3f &c) const |
bool | mapXYZ (const Vector3 &v, Color3f &c) const |
Mapping | mapping (void) const |
Protected Member Functions | |
void | _delete_texture (void) |
void | _allocate_texture (unsigned w, unsigned h) |
Protected Attributes | |
Color3f ** | _texture |
unsigned | _width |
unsigned | _height |
Mapping | _mapping |
Definition at line 11 of file Texture2D.h.
|
|
|
Definition at line 22 of file Texture2D.h. |
|
Definition at line 25 of file Texture2D.h. References Texture2D::_delete_texture(). |
|
Definition at line 12 of file Texture2D.cc. References Texture2D::_delete_texture(), Texture2D::_height, Texture2D::_texture, and Texture2D::_width. Referenced by TexturePNG::TexturePNG(). |
|
Definition at line 5 of file Texture2D.cc. References Texture2D::_height, and Texture2D::_texture. Referenced by Texture2D::_allocate_texture(), and Texture2D::~Texture2D(). |
|
|
|
|
|
Implements Texture. Definition at line 37 of file Texture2D.cc. References Texture2D::_height, Texture2D::_texture, and Texture2D::_width. |
|
|
|
Implements Texture. Definition at line 44 of file Texture2D.cc. |
|
Definition at line 28 of file Texture2D.cc. References Texture2D::_height, Texture2D::_texture, and Texture2D::_width. |
|
Definition at line 15 of file Texture2D.h. Referenced by Texture2D::_allocate_texture(), Texture2D::_delete_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value(). |
|
|
|
Definition at line 13 of file Texture2D.h. Referenced by Texture2D::_allocate_texture(), Texture2D::_delete_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value(). |
|
Definition at line 14 of file Texture2D.h. Referenced by Texture2D::_allocate_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value(). |