Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
sources
material
generatedmap.hpp
1
15
#pragma once
16
17
#include "texturemap.hpp"
18
19
namespace
rt
{
20
24
class
GeneratedMap
:
public
TextureMap
{
25
public
:
26
enum
Projection
{
27
FlatProjection
,
28
CubeProjection
,
29
SphereProjection
30
};
31
36
GeneratedMap
(
Projection
projection);
37
41
virtual
vector
map
(
const
element
&)
const
;
42
43
private
:
44
Projection
_proj;
45
};
46
47
}
rt::GeneratedMap
Some basic texture projections.
Definition:
generatedmap.hpp:24
rt
Definition:
bitmap.cpp:4
rt::GeneratedMap::CubeProjection
Definition:
generatedmap.hpp:28
rt::GeneratedMap::Projection
Projection
Definition:
generatedmap.hpp:26
rt::GeneratedMap::GeneratedMap
GeneratedMap(Projection projection)
Create new projection.
Definition:
generatedmap.cpp:10
rt::vector
3D vector
Definition:
vector.hpp:28
rt::GeneratedMap::SphereProjection
Definition:
generatedmap.hpp:29
rt::element
Geometric surface element unit.
Definition:
element.hpp:43
rt::TextureMap
Surface element to Texture map.
Definition:
texturemap.hpp:27
rt::GeneratedMap::FlatProjection
Definition:
generatedmap.hpp:27
rt::GeneratedMap::map
virtual vector map(const element &) const
Map a surface element to the texture arcording to the projection type.
Definition:
generatedmap.cpp:14
Generated on Fri Jan 26 2018 17:51:57 for Ray Tracer Common Project by
1.8.15