OGLplus (0.52.0) a C++ wrapper for OpenGL

normal_map.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_IMAGES_NORMAL_MAP_1107121519_HPP
14 #define OGLPLUS_IMAGES_NORMAL_MAP_1107121519_HPP
15 
17 
18 namespace oglplus {
19 namespace images {
20 
22 
25 class NormalMap
26  : public FilteredImage<GLfloat, 4>
27 {
28 public:
30 
31 #if OGLPLUS_DOCUMENTATION_ONLY
32 
39  template <typename Extractor>
40  NormalMap(const Image& input, Extractor extractor = Extractor());
41 #endif
42  NormalMap(const Image& input);
43  NormalMap(const Image& input, Filtered::FromRed);
44  NormalMap(const Image& input, Filtered::FromAlpha);
45 };
46 
47 } // images
48 } // oglplus
49 
50 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
51 #include <oglplus/images/normal_map.ipp>
52 #endif
53 
54 #endif // include guard
A filter creating a normal-map/height-map from a height map image.
Definition: normal_map.hpp:25
NormalMap(const Image &input, Extractor extractor=Extractor())
Creates a normal-map from the input height-map image.
FromComponentI< 0 > FromRed
Extractor selecting the Red component of the input image.
Definition: filtered.hpp:261
Base class for image filters.
Base class for various image filters.
Definition: filtered.hpp:32
Wrapper for (texture) image data.
Definition: image.hpp:45
FromComponentI< 3 > FromAlpha
Extractor selecting the Alpha component of the input image.
Definition: filtered.hpp:267

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).