Basic Image AlgorithmS Library
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
GLviewer
OffscreenRendering.hh
1
#ifndef __OFFSCREENRENDERING_HH__
2
#define __OFFSCREENRENDERING_HH__
3
4
#include <bias_config.h>
5
6
#ifndef BIAS_HAVE_OPENGL
7
# error You need BIAS with USE_OpenGL Please recompile BIAS.
8
#endif // BUILD_GLviewer
9
10
#include <Gui/biasgl.h>
11
#include <Base/Debug/Debug.hh>
12
13
#if defined(BIAS_HAVE_GLEW)
14
15
#define BIAS_HAVE_CLASS_OFFSCREENRENDERING
16
17
#include <OpenGLFramework/Base/glfFramebufferObject.hh>
18
#include <OpenGLFramework/Base/glfRenderbuffer.hh>
19
#include <OpenGLFramework/Base/glfTexture2D.hh>
20
21
namespace
BIAS {
22
23
/** @brief Utility class for offscreen rendering used by GLProjection
24
@warning This class can only be used if
25
BIAS_HAVE_CLASS_OFFSCREENRENDERING is defined.
26
@ingroup g_glviewer
27
@author jkollmann */
28
class
BIASGLviewer_EXPORT
OffscreenRendering
:
public
BIAS::Debug
29
{
30
public
:
31
OffscreenRendering
();
32
~
OffscreenRendering
();
33
34
int
Init(
int
imgWidth,
int
imgHeight);
35
bool
IsInitialized()
const
;
36
BIAS::glfFramebufferObject
* GetFBO();
37
38
private
:
39
BIAS::glfRenderbuffer
depthBuffer_;
40
BIAS::glfRenderbuffer
colorBuffer_;
41
BIAS::glfFramebufferObject
fbo_;
42
bool
initialized_;
43
44
OffscreenRendering
(
const
OffscreenRendering
&) {};
45
OffscreenRendering
& operator=(
const
OffscreenRendering
&) {
return
(*
this
);};
46
47
};
48
49
}
50
51
#endif
52
#endif // __OFFSCREENRENDERING_HH__
53
BIAS::OffscreenRendering
Utility class for offscreen rendering used by GLProjection.
Definition:
OffscreenRendering.hh:28
BIAS::glfFramebufferObject
Framebuffer object.
Definition:
glfFramebufferObject.hh:41
BIAS::glfRenderbuffer
The renderbuffer.
Definition:
glfRenderbuffer.hh:36
BIAS::Debug
Definition:
Debug.hh:298
Generated on Tue Feb 6 2018 02:01:37 for Basic Image AlgorithmS Library by
1.8.5