Skip to content

Commit 2e52418

Browse files
committed
document setupbloom()
1 parent 5331608 commit 2e52418

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/engine/render/hdr.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ extern GLenum hdrformat;
2020
*/
2121
extern int gethdrformat(int prec, int fallback = GL_RGB);
2222
extern void cleanupbloom();
23+
24+
/**
25+
* @brief Sets up bloom with specified size.
26+
*
27+
* Will attempt to make a set of bloom buffers of size w pixels by h pixels. Uses texture
28+
* type set by gethdrformat() and hdrprec variable. There are six FBOs and textures
29+
* stored in bloomtex/bloomfbo which are modified by this setup operation.
30+
*
31+
* Size of the bl
32+
* @param w width of bloom buffer
33+
* @param h height of bloom buffer
34+
*/
2335
extern void setupbloom(int w, int h);
2436
extern void loadhdrshaders(int aa);
2537
extern void copyhdr(int sw, int sh, GLuint fbo);

0 commit comments

Comments
 (0)