OGLplus (0.52.0) a C++ wrapper for OpenGL

sort_nw.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_IMAGES_SORT_NW_1404252143_HPP
14 #define OGLPLUS_IMAGES_SORT_NW_1404252143_HPP
15 
16 #include <oglplus/images/image.hpp>
17 
18 namespace oglplus {
19 namespace images {
20 
22 
49 class SortNWMap
50  : public Image
51 {
52 private:
53  typedef GLushort T;
54  static unsigned _pot(unsigned n);
55  static unsigned _next_log(unsigned n);
56  static unsigned _num_steps(unsigned size);
57 public:
59  SortNWMap(unsigned size);
60 };
61 
62 } // images
63 } // oglplus
64 
65 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
66 #include <oglplus/images/sort_nw.ipp>
67 #endif // OGLPLUS_LINK_LIBRARY
68 
69 #endif // include guard
SortNWMap(unsigned size)
Generates the sorting network encoding for size elements.
Generator of an Image encoding a sorting network of specified size.
Definition: sort_nw.hpp:49
Wrapper for (texture) image data.
Definition: image.hpp:45
Image data wrapper.

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).