#include <texture.H>
Inheritance diagram for TEXTURE:
Public Member Functions | |
TEXTURE () | |
TEXTURE (Cstr_ptr &file) | |
virtual | ~TEXTURE () |
Cstr_ptr & | file () const |
const Image & | image () const |
Image & | image () |
bool | load_attempt_failed () const |
void | expand_image () |
virtual int | load_image () |
virtual int | set_image (unsigned char *data, int w, int h, uint bpp=3) |
virtual bool | load_texture (unsigned char **copy=0)=0 |
virtual void | apply_texture (mlib::CWtransf *xf=0)=0 |
void | set_expand_image (bool expand) |
virtual int | dimension () const |
void | Own () const |
void | Free () const |
int | Lock () |
void | Unlock () |
int | Unique () const |
Protected Member Functions | |
void | expand_power2 (int width, int height) |
Protected Attributes | |
str_ptr | _file |
Image | _img |
mlib::Wtransf | _scale |
bool | _image_not_available |
bool | _expand_image |
Definition at line 20 of file texture.H.
|
|
|
|
|
|
|
|
|
|
|
Resizes an image to the least powers of 2 greater than width and height. Definition at line 44 of file texture.C. References _expand_image, _img, _scale, debug, Image::empty(), err_adv(), Image::expand_power2(), Image::height(), mlib::Mat4< Wtransf, Wpt, Wvec, Wline, Wquat >::scaling(), and Image::width(). Referenced by load_image(), and set_image(). |
|
Definition at line 64 of file texture.C. References _img, Image::bpp(), Image::expand_power2(), and Image::resize(). |
|
Definition at line 32 of file texture.H. References _file. |
|
Definition at line 76 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Definition at line 34 of file texture.H. References _img. |
|
Definition at line 33 of file texture.H. References _img. |
|
Definition at line 36 of file texture.H. References _image_not_available. |
|
Reimplemented in TEXTUREgl. Definition at line 14 of file texture.C. References _file, _image_not_available, _img, Image::empty(), expand_image(), and Image::load_file(). Referenced by TEXTUREgl::load_image(). |
|
Implemented in TEXTUREgl. |
|
Definition at line 105 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::REFlock(). |
|
Definition at line 59 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Definition at line 55 of file texture.H. References _expand_image. Referenced by TEXTUREgl::set_mipmap(). |
|
Reimplemented in TEXTUREgl. Definition at line 36 of file texture.C. References _img, Image::empty(), expand_image(), and Image::set(). Referenced by TEXTUREgl::set_image(). |
|
Definition at line 115 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. |
|
Definition at line 111 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::~REFlock(). |
|
Definition at line 65 of file texture.H. Referenced by expand_image(), and set_expand_image(). |
|
Definition at line 61 of file texture.H. Referenced by TEXTUREgl::declare_texture(), file(), TEXTUREgl::free_dl(), TEXTUREgl::load_image(), load_image(), TEXTUREgl::load_texture(), TEXTUREgl::set_image(), and TEXTUREgl::set_texture(). |
|
Definition at line 64 of file texture.H. Referenced by load_attempt_failed(), load_image(), and TEXTUREgl::set_texture(). |
|
Definition at line 62 of file texture.H. Referenced by TEXTUREgl::bpp_to_format(), TEXTUREgl::copy_texture(), expand_image(), expand_power2(), TEXTUREgl::get_size(), image(), load_image(), TEXTUREgl::load_texture(), and set_image(). |
|
Definition at line 63 of file texture.H. Referenced by expand_image(). |