gui::material Class Reference

A class that holds rendering data. More...

#include <gui_material.hpp>

Inheritance diagram for gui::material:
gui::gl::material

List of all members.

Public Member Functions

 material ()
 Constructor.
virtual ~material ()
 Destructor.
virtual float get_width () const =0
 Returns the width of the underlying texture (if any).
virtual float get_height () const =0
 Returns the height of the underlying texture (if any).
virtual float get_real_width () const =0
 Returns the physical width of the underlying texture (if any).
virtual float get_real_height () const =0
 Returns the physical height of the underlying texture (if any).

Detailed Description

A class that holds rendering data.

This is an abstract class that must be implemented and created by the corresponding gui::manager_impl.

Definition at line 14 of file gui_material.hpp.


Constructor & Destructor Documentation

gui::material::material (  ) 

Constructor.

Definition at line 5 of file gui_material.cpp.

gui::material::~material (  )  [virtual]

Destructor.

Reimplemented in gui::gl::material.

Definition at line 9 of file gui_material.cpp.


Member Function Documentation

virtual float gui::material::get_height (  )  const [pure virtual]

Returns the height of the underlying texture (if any).

Returns:
The height of the underlying texture (if any)

Implemented in gui::gl::material.

virtual float gui::material::get_real_height (  )  const [pure virtual]

Returns the physical height of the underlying texture (if any).

Returns:
The physical height of the underlying texture (if any)
Note:
Some old hardware don't support textures that have non power of two dimensions. If the user creates such a material, the gui::manager_impl should create a bigger texture that has power of two dimensions (the "physical" dimensions).

Implemented in gui::gl::material.

virtual float gui::material::get_real_width (  )  const [pure virtual]

Returns the physical width of the underlying texture (if any).

Returns:
The physical width of the underlying texture (if any)
Note:
Some old hardware don't support textures that have non power of two dimensions. If the user creates such a material, the gui::manager_impl should create a bigger texture that has power of two dimensions (the "physical" dimensions).

Implemented in gui::gl::material.

virtual float gui::material::get_width (  )  const [pure virtual]

Returns the width of the underlying texture (if any).

Returns:
The width of the underlying texture (if any)

Implemented in gui::gl::material.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 1 21:58:12 2013 for gui by  doxygen 1.6.1