A graphic used to give an item more surface detail. More...
#include <texture.h>
Classes | |
class | TexturePrivate |
Public Member Functions | |
Texture (QObject *parent=0) | |
virtual | ~Texture () |
bool | load (const QUrl &url) |
uint | glTexture () |
A graphic used to give an item more surface detail.
A texture is quasi-repetitious pattern of a defined size, used to convey the coloration, shading, and the surface imperfections of a three dimensional polygon.
This class provides the necessary functionality to work with textures. It is mainly used as a data source for materials.
Definition at line 49 of file texture.h.
Texture::Texture | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 45 of file texture.cpp.
Texture::~Texture | ( | ) | [virtual] |
Definition at line 52 of file texture.cpp.
uint Texture::glTexture | ( | ) |
Retrieve the OpenGL texture id.
Definition at line 89 of file texture.cpp.
bool Texture::load | ( | const QUrl & | url | ) |
Load the data for this texture from a file.
url | The url of the file to load the data from. |
Definition at line 58 of file texture.cpp.