|
nngn
|
Post-processing operations. More...
#include <post.h>

Public Member Functions | |
| bool | init () |
| Single-step, swap-chain-independent initialization. | |
| bool | destroy () |
| Releases all resources. | |
| void | resize (uvec2 size) |
| Signals that the frame buffer has been resized. | |
| bool | set_automatic_exposure (bool b) |
| void | set_exposure (float e) |
| void | set_bloom_downscale (std::size_t d) |
| void | set_bloom_threshold (float t) |
| void | set_bloom_blur_size (float n) |
| void | set_bloom_blur_passes (std::size_t n) |
| void | set_bloom_amount (float a) |
| void | set_blur_downscale (std::size_t d) |
| void | set_blur_size (float n) |
| void | set_blur_passes (std::size_t n) |
| void | set_HDR_mix (float m) |
| bool | update () |
| Updates resources as necessary. | |
| bool | bind_frame_buffer () |
| Binds the appropriate frame buffer according to the configuration. | |
| bool | render () |
| Renders all enabled steps. | |
Private Types | |
| enum | Flag : u8 { AUTOMATIC_EXPOSURE = 1u << 0 , SIZE_UPDATED = 1u << 1 , BLOOM_SCALE_UPDATED = 1u << 2 , BLUR_SCALE_UPDATED = 1u << 3 } |
Private Member Functions | |
| bool | enabled () const |
| bool | HDR_enabled () const |
| bool | bloom_enabled () const |
| bool | blur_enabled () const |
| bool | resize_frame_buffers () |
| bool | calc_avg_luminance () |
| bool | bloom () const |
| bool | blur () const |
| bool | HDR () const |
Post-processing operations.
|
private |
|
inline |
Binds the appropriate frame buffer according to the configuration.
May bind either the internal color/depth textures or the default frame buffer.

|
private |


|
inlineprivate |

|
private |


|
inlineprivate |

|
private |


| bool nngn::GLPost::destroy | ( | ) |
Releases all resources.

|
inlineprivate |


|
private |


|
inlineprivate |

| bool nngn::GLPost::init | ( | ) |
Single-step, swap-chain-independent initialization.


| bool nngn::GLPost::render | ( | ) |
Renders all enabled steps.


|
inline |
Signals that the frame buffer has been resized.


|
private |


|
inline |

|
inline |

|
inline |

|
inline |


|
inline |

|
inline |


|
inline |

|
inline |

|
inline |

|
inline |

| bool nngn::GLPost::update | ( | ) |
Updates resources as necessary.


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |