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
34
SLuint
width
;
35
SLuint
height
;
36
SLuint
attachment
;
37
SLuint
fboID
;
38
SLuint
texID
;
39
SLuint
rboID
;
40
};
41
//-----------------------------------------------------------------------------
42
#endif
// SLGLFBO_H
SL.h
SLenum
unsigned int SLenum
Definition:
SL.h:176
SLuint
unsigned int SLuint
Definition:
SL.h:171
SLstring
string SLstring
Definition:
SL.h:158
SLint
int SLint
Definition:
SL.h:170
SLGLFbo
Definition:
SLGLFbo.h:18
SLGLFbo::texID
SLuint texID
Definition:
SLGLFbo.h:38
SLGLFbo::activateAsTexture
void activateAsTexture(int progId, const SLstring &samplerName, int textureUnit=0)
Definition:
SLGLFbo.cpp:83
SLGLFbo::height
SLuint height
Definition:
SLGLFbo.h:35
SLGLFbo::~SLGLFbo
~SLGLFbo()
Definition:
SLGLFbo.cpp:77
SLGLFbo::attachment
SLuint attachment
Definition:
SLGLFbo.h:36
SLGLFbo::fboID
SLuint fboID
Definition:
SLGLFbo.h:37
SLGLFbo::rboID
SLuint rboID
Definition:
SLGLFbo.h:39
SLGLFbo::SLGLFbo
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
SLGLFbo::width
SLuint width
Definition:
SLGLFbo.h:34
modules
sl
source
gl
SLGLFbo.h
Generated by
1.9.1