102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
gui_tab_graphics.c File Reference
#include "gui_internal.h"

Go to the source code of this file.

Functions

void draw_graphics_tab (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)

Variables

static const char *const GRAPHICS_API_TOOLTIPS []
static const char *const SCALING_FIT_TOOLTIPS []
static const char *const SCALING_METHOD_TOOLTIPS []
static const char *const PRESENT_FILTER_TOOLTIPS []
static const char *const VERTEX_PRECISION_TOOLTIPS []
static const char * TOOLTIP_GRAPHICS_API = "GPU backend. Default: auto."
static const char * TOOLTIP_WINDOW_WIDTH
static const char * TOOLTIP_WINDOW_HEIGHT
static const char * TOOLTIP_SCALING_FIT
static const char * TOOLTIP_SCALING_METHOD
static const char * TOOLTIP_PRESENT_FILTER
static const char * TOOLTIP_VERTEX_PRECISION
static const char * TOOLTIP_SPRITE_SMOOTH
static const char * TOOLTIP_MSAA_SAMPLES
static const char * TOOLTIP_TEXTURE_UPLOAD_SYNC
static const char * TOOLTIP_GENERATE_TEXTURE_MIPMAPS = "Generate mipmaps for textures to reduce aliasing at smaller sizes. Default: true."
static const char * TOOLTIP_FULLSCREEN

Function Documentation

◆ draw_graphics_tab()

Variable Documentation

◆ GRAPHICS_API_TOOLTIPS

const char* const GRAPHICS_API_TOOLTIPS[]
static
Initial value:
= {
"Auto-selects the best available graphics backend.",
"Vulkan graphics backend.",
"Direct3D 12 graphics backend.",
"OpenGL graphics backend.",
}

Definition at line 3 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ PRESENT_FILTER_TOOLTIPS

const char* const PRESENT_FILTER_TOOLTIPS[]
static
Initial value:
= {
"Nearest-neighbor sampling for presented frames.",
"Linear filtering for presented frames.",
}

Definition at line 21 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ SCALING_FIT_TOOLTIPS

const char* const SCALING_FIT_TOOLTIPS[]
static
Initial value:
= {
"Preserves aspect ratio and adds bars as needed.",
"Fills the whole window even if the image is distorted.",
"Whole-number scaling with aspect ratio preserved.",
}

Definition at line 10 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ SCALING_METHOD_TOOLTIPS

const char* const SCALING_METHOD_TOOLTIPS[]
static
Initial value:
= {
"Preserves the game's native resolution and scales finished frames.",
"Scales inputs in render calls to render at a higher resolution.",
}

Definition at line 16 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_FULLSCREEN

const char* TOOLTIP_FULLSCREEN
static
Initial value:
= "Start in fullscreen. F11 toggles at runtime. "
"Default: false."

Definition at line 54 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_GENERATE_TEXTURE_MIPMAPS

const char* TOOLTIP_GENERATE_TEXTURE_MIPMAPS = "Generate mipmaps for textures to reduce aliasing at smaller sizes. Default: true."
static

Definition at line 52 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_GRAPHICS_API

const char* TOOLTIP_GRAPHICS_API = "GPU backend. Default: auto."
static

Definition at line 33 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_MSAA_SAMPLES

const char* TOOLTIP_MSAA_SAMPLES
static
Initial value:
= "Multisample anti-aliasing samples. Set to 1 "
"to disable. Default: 2."

Definition at line 48 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_PRESENT_FILTER

const char* TOOLTIP_PRESENT_FILTER
static
Initial value:
= "Filter used when presenting scaled frames. "
"Default: linear."

Definition at line 42 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_SCALING_FIT

const char* TOOLTIP_SCALING_FIT
static
Initial value:
= "Fit mode for the game image. Default: "
"letterbox."

Definition at line 38 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_SCALING_METHOD

const char* TOOLTIP_SCALING_METHOD
static
Initial value:
= "Scaling mode when the window is larger than "
"the game resolution. Default: logical."

Definition at line 40 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_SPRITE_SMOOTH

const char* TOOLTIP_SPRITE_SMOOTH
static
Initial value:
= "Smooth 2D Sprites; disable for "
"nearest-neighbor. Default: true."

Definition at line 46 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_TEXTURE_UPLOAD_SYNC

const char* TOOLTIP_TEXTURE_UPLOAD_SYNC
static
Initial value:
= "Wait for each texture upload before "
"continuing. Default: false."

Definition at line 50 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_VERTEX_PRECISION

const char* TOOLTIP_VERTEX_PRECISION
static
Initial value:
= "Vertex coordinate precision during 3D "
"rendering. Default: native."

Definition at line 44 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_WINDOW_HEIGHT

const char* TOOLTIP_WINDOW_HEIGHT
static
Initial value:
= "Initial game window height in pixels. "
"Default: 480."

Definition at line 36 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ TOOLTIP_WINDOW_WIDTH

const char* TOOLTIP_WINDOW_WIDTH
static
Initial value:
= "Initial game window width in pixels. Default: "
"640."

Definition at line 34 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().

◆ VERTEX_PRECISION_TOOLTIPS

const char* const VERTEX_PRECISION_TOOLTIPS[]
static
Initial value:
= {
"Game's original vertex coordinate precision.",
"Subpixel vertex coordinates for smoother 3D movement.\n\nNOTE: Subpixel mode "
"may make certain seams between polygons on the puppy models visible at higher "
"resolutions.",
}

Definition at line 26 of file gui_tab_graphics.c.

Referenced by draw_graphics_tab().