librtl

rtl_texture Class Reference

base class for providing texture mapping for materials. More...

#include <texture.h>

Inherits dyn_collectable.

Inherited by rtl_solidtexture and rtl_texturemap.

List of all members.

Protected Members


Detailed Description

base class for providing texture mapping for materials.

Texture classes are used in connjunction with rtl_material classes. Each material may or may not have an associated texture. If it does have a texture associated with it then the texture's texture function will be called. This allows the definition of surface properties to a material before shading by the illumination model takes place.

Sub-classes must over-ride the texture function.


Member Function Documentation

rtl_texture::rtl_texture() [protected]

Protected default constructor prohibits public creation of this base class.

virtual void rtl_texture::texture( rtl_material*, rtl_ray&, const jVec3&, jNorm3& ) = 0 [protected, pure virtual]

This function is called by the given material which has this to allow the definition of the materials surface properties before it is shaded onto an object.

Reimplemented in rtl_texturemap and rtl_binarytexture.


The documentation for this class was generated from the following file:
JSP / librtl v0.2 mtigges@cpsc.ucalgary.ca