OGLplus (0.52.0) a C++ wrapper for OpenGL

texture_unit.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_TEXTURE_UNIT_1107121519_HPP
14 #define OGLPLUS_TEXTURE_UNIT_1107121519_HPP
15 
17 
18 namespace oglplus {
19 
20 #if OGLPLUS_DOCUMENTATION_ONLY
21 class TextureUnitSelector
23  : public LimitedCount
24 {
25 public:
26  TextureUnitSelector(GLuint count);
27 };
28 #else
29 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
30  TextureUnitSelector,
31  MAX_COMBINED_TEXTURE_IMAGE_UNITS
32 )
33 #endif
34 
35 #if OGLPLUS_DOCUMENTATION_ONLY
36 class ImageUnitSelector
38  : public LimitedCount
39 {
40 public:
41  ImageUnitSelector(GLuint count);
42 };
43 #elif GL_VERSION_4_2 || GL_ARB_shader_image_load_store
44 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
45  ImageUnitSelector,
46  MAX_IMAGE_UNITS
47 )
48 #else
49 typedef GLuint ImageUnitSelector;
50 #endif
51 
52 } // namespace oglplus
53 
54 #endif // include guard
Generic OpenGL implementation-dependend limited value 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).