SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
d
e
f
h
i
k
l
m
n
r
s
t
Properties
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
b
c
e
f
g
i
j
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Typedefs
a
c
h
j
o
s
t
Enumerations
a
c
d
e
h
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
p
r
s
t
u
v
Macros
a
b
e
f
g
i
l
m
o
p
s
t
u
w
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