$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
app.c File Reference
#include "app.h"
#include "app_input.h"
#include "app_input_state.h"
#include "app_profiling.h"
#include "app_ui.h"
#include "async/async_coordinator.h"
#include "env_manager.h"
#include "postprocess_internal.h"
#include "profiler.h"
#include "renderer.h"
#include "scene.h"
#include "scene_gpu_resources.h"
#include "texture.h"
#include "tracy_gpu.h"
#include "window.h"
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for app.c:

Functions

static void app_load_initial_hdr (App *app)
 
int app_init (App *app, int width, int height, const char *title)
 Fully initializes the application state, window, and OpenGL context. More...
 
void app_cleanup (App *app)
 Safely releases all GPU and CPU resources held by the application. More...
 
static void app_render_ui_trampoline (void *user_data)
 
void app_run (App *app)
 Enters the main application rendering and event loop. More...
 
void app_update (App *app)
 One-frame logic update (physics, timers, camera). More...
 
AppInputContext app_input_ctx_from_app (App *app)
 Constructs an AppInputContext from the full App state. More...
 

Variables

static const char *const DEFAULT_ENV_FILENAME = "env.hdr"
 

Function Documentation

◆ app_cleanup()

void app_cleanup ( App *  app)

Safely releases all GPU and CPU resources held by the application.

Here is the call graph for this function:

◆ app_init()

int app_init ( App *  app,
int  width,
int  height,
const char *  title 
)

Fully initializes the application state, window, and OpenGL context.

Here is the call graph for this function:

◆ app_input_ctx_from_app()

AppInputContext app_input_ctx_from_app ( App *  app)

Constructs an AppInputContext from the full App state.

Bridges between the GLFW user-pointer (App*) and the decoupled input API (AppInputContext*). Defined in app.c to keep the heavy App sub-struct includes out of app_input.c.

◆ app_load_initial_hdr()

static void app_load_initial_hdr ( App *  app)
static
Here is the call graph for this function:

◆ app_render_ui_trampoline()

static void app_render_ui_trampoline ( void *  user_data)
static
Here is the call graph for this function:

◆ app_run()

void app_run ( App *  app)

Enters the main application rendering and event loop.

Here is the call graph for this function:

◆ app_update()

void app_update ( App *  app)

One-frame logic update (physics, timers, camera).

Here is the call graph for this function:

Variable Documentation

◆ DEFAULT_ENV_FILENAME

const char* const DEFAULT_ENV_FILENAME = "env.hdr"
static