$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
postprocess_setters.c File Reference
#include "gl_common.h"
#include "log.h"
#include "postprocess_internal.h"
Include dependency graph for postprocess_setters.c:

Functions

static void postprocess_on_state_change (PostProcess *post_processing)
 
void postprocess_enable (PostProcess *post_processing, PostProcessEffect effect)
 Enables a specific effect. More...
 
void postprocess_disable (PostProcess *post_processing, PostProcessEffect effect)
 Disables a specific effect. More...
 
void postprocess_toggle (PostProcess *post_processing, PostProcessEffect effect)
 Toggles the current state of an effect. More...
 
int postprocess_is_enabled (PostProcess *post_processing, PostProcessEffect effect)
 Returns true if an effect is currently active. More...
 
void postprocess_set_vignette (PostProcess *post_processing, float intensity, float smoothness, float roundness)
 
void postprocess_set_grain (PostProcess *post_processing, float intensity)
 
void postprocess_set_exposure (PostProcess *post_processing, float exposure)
 
void postprocess_set_chrom_abbr (PostProcess *post_processing, float strength)
 
void postprocess_set_white_balance (PostProcess *post_processing, float temperature, float tint)
 
void postprocess_set_color_grading (PostProcess *post_processing, float saturation, float contrast, float gamma, float gain, float offset, float lift)
 
void postprocess_set_tonemapper (PostProcess *post_processing, float slope, float toe, float shoulder, float black_clip, float white_clip)
 
void postprocess_set_bloom (PostProcess *post_processing, float intensity, float threshold, float soft_threshold)
 
void postprocess_set_dof (PostProcess *post_processing, float focal_distance, float focal_range, float bokeh_scale)
 
void postprocess_set_dof_anamorphic (PostProcess *post_processing, float anamorphic_ratio)
 
float postprocess_get_exposure (PostProcess *post_processing)
 
void postprocess_set_auto_exposure (PostProcess *post_processing, float min_luminance, float max_luminance, float speed_up, float speed_down, float key_value)
 
void postprocess_set_fxaa (PostProcess *post_processing, float subpix, float edge_threshold, float edge_threshold_min)
 
void postprocess_set_banding (PostProcess *post_processing, BandingMode mode, float levels)
 
void postprocess_set_banding_dither (PostProcess *post_processing, float strength)
 
void postprocess_set_banding_perceptual (PostProcess *post_processing, float gamma)
 
void postprocess_set_banding_channels (PostProcess *post_processing, float red, float green, float blue)
 
void postprocess_set_fog (PostProcess *post_processing, float density, float start, float height_falloff, float fog_r, float fog_g, float fog_b)
 
void postprocess_set_grading_ue_default (PostProcess *post_processing)
 
void postprocess_apply_preset (PostProcess *post_processing, const PostProcessPreset *preset)
 
void postprocess_set_lut3d (PostProcess *post_processing, float intensity, GLuint texture)
 
int postprocess_load_lut3d (PostProcess *post_processing, const char *path)
 

Function Documentation

◆ postprocess_apply_preset()

void postprocess_apply_preset ( PostProcess *  post_processing,
const PostProcessPreset *  preset 
)
Here is the call graph for this function:

◆ postprocess_disable()

void postprocess_disable ( PostProcess *  post_processing,
PostProcessEffect  effect 
)

Disables a specific effect.

Here is the call graph for this function:

◆ postprocess_enable()

void postprocess_enable ( PostProcess *  post_processing,
PostProcessEffect  effect 
)

Enables a specific effect.

Here is the call graph for this function:

◆ postprocess_get_exposure()

float postprocess_get_exposure ( PostProcess *  post_processing)
Here is the call graph for this function:

◆ postprocess_is_enabled()

int postprocess_is_enabled ( PostProcess *  post_processing,
PostProcessEffect  effect 
)

Returns true if an effect is currently active.

◆ postprocess_load_lut3d()

int postprocess_load_lut3d ( PostProcess *  post_processing,
const char *  path 
)

◆ postprocess_on_state_change()

static void postprocess_on_state_change ( PostProcess *  post_processing)
static
Here is the call graph for this function:

◆ postprocess_set_auto_exposure()

void postprocess_set_auto_exposure ( PostProcess *  post_processing,
float  min_luminance,
float  max_luminance,
float  speed_up,
float  speed_down,
float  key_value 
)

◆ postprocess_set_banding()

void postprocess_set_banding ( PostProcess *  post_processing,
BandingMode  mode,
float  levels 
)

◆ postprocess_set_banding_channels()

void postprocess_set_banding_channels ( PostProcess *  post_processing,
float  red,
float  green,
float  blue 
)

◆ postprocess_set_banding_dither()

void postprocess_set_banding_dither ( PostProcess *  post_processing,
float  strength 
)

◆ postprocess_set_banding_perceptual()

void postprocess_set_banding_perceptual ( PostProcess *  post_processing,
float  gamma 
)

◆ postprocess_set_bloom()

void postprocess_set_bloom ( PostProcess *  post_processing,
float  intensity,
float  threshold,
float  soft_threshold 
)

◆ postprocess_set_chrom_abbr()

void postprocess_set_chrom_abbr ( PostProcess *  post_processing,
float  strength 
)

◆ postprocess_set_color_grading()

void postprocess_set_color_grading ( PostProcess *  post_processing,
float  saturation,
float  contrast,
float  gamma,
float  gain,
float  offset,
float  lift 
)

◆ postprocess_set_dof()

void postprocess_set_dof ( PostProcess *  post_processing,
float  focal_distance,
float  focal_range,
float  bokeh_scale 
)

◆ postprocess_set_dof_anamorphic()

void postprocess_set_dof_anamorphic ( PostProcess *  post_processing,
float  anamorphic_ratio 
)

◆ postprocess_set_exposure()

void postprocess_set_exposure ( PostProcess *  post_processing,
float  exposure 
)

◆ postprocess_set_fog()

void postprocess_set_fog ( PostProcess *  post_processing,
float  density,
float  start,
float  height_falloff,
float  fog_r,
float  fog_g,
float  fog_b 
)

◆ postprocess_set_fxaa()

void postprocess_set_fxaa ( PostProcess *  post_processing,
float  subpix,
float  edge_threshold,
float  edge_threshold_min 
)

◆ postprocess_set_grading_ue_default()

void postprocess_set_grading_ue_default ( PostProcess *  post_processing)
Here is the call graph for this function:

◆ postprocess_set_grain()

void postprocess_set_grain ( PostProcess *  post_processing,
float  intensity 
)

◆ postprocess_set_lut3d()

void postprocess_set_lut3d ( PostProcess *  post_processing,
float  intensity,
GLuint  texture 
)

◆ postprocess_set_tonemapper()

void postprocess_set_tonemapper ( PostProcess *  post_processing,
float  slope,
float  toe,
float  shoulder,
float  black_clip,
float  white_clip 
)

◆ postprocess_set_vignette()

void postprocess_set_vignette ( PostProcess *  post_processing,
float  intensity,
float  smoothness,
float  roundness 
)

◆ postprocess_set_white_balance()

void postprocess_set_white_balance ( PostProcess *  post_processing,
float  temperature,
float  tint 
)

◆ postprocess_toggle()

void postprocess_toggle ( PostProcess *  post_processing,
PostProcessEffect  effect 
)

Toggles the current state of an effect.

Here is the call graph for this function: