OGLplus (0.52.0) a C++ wrapper for OpenGL

bound.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_OBJECT_BOUND_1405011014_HPP
14 #define OGLPLUS_OBJECT_BOUND_1405011014_HPP
15 
16 #include <oglplus/object/name.hpp>
17 
18 namespace oglplus {
19 
20 template <typename ObjTag>
21 class ObjectOps<tag::CurrentBound, ObjTag>
22  : public ObjCommonOps<ObjTag>
23  , public BoundObjOps<ObjTag>
24 {
25 protected:
26  ObjectOps(void) { }
27 public:
28  typedef typename BoundObjOps<ObjTag>::Target Target;
29 };
30 
31 template <typename ObjTag>
32 class Reference<ObjectOps<tag::CurrentBound, ObjTag>>
33  : public ObjectOps<tag::CurrentBound, ObjTag>
34 {
35 private:
36  typedef ObjectOps<tag::CurrentBound, ObjTag> Base;
37 public:
38  Reference(void)
39  {
40  this->_copy(ObjBindingOps<ObjTag>::Binding());
41  }
42 
43  Reference(typename Base::Target init_tgt)
44  {
45  this->_copy(ObjBindingOps<ObjTag>::Binding(init_tgt));
46  this->target = init_tgt;
47  }
48 };
49 
50 } // namespace oglplus
51 
52 #endif // include guard
Base class for OpenGL "named" objects.

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