OGLplus (0.52.0) a C++ wrapper for OpenGL

brushed_metal.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_IMAGES_BRUSHED_METAL_1107121519_HPP
14 #define OGLPLUS_IMAGES_BRUSHED_METAL_1107121519_HPP
15 
16 #include <oglplus/images/image.hpp>
17 
18 namespace oglplus {
19 namespace images {
20 
22 
26  : public Image
27 {
28 private:
29  static void _make_pixel(
30  GLubyte* b,
31  GLubyte *e,
32  GLsizei w,
33  GLsizei h,
34  GLint x,
35  GLint y,
36  GLdouble /*c*/,
37  GLubyte r,
38  GLubyte g
39  );
40 
41  static void _make_scratch(
42  GLubyte* b,
43  GLubyte *e,
44  GLsizei w,
45  GLsizei h,
46  GLint x,
47  GLint y,
48  GLdouble dx,
49  GLdouble dy
50  );
51 public:
53  GLsizei width,
54  GLsizei height,
55  unsigned n_scratches,
56  int s_disp_min,
57  int s_disp_max,
58  int t_disp_min,
59  int t_disp_max
60  );
61 };
62 
63 } // images
64 } // oglplus
65 
66 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
67 #include <oglplus/images/brushed_metal.ipp>
68 #endif
69 
70 #endif // include guard
Creates a RGB (three components per pixel) image used for brushed metal effect.
Definition: brushed_metal.hpp:25
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).