Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
Public Types | Public Member Functions | List of all members
rt::GeneratedMap Class Reference

Some basic texture projections. More...

#include <generatedmap.hpp>

Inheritance diagram for rt::GeneratedMap:
rt::TextureMap

Public Types

enum  Projection { FlatProjection, CubeProjection, SphereProjection }
 

Public Member Functions

 GeneratedMap (Projection projection)
 Create new projection. More...
 
virtual vector map (const element &) const
 Map a surface element to the texture arcording to the projection type.
 
- Public Member Functions inherited from rt::TextureMap
virtual ~TextureMap ()
 Virtual destructor.
 

Detailed Description

Some basic texture projections.

Member Enumeration Documentation

◆ Projection

Enumerator
FlatProjection 

Direct map projection. The element position is directly passed to the texture.

CubeProjection 

Cube projection.

SphereProjection 

Planispheric projection.

Constructor & Destructor Documentation

◆ GeneratedMap()

rt::GeneratedMap::GeneratedMap ( Projection  projection)

Create new projection.

Parameters
projectionType of the projection.

The documentation for this class was generated from the following files: