SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLGLFbo.h
Go to the documentation of this file.
1 /**
2  * \file SLGLFbo.h
3  * \brief Wraps an OpenGL framebuffer object
4  * \date September 2018
5  * \authors Stefan Thoeni
6  * \copyright http://opensource.org/licenses/GPL-3.0
7  * \remarks Please use clangformat to format the code. See more code style on
8  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
9 */
10 
11 #ifndef SLGLFBO_H
12 #define SLGLFBO_H
13 
14 #include <SL.h>
15 
16 //-----------------------------------------------------------------------------
17 class SLGLFbo
18 {
19 public:
20  SLGLFbo(SLuint w,
21  SLuint h,
22  SLenum magFilter = GL_NEAREST,
23  SLenum minFilter = GL_NEAREST,
24  SLint internalFormat = GL_RGB16F,
25  SLint format = GL_FLOAT,
26  SLint wrap = GL_REPEAT);
27 
28  ~SLGLFbo();
29 
30  void activateAsTexture(int progId,
31  const SLstring& samplerName,
32  int textureUnit = 0);
33 
40 };
41 //-----------------------------------------------------------------------------
42 #endif // SLGLFBO_H
unsigned int SLenum
Definition: SL.h:176
unsigned int SLuint
Definition: SL.h:171
string SLstring
Definition: SL.h:158
int SLint
Definition: SL.h:170
SLuint texID
Definition: SLGLFbo.h:38
void activateAsTexture(int progId, const SLstring &samplerName, int textureUnit=0)
Definition: SLGLFbo.cpp:83
SLuint height
Definition: SLGLFbo.h:35
~SLGLFbo()
Definition: SLGLFbo.cpp:77
SLuint attachment
Definition: SLGLFbo.h:36
SLuint fboID
Definition: SLGLFbo.h:37
SLuint rboID
Definition: SLGLFbo.h:39
SLGLFbo(SLuint w, SLuint h, SLenum magFilter=GL_NEAREST, SLenum minFilter=GL_NEAREST, SLint internalFormat=GL_RGB16F, SLint format=GL_FLOAT, SLint wrap=GL_REPEAT)
Definition: SLGLFbo.cpp:15
SLuint width
Definition: SLGLFbo.h:34