$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
postprocess_input.c File Reference
#include "postprocess_input.h"
#include "log.h"
#include "postprocess_presets.h"
#include "utils.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 handle_preset_input (const PostProcessInputContext *ctx, int key, int mods)
 
static void handle_fxaa_input (const PostProcessInputContext *ctx, int mods)
 
void postprocess_input_handle_key (const PostProcessInputContext *ctx, int key, int mods)
 Handles key input events related to post-processing. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOTIF_BUF_SIZE 

Function Documentation

◆ 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_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: