GluonGraphics::Texture Class Reference

A graphic used to give an item more surface detail. More...

#include <texture.h>

Inheritance diagram for GluonGraphics::Texture:
QObject

List of all members.

Classes

class  TexturePrivate

Public Member Functions

 Texture (QObject *parent=0)
virtual ~Texture ()
bool load (const QUrl &url)
uint glTexture ()

Detailed Description

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.

See also:
Material
Todo:
Add support for multi-dimensional textures and other non-2D textures.

Definition at line 49 of file texture.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

uint Texture::glTexture (  ) 

Retrieve the OpenGL texture id.

Returns:
The OpenGL texture ID for this texture.

Definition at line 89 of file texture.cpp.

bool Texture::load ( const QUrl &  url  ) 

Load the data for this texture from a file.

Parameters:
url The url of the file to load the data from.
Returns:
True if successful, false if not.

Definition at line 58 of file texture.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:43 2010 for Gluon by  doxygen 1.6.3