librtl

rtl_texturemap Class Reference

Maps a texture onto the object struck by a ray. More...

#include <texture.h>

Inherits rtl_texture.

List of all members.

Public Members

Protected Members

Static Protected Members


Detailed Description

Maps a texture onto the object struck by a ray.

This class assumes that the uv function was implemented for the object that was struck. The mapping adjust the diffuse colour of the object.

Example:

Examples:
Soft.

Member Function Documentation

rtl_texturemap::rtl_texturemap( const jImage&, jUSInt = 1, jUSInt = 1 )

Creates a texture mapping object from the given texture map. The two integers specify how much to tile the texture.

void rtl_texturemap::transform( const jMat3& _T )

Texture space transformation. The given matrix is multiplied into the current texture space transformation matrix. This matrix if set is applied to the u,v coordinates.

void rtl_texturemap::transform( const jMat4& _T )

Object space transformation. The given matrix is multiplied into the current object space transformation matrix. This matrix if set is applied to the point for which u,v coordinates will be computed.

Examples:
Soft.

void rtl_texturemap::texture( rtl_material*, rtl_ray&, const jVec3&, jNorm3& ) [protected]

Reimplemented from rtl_texture.


Member Data Documentation

jMat3 rtl_texturemap::tsT [protected]

jMat4 rtl_texturemap::osT [protected]

jImage rtl_texturemap::image [protected]

jUSInt rtl_texturemap::utile [protected]

jUSInt rtl_texturemap::vtile [protected]

jByte rtl_texturemap::transformations [protected]

const jByte rtl_texturemap::tsTransform [static, protected]

const jByte rtl_texturemap::osTransform [static, protected]


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