OGLplus (0.52.0) a C++ wrapper for OpenGL

framebuffer.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_ERROR_FRAMEBUFFER_1405022241_HPP
14 #define OGLPLUS_ERROR_FRAMEBUFFER_1405022241_HPP
15 
16 #include <oglplus/config/basic.hpp>
17 #include <oglplus/error/object.hpp>
19 
20 namespace oglplus {
21 
22 // NOTE: Xlib.h defines this symbol
23 // using the preprocessor.
24 #ifdef Status
25 #undef Status
26 #endif
27 
29 
33  : public ObjectError
34 {
35 private:
36  FramebufferStatus _status;
37 public:
38  static const char* Message(void);
39 
40  IncompleteFramebuffer(const char* message)
41  : ObjectError(message)
42  { }
43 
44  ~IncompleteFramebuffer(void) throw()
45  { }
46 
48  {
49  _status = status;
50  EnumParam(status);
51  return *this;
52  }
53 
54  FramebufferStatus Status(void) const
55  {
56  return _status;
57  }
58 };
59 
60 } // namespace oglplus
61 
62 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
63 #include <oglplus/error/framebuffer.ipp>
64 #endif
65 
66 #endif // include guard
FramebufferStatus
Framebuffer status enumeration.
Definition: framebuffer_status.hpp:24
Declaration of OGLplus object-related error.
Framebuffer status enumeration.
GLenum EnumParam(void) const
Returns the value of the enumeration parameter related to the error.
Incomplete framebuffer exception class.
Definition: framebuffer.hpp:32
Exception class for GL object-related errors.
Definition: object.hpp:24

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