Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
postprocess_input.c File Reference
#include "postprocess_input.h"
#include "action_notifier.h"
#include "app_settings.h"
#include "effect_benchmark.h"
#include "effects/fx_auto_exposure.h"
#include "effects/fx_bloom.h"
#include "log.h"
#include "postprocess.h"
#include "postprocess_presets.h"
#include "utils.h"
#include <GLFW/glfw3.h>
#include <stdbool.h>
#include <string.h>
Include dependency graph for postprocess_input.c:

Enumerations

enum  { NOTIF_BUF_SIZE = 128 }
 

Functions

static void toggle_postfx (const PostProcessInputContext *ctx, PostProcessEffect feature, const char *name)
 
static void toggle_postfx_complex (const PostProcessInputContext *ctx, int mods, PostProcessEffect feature, PostProcessEffect debug_feature, const char *name, const char *debug_name)
 
static void handle_exposure_input (const PostProcessInputContext *ctx, int key)
 
static void cycle_banding_styles (const PostProcessInputContext *ctx)
 
static void cycle_lut_styles (const PostProcessInputContext *ctx, int mods)
 
static void handle_preset_input (const PostProcessInputContext *ctx, int key, int mods)
 
static void handle_fxaa_input (const PostProcessInputContext *ctx, int mods)
 
static void handle_ae_path_toggle (const PostProcessInputContext *ctx)
 
static void handle_auto_exposure_key (const PostProcessInputContext *ctx, int mods)
 
static const char * postprocess_cycle_bloom_debug (PostProcess *post_processing)
 
void postprocess_input_handle_key (const PostProcessInputContext *ctx, int key, int mods)
 Handles key input events related to post-processing.
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOTIF_BUF_SIZE 

Function Documentation

◆ cycle_banding_styles()

static void cycle_banding_styles ( const PostProcessInputContext *  ctx)
static
Here is the call graph for this function:

◆ cycle_lut_styles()

static void cycle_lut_styles ( const PostProcessInputContext *  ctx,
int  mods 
)
static
Here is the call graph for this function:

◆ handle_ae_path_toggle()

static void handle_ae_path_toggle ( const PostProcessInputContext *  ctx)
static
Here is the call graph for this function:

◆ handle_auto_exposure_key()

static void handle_auto_exposure_key ( const PostProcessInputContext *  ctx,
int  mods 
)
static
Here is the call graph for this function:

◆ handle_exposure_input()

static void handle_exposure_input ( const PostProcessInputContext *  ctx,
int  key 
)
static
Here is the call graph for this function:

◆ handle_fxaa_input()

static void handle_fxaa_input ( const PostProcessInputContext *  ctx,
int  mods 
)
static
Here is the call graph for this function:

◆ handle_preset_input()

static void handle_preset_input ( const PostProcessInputContext *  ctx,
int  key,
int  mods 
)
static
Here is the call graph for this function:

◆ postprocess_cycle_bloom_debug()

static const char * postprocess_cycle_bloom_debug ( PostProcess *  post_processing)
static
Here is the call graph for this function:

◆ postprocess_input_handle_key()

void postprocess_input_handle_key ( const PostProcessInputContext *  ctx,
int  key,
int  mods 
)

Handles key input events related to post-processing.

Processes keys for toggling effects (Bloom, DOF, etc.), cycling presets, and adjusting exposure.

Parameters
ctxPointer to the input context.
keyThe GLFW key code.
modsThe GLFW modifier flags.
Here is the call graph for this function:

◆ toggle_postfx()

static void toggle_postfx ( const PostProcessInputContext *  ctx,
PostProcessEffect  feature,
const char *  name 
)
static
Here is the call graph for this function:

◆ toggle_postfx_complex()

static void toggle_postfx_complex ( const PostProcessInputContext *  ctx,
int  mods,
PostProcessEffect  feature,
PostProcessEffect  debug_feature,
const char *  name,
const char *  debug_name 
)
static
Here is the call graph for this function: