OGLplus (0.52.0) a C++ wrapper for OpenGL

buffer_binding.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_BUFFER_BINDING_1107121519_HPP
14 #define OGLPLUS_BUFFER_BINDING_1107121519_HPP
15 
17 
18 namespace oglplus {
19 
20 #if OGLPLUS_DOCUMENTATION_ONLY
21 class UniformBufferBindingPoint
23  : public LimitedCount
24 {
25 public:
27  UniformBufferBindingPoint(GLuint count);
28 };
29 #elif GL_VERSION_3_1 || GL_ARB_uniform_buffer_object
30 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
31  UniformBufferBindingPoint,
32  MAX_UNIFORM_BUFFER_BINDINGS
33 )
34 #else
35 typedef GLuint UniformBufferBindingPoint;
36 #endif
37 
38 #if OGLPLUS_DOCUMENTATION_ONLY
39 class TransformFeedbackBufferBindingPoint
41  : public LimitedCount
42 {
43 public:
46 };
47 #elif GL_VERSION_4_0 || GL_ARB_transform_feedback3
48 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
49  TransformFeedbackBufferBindingPoint,
50  MAX_TRANSFORM_FEEDBACK_BUFFERS
51 )
52 #else
53 typedef GLuint TransformFeedbackBufferBindingPoint;
54 #endif
55 
56 #if OGLPLUS_DOCUMENTATION_ONLY
57 class AtomicCounterBufferBindingPoint
59  : public LimitedCount
60 {
61 public:
63  AtomicCounterBufferBindingPoint(GLuint count);
64 };
65 #elif GL_VERSION_4_2 || GL_ARB_shader_atomic_counters
66 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
67  AtomicCounterBufferBindingPoint,
68  MAX_ATOMIC_COUNTER_BUFFER_BINDINGS
69 )
70 #else
71 typedef GLuint AtomicCounterBufferBindingPoint;
72 #endif
73 
74 #if OGLPLUS_DOCUMENTATION_ONLY
75 class ShaderStorageBufferBindingPoint
77  : public LimitedCount
78 {
79 public:
81  ShaderStorageBufferBindingPoint(GLuint count);
82 };
83 #elif GL_VERSION_4_3 || GL_ARB_shader_storage_buffer_object
84 OGLPLUS_DECLARE_LIMITED_COUNT_TYPE(
85  ShaderStorageBufferBindingPoint,
86  MAX_SHADER_STORAGE_BUFFER_BINDINGS
87 )
88 #else
89 typedef GLuint ShaderStorageBufferBindingPoint;
90 #endif
91 
92 } // namespace oglplus
93 
94 #endif // include guard
UniformBufferBindingPoint(GLuint count)
Construction from a GLuint.
Generic OpenGL implementation-dependend limited value wrapper.
AtomicCounterBufferBindingPoint(GLuint count)
Construction from a GLuint.
ShaderStorageBufferBindingPoint(GLuint count)
Construction from a GLuint.
TransformFeedbackBufferBindingPoint(GLuint count)
Construction from a GLuint.

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