102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_mods.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <windows.h>
#include <dttr_runtime.h>

Go to the source code of this file.

Data Structures

struct  DTTR_Mods_ExceptionReportRequest
struct  DTTR_Mods_ExceptionReport
struct  DTTR_Mods_API
struct  DTTR_Mods_Context
struct  DTTR_Mods_Info
struct  DTTR_Mods_FrameContext
struct  DTTR_Mods_PresentContext
struct  DTTR_Mods_WindowContext
struct  DTTR_Mods_GraphicsContext
struct  DTTR_Mods_InputContext
struct  DTTR_Mods_RenderGameContext
struct  DTTR_Mods_RenderContext

Macros

#define DTTR_MODS_EXCEPTION_REPORT_STACK_TRACE_CAPACITY   16384u
#define DTTR_MODS_LOG_LVL_TRACE   0
#define DTTR_MODS_LOG_LVL_DEBUG   1
#define DTTR_MODS_LOG_LVL_INFO   2
#define DTTR_MODS_LOG_LVL_WARN   3
#define DTTR_MODS_LOG_LVL_ERROR   4
#define DTTR_MODS_LOG_LVL_FATAL   5
#define DTTR_MODS_LOG(ctx, level, ...)
#define DTTR_MODS_LOG_TRACE(ctx, ...)
#define DTTR_MODS_LOG_DEBUG(ctx, ...)
#define DTTR_MODS_LOG_INFO(ctx, ...)
#define DTTR_MODS_LOG_WARN(ctx, ...)
#define DTTR_MODS_LOG_ERROR(ctx, ...)
#define DTTR_MODS_LOG_FATAL(ctx, ...)
#define DTTR_EXPORT   __declspec(dllexport)
#define DTTR_MODS_INFO(mod_name, mod_version, mod_author)
#define DTTR_MODS_INIT
#define DTTR_MODS_CLEANUP   DTTR_EXPORT void DTTR_Mod_Cleanup()
#define DTTR_MODS_TICK   DTTR_EXPORT void DTTR_Mod_Tick()
#define DTTR_MODS_LATE_INIT   DTTR_EXPORT void DTTR_Mod_LateInit()
#define DTTR_MODS_BEFORE_UNLOAD   DTTR_EXPORT void DTTR_Mod_BeforeUnload()
#define DTTR_MODS_FRAME_BEGIN   DTTR_EXPORT void DTTR_Mod_FrameBegin(const DTTR_Mods_FrameContext *ctx)
#define DTTR_MODS_BEFORE_GAME_FRAME   DTTR_EXPORT void DTTR_Mod_BeforeGameFrame(const DTTR_Mods_FrameContext *ctx)
#define DTTR_MODS_AFTER_GAME_FRAME   DTTR_EXPORT void DTTR_Mod_AfterGameFrame(const DTTR_Mods_FrameContext *ctx)
#define DTTR_MODS_BEFORE_PRESENT   DTTR_EXPORT void DTTR_Mod_BeforePresent(const DTTR_Mods_PresentContext *ctx)
#define DTTR_MODS_AFTER_PRESENT   DTTR_EXPORT void DTTR_Mod_AfterPresent(const DTTR_Mods_PresentContext *ctx)
#define DTTR_MODS_FRAME_END   DTTR_EXPORT void DTTR_Mod_FrameEnd(const DTTR_Mods_FrameContext *ctx)
#define DTTR_MODS_IMGUI_BEGIN   DTTR_EXPORT void DTTR_Mod_ImGuiBegin(const DTTR_Mods_RenderContext *ctx)
#define DTTR_MODS_IMGUI_END   DTTR_EXPORT void DTTR_Mod_ImGuiEnd(const DTTR_Mods_RenderContext *ctx)
#define DTTR_MODS_OVERLAY_VISIBLE_CHANGED   DTTR_EXPORT void DTTR_Mod_OverlayVisibleChanged(bool visible)
#define DTTR_MODS_WINDOW_CREATED   DTTR_EXPORT void DTTR_Mod_WindowCreated(const DTTR_Mods_WindowContext *ctx)
#define DTTR_MODS_WINDOW_RESIZED   DTTR_EXPORT void DTTR_Mod_WindowResized(const DTTR_Mods_WindowContext *ctx)
#define DTTR_MODS_WINDOW_DESTROYING   DTTR_EXPORT void DTTR_Mod_WindowDestroying(const DTTR_Mods_WindowContext *ctx)
#define DTTR_MODS_GRAPHICS_DEVICE_CREATED   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceCreated(const DTTR_Mods_GraphicsContext *ctx)
#define DTTR_MODS_GRAPHICS_DEVICE_LOST   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceLost(const DTTR_Mods_GraphicsContext *ctx)
#define DTTR_MODS_GRAPHICS_DEVICE_RESTORED   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceRestored(const DTTR_Mods_GraphicsContext *ctx)
#define DTTR_MODS_GRAPHICS_DEVICE_DESTROYING
#define DTTR_MODS_BEFORE_EVENT   DTTR_EXPORT bool DTTR_Mod_BeforeEvent(const SDL_Event *event)
#define DTTR_MODS_AFTER_EVENT   DTTR_EXPORT void DTTR_Mod_AfterEvent(const SDL_Event *event, bool consumed)
#define DTTR_MODS_INPUT_MODE_CHANGED   DTTR_EXPORT void DTTR_Mod_InputModeChanged(const DTTR_Mods_InputContext *ctx)
#define DTTR_MODS_EVENT   DTTR_EXPORT bool DTTR_Mod_Event(const SDL_Event *event)
#define DTTR_MODS_RENDER_GAME   DTTR_EXPORT void DTTR_Mod_RenderGame(const DTTR_Mods_RenderGameContext *ctx)
#define DTTR_MODS_RENDER   DTTR_EXPORT void DTTR_Mod_Render(const DTTR_Mods_RenderContext *ctx)
#define DTTR_MODS_SHOULD_ADVANCE_GAME_FRAME   DTTR_EXPORT bool DTTR_Mod_ShouldAdvanceGameFrame()
#define DTTR_MODS_GAME_FRAME_ADVANCED   DTTR_EXPORT void DTTR_Mod_GameFrameAdvanced()
#define DTTR_MODS_GAME_FRAME_BLOCKED   DTTR_EXPORT void DTTR_Mod_GameFrameBlocked()

Typedefs

typedef struct SDL_Window SDL_Window
typedef union SDL_Event SDL_Event
typedef bool(* DTTR_Mods_WriteExceptionReportFn) (const DTTR_Mods_ExceptionReportRequest *request, DTTR_Mods_ExceptionReport *report)
typedef void(* DTTR_Mods_LogFn) (int level, const char *file, int line, const char *fmt,...)
typedef bool(* DTTR_Mods_LogIsEnabledFn) (int level)
typedef bool(* DTTR_Mods_InitFn) (const DTTR_Mods_Context *ctx)
typedef void(* DTTR_Mods_CleanupFn) ()
typedef void(* DTTR_Mods_TickFn) ()
typedef bool(* DTTR_Mods_EventFn) (const SDL_Event *event)
typedef const DTTR_Mods_Info *(* DTTR_Mods_InfoFn) ()
typedef void(* DTTR_Mods_LateInitFn) ()
typedef void(* DTTR_Mods_BeforeUnloadFn) ()
typedef void(* DTTR_Mods_RenderGameFn) (const DTTR_Mods_RenderGameContext *ctx)
typedef void(* DTTR_Mods_RenderFn) (const DTTR_Mods_RenderContext *ctx)
typedef void(* DTTR_Mods_FrameBeginFn) (const DTTR_Mods_FrameContext *ctx)
typedef void(* DTTR_Mods_BeforeGameFrameFn) (const DTTR_Mods_FrameContext *ctx)
typedef void(* DTTR_Mods_AfterGameFrameFn) (const DTTR_Mods_FrameContext *ctx)
typedef void(* DTTR_Mods_BeforePresentFn) (const DTTR_Mods_PresentContext *ctx)
typedef void(* DTTR_Mods_AfterPresentFn) (const DTTR_Mods_PresentContext *ctx)
typedef void(* DTTR_Mods_FrameEndFn) (const DTTR_Mods_FrameContext *ctx)
typedef void(* DTTR_Mods_ImGuiBeginFn) (const DTTR_Mods_RenderContext *ctx)
typedef void(* DTTR_Mods_ImGuiEndFn) (const DTTR_Mods_RenderContext *ctx)
typedef void(* DTTR_Mods_OverlayVisibleChangedFn) (bool visible)
typedef void(* DTTR_Mods_WindowCreatedFn) (const DTTR_Mods_WindowContext *ctx)
typedef void(* DTTR_Mods_WindowResizedFn) (const DTTR_Mods_WindowContext *ctx)
typedef void(* DTTR_Mods_WindowDestroyingFn) (const DTTR_Mods_WindowContext *ctx)
typedef void(* DTTR_Mods_GraphicsDeviceCreatedFn) (const DTTR_Mods_GraphicsContext *ctx)
typedef void(* DTTR_Mods_GraphicsDeviceLostFn) (const DTTR_Mods_GraphicsContext *ctx)
typedef void(* DTTR_Mods_GraphicsDeviceRestoredFn) (const DTTR_Mods_GraphicsContext *ctx)
typedef void(* DTTR_Mods_GraphicsDeviceDestroyingFn) (const DTTR_Mods_GraphicsContext *ctx)
typedef bool(* DTTR_Mods_BeforeEventFn) (const SDL_Event *event)
typedef void(* DTTR_Mods_AfterEventFn) (const SDL_Event *event, bool consumed)
typedef void(* DTTR_Mods_InputModeChangedFn) (const DTTR_Mods_InputContext *ctx)
typedef bool(* DTTR_Mods_ShouldAdvanceGameFrameFn) ()
typedef void(* DTTR_Mods_GameFrameAdvancedFn) ()
typedef void(* DTTR_Mods_GameFrameBlockedFn) ()

Enumerations

enum  DTTR_Mods_GraphicsBackend { DTTR_MODS_GRAPHICS_BACKEND_UNKNOWN = 0 , DTTR_MODS_GRAPHICS_BACKEND_SDL_GPU = 1 , DTTR_MODS_GRAPHICS_BACKEND_OPENGL = 2 }

Functions

static DTTR_Mods_WriteExceptionReportFn DTTR_Mods_GetWriteExceptionReportFn (const DTTR_Mods_API *api)
static bool DTTR_Mods_ContextIsCompatible (const DTTR_Mods_Context *ctx)

Detailed Description

Mod DLL API for modules loaded from mods/.

Mods must export DTTR_Mod_Init and DTTR_Mod_Cleanup; optional callbacks can be exported to observe frame, window, graphics, input, event, and unload lifecycle events.

Definition in file dttr_mods.h.

Macro Definition Documentation

◆ DTTR_EXPORT

#define DTTR_EXPORT   __declspec(dllexport)

Definition at line 236 of file dttr_mods.h.

◆ DTTR_MODS_AFTER_EVENT

#define DTTR_MODS_AFTER_EVENT   DTTR_EXPORT void DTTR_Mod_AfterEvent(const SDL_Event *event, bool consumed)

Definition at line 336 of file dttr_mods.h.

◆ DTTR_MODS_AFTER_GAME_FRAME

#define DTTR_MODS_AFTER_GAME_FRAME   DTTR_EXPORT void DTTR_Mod_AfterGameFrame(const DTTR_Mods_FrameContext *ctx)

Definition at line 284 of file dttr_mods.h.

◆ DTTR_MODS_AFTER_PRESENT

#define DTTR_MODS_AFTER_PRESENT   DTTR_EXPORT void DTTR_Mod_AfterPresent(const DTTR_Mods_PresentContext *ctx)

Definition at line 294 of file dttr_mods.h.

◆ DTTR_MODS_BEFORE_EVENT

#define DTTR_MODS_BEFORE_EVENT   DTTR_EXPORT bool DTTR_Mod_BeforeEvent(const SDL_Event *event)

Definition at line 333 of file dttr_mods.h.

◆ DTTR_MODS_BEFORE_GAME_FRAME

#define DTTR_MODS_BEFORE_GAME_FRAME   DTTR_EXPORT void DTTR_Mod_BeforeGameFrame(const DTTR_Mods_FrameContext *ctx)

Definition at line 278 of file dttr_mods.h.

◆ DTTR_MODS_BEFORE_PRESENT

#define DTTR_MODS_BEFORE_PRESENT   DTTR_EXPORT void DTTR_Mod_BeforePresent(const DTTR_Mods_PresentContext *ctx)

Definition at line 290 of file dttr_mods.h.

◆ DTTR_MODS_BEFORE_UNLOAD

#define DTTR_MODS_BEFORE_UNLOAD   DTTR_EXPORT void DTTR_Mod_BeforeUnload()

Definition at line 268 of file dttr_mods.h.

◆ DTTR_MODS_CLEANUP

#define DTTR_MODS_CLEANUP   DTTR_EXPORT void DTTR_Mod_Cleanup()

Definition at line 265 of file dttr_mods.h.

◆ DTTR_MODS_EVENT

#define DTTR_MODS_EVENT   DTTR_EXPORT bool DTTR_Mod_Event(const SDL_Event *event)

Definition at line 343 of file dttr_mods.h.

◆ DTTR_MODS_EXCEPTION_REPORT_STACK_TRACE_CAPACITY

#define DTTR_MODS_EXCEPTION_REPORT_STACK_TRACE_CAPACITY   16384u

Definition at line 22 of file dttr_mods.h.

◆ DTTR_MODS_FRAME_BEGIN

#define DTTR_MODS_FRAME_BEGIN   DTTR_EXPORT void DTTR_Mod_FrameBegin(const DTTR_Mods_FrameContext *ctx)

Definition at line 272 of file dttr_mods.h.

◆ DTTR_MODS_FRAME_END

#define DTTR_MODS_FRAME_END   DTTR_EXPORT void DTTR_Mod_FrameEnd(const DTTR_Mods_FrameContext *ctx)

Definition at line 298 of file dttr_mods.h.

◆ DTTR_MODS_GAME_FRAME_ADVANCED

#define DTTR_MODS_GAME_FRAME_ADVANCED   DTTR_EXPORT void DTTR_Mod_GameFrameAdvanced()

Definition at line 358 of file dttr_mods.h.

◆ DTTR_MODS_GAME_FRAME_BLOCKED

#define DTTR_MODS_GAME_FRAME_BLOCKED   DTTR_EXPORT void DTTR_Mod_GameFrameBlocked()

Definition at line 361 of file dttr_mods.h.

◆ DTTR_MODS_GRAPHICS_DEVICE_CREATED

#define DTTR_MODS_GRAPHICS_DEVICE_CREATED   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceCreated(const DTTR_Mods_GraphicsContext *ctx)

Definition at line 319 of file dttr_mods.h.

◆ DTTR_MODS_GRAPHICS_DEVICE_DESTROYING

#define DTTR_MODS_GRAPHICS_DEVICE_DESTROYING
Value:
DTTR_EXPORT void DTTR_Mod_GraphicsDeviceDestroying( \
)
void void * ctx
#define DTTR_EXPORT
Definition dttr_mods.h:236

Definition at line 328 of file dttr_mods.h.

◆ DTTR_MODS_GRAPHICS_DEVICE_LOST

#define DTTR_MODS_GRAPHICS_DEVICE_LOST   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceLost(const DTTR_Mods_GraphicsContext *ctx)

Definition at line 322 of file dttr_mods.h.

◆ DTTR_MODS_GRAPHICS_DEVICE_RESTORED

#define DTTR_MODS_GRAPHICS_DEVICE_RESTORED   DTTR_EXPORT void DTTR_Mod_GraphicsDeviceRestored(const DTTR_Mods_GraphicsContext *ctx)

Definition at line 325 of file dttr_mods.h.

◆ DTTR_MODS_IMGUI_BEGIN

#define DTTR_MODS_IMGUI_BEGIN   DTTR_EXPORT void DTTR_Mod_ImGuiBegin(const DTTR_Mods_RenderContext *ctx)

Definition at line 301 of file dttr_mods.h.

◆ DTTR_MODS_IMGUI_END

#define DTTR_MODS_IMGUI_END   DTTR_EXPORT void DTTR_Mod_ImGuiEnd(const DTTR_Mods_RenderContext *ctx)

Definition at line 304 of file dttr_mods.h.

◆ DTTR_MODS_INFO

#define DTTR_MODS_INFO ( mod_name,
mod_version,
mod_author )
Value:
static const DTTR_Mods_Info dttr_mod_info_ = { \
mod_name, \
mod_version, \
mod_author, \
}; \
DTTR_EXPORT const DTTR_Mods_Info *DTTR_Mod_Info() { \
return &dttr_mod_info_; \
}

Definition at line 239 of file dttr_mods.h.

◆ DTTR_MODS_INIT

#define DTTR_MODS_INIT
Value:
static bool dttr_mod_init_(const DTTR_Mods_Context *); \
DTTR_EXPORT bool DTTR_Mod_Init(const DTTR_Mods_Context *ctx) { \
return false; \
} \
return dttr_mod_init_(ctx); \
} \
static bool dttr_mod_init_(const DTTR_Mods_Context *ctx)
static bool DTTR_Mods_ContextIsCompatible(const DTTR_Mods_Context *ctx)
Definition dttr_mods.h:249

Definition at line 255 of file dttr_mods.h.

◆ DTTR_MODS_INPUT_MODE_CHANGED

#define DTTR_MODS_INPUT_MODE_CHANGED   DTTR_EXPORT void DTTR_Mod_InputModeChanged(const DTTR_Mods_InputContext *ctx)

Definition at line 339 of file dttr_mods.h.

◆ DTTR_MODS_LATE_INIT

#define DTTR_MODS_LATE_INIT   DTTR_EXPORT void DTTR_Mod_LateInit()

Definition at line 267 of file dttr_mods.h.

◆ DTTR_MODS_LOG

#define DTTR_MODS_LOG ( ctx,
level,
... )
Value:
do { \
if ((ctx)->api->log_is_enabled(level)) { \
(ctx)->api->log_unchecked(level, __FILE__, __LINE__, __VA_ARGS__); \
} \
} while (0)

Definition at line 212 of file dttr_mods.h.

◆ DTTR_MODS_LOG_DEBUG

#define DTTR_MODS_LOG_DEBUG ( ctx,
... )
Value:
#define DTTR_MODS_LOG_LVL_DEBUG
Definition dttr_mods.h:206
#define DTTR_MODS_LOG(ctx, level,...)
Definition dttr_mods.h:212

Definition at line 220 of file dttr_mods.h.

Referenced by dttr_sidecar_install_pcdogs_patch_group(), and install_pointer_hook().

◆ DTTR_MODS_LOG_ERROR

#define DTTR_MODS_LOG_ERROR ( ctx,
... )

◆ DTTR_MODS_LOG_FATAL

#define DTTR_MODS_LOG_FATAL ( ctx,
... )
Value:
#define DTTR_MODS_LOG_LVL_FATAL
Definition dttr_mods.h:210

Definition at line 228 of file dttr_mods.h.

◆ DTTR_MODS_LOG_INFO

#define DTTR_MODS_LOG_INFO ( ctx,
... )
Value:
#define DTTR_MODS_LOG_LVL_INFO
Definition dttr_mods.h:207

Definition at line 222 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_DEBUG

#define DTTR_MODS_LOG_LVL_DEBUG   1

Definition at line 206 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_ERROR

#define DTTR_MODS_LOG_LVL_ERROR   4

Definition at line 209 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_FATAL

#define DTTR_MODS_LOG_LVL_FATAL   5

Definition at line 210 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_INFO

#define DTTR_MODS_LOG_LVL_INFO   2

Definition at line 207 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_TRACE

#define DTTR_MODS_LOG_LVL_TRACE   0

Definition at line 205 of file dttr_mods.h.

◆ DTTR_MODS_LOG_LVL_WARN

#define DTTR_MODS_LOG_LVL_WARN   3

Definition at line 208 of file dttr_mods.h.

◆ DTTR_MODS_LOG_TRACE

#define DTTR_MODS_LOG_TRACE ( ctx,
... )
Value:
#define DTTR_MODS_LOG_LVL_TRACE
Definition dttr_mods.h:205

Definition at line 218 of file dttr_mods.h.

◆ DTTR_MODS_LOG_WARN

#define DTTR_MODS_LOG_WARN ( ctx,
... )
Value:
#define DTTR_MODS_LOG_LVL_WARN
Definition dttr_mods.h:208

Definition at line 224 of file dttr_mods.h.

◆ DTTR_MODS_OVERLAY_VISIBLE_CHANGED

#define DTTR_MODS_OVERLAY_VISIBLE_CHANGED   DTTR_EXPORT void DTTR_Mod_OverlayVisibleChanged(bool visible)

Definition at line 307 of file dttr_mods.h.

◆ DTTR_MODS_RENDER

#define DTTR_MODS_RENDER   DTTR_EXPORT void DTTR_Mod_Render(const DTTR_Mods_RenderContext *ctx)

Definition at line 350 of file dttr_mods.h.

◆ DTTR_MODS_RENDER_GAME

#define DTTR_MODS_RENDER_GAME   DTTR_EXPORT void DTTR_Mod_RenderGame(const DTTR_Mods_RenderGameContext *ctx)

Definition at line 346 of file dttr_mods.h.

◆ DTTR_MODS_SHOULD_ADVANCE_GAME_FRAME

#define DTTR_MODS_SHOULD_ADVANCE_GAME_FRAME   DTTR_EXPORT bool DTTR_Mod_ShouldAdvanceGameFrame()

Definition at line 354 of file dttr_mods.h.

◆ DTTR_MODS_TICK

#define DTTR_MODS_TICK   DTTR_EXPORT void DTTR_Mod_Tick()

Definition at line 266 of file dttr_mods.h.

◆ DTTR_MODS_WINDOW_CREATED

#define DTTR_MODS_WINDOW_CREATED   DTTR_EXPORT void DTTR_Mod_WindowCreated(const DTTR_Mods_WindowContext *ctx)

Definition at line 310 of file dttr_mods.h.

◆ DTTR_MODS_WINDOW_DESTROYING

#define DTTR_MODS_WINDOW_DESTROYING   DTTR_EXPORT void DTTR_Mod_WindowDestroying(const DTTR_Mods_WindowContext *ctx)

Definition at line 316 of file dttr_mods.h.

◆ DTTR_MODS_WINDOW_RESIZED

#define DTTR_MODS_WINDOW_RESIZED   DTTR_EXPORT void DTTR_Mod_WindowResized(const DTTR_Mods_WindowContext *ctx)

Definition at line 313 of file dttr_mods.h.

Typedef Documentation

◆ DTTR_Mods_AfterEventFn

typedef void(* DTTR_Mods_AfterEventFn) (const SDL_Event *event, bool consumed)

Definition at line 196 of file dttr_mods.h.

◆ DTTR_Mods_AfterGameFrameFn

typedef void(* DTTR_Mods_AfterGameFrameFn) (const DTTR_Mods_FrameContext *ctx)

Definition at line 181 of file dttr_mods.h.

◆ DTTR_Mods_AfterPresentFn

typedef void(* DTTR_Mods_AfterPresentFn) (const DTTR_Mods_PresentContext *ctx)

Definition at line 183 of file dttr_mods.h.

◆ DTTR_Mods_BeforeEventFn

typedef bool(* DTTR_Mods_BeforeEventFn) (const SDL_Event *event)

Definition at line 195 of file dttr_mods.h.

◆ DTTR_Mods_BeforeGameFrameFn

typedef void(* DTTR_Mods_BeforeGameFrameFn) (const DTTR_Mods_FrameContext *ctx)

Definition at line 180 of file dttr_mods.h.

◆ DTTR_Mods_BeforePresentFn

typedef void(* DTTR_Mods_BeforePresentFn) (const DTTR_Mods_PresentContext *ctx)

Definition at line 182 of file dttr_mods.h.

◆ DTTR_Mods_BeforeUnloadFn

typedef void(* DTTR_Mods_BeforeUnloadFn) ()

Definition at line 107 of file dttr_mods.h.

◆ DTTR_Mods_CleanupFn

typedef void(* DTTR_Mods_CleanupFn) ()

Definition at line 102 of file dttr_mods.h.

◆ DTTR_Mods_EventFn

typedef bool(* DTTR_Mods_EventFn) (const SDL_Event *event)

Definition at line 104 of file dttr_mods.h.

◆ DTTR_Mods_FrameBeginFn

typedef void(* DTTR_Mods_FrameBeginFn) (const DTTR_Mods_FrameContext *ctx)

Definition at line 179 of file dttr_mods.h.

◆ DTTR_Mods_FrameEndFn

typedef void(* DTTR_Mods_FrameEndFn) (const DTTR_Mods_FrameContext *ctx)

Definition at line 184 of file dttr_mods.h.

◆ DTTR_Mods_GameFrameAdvancedFn

typedef void(* DTTR_Mods_GameFrameAdvancedFn) ()

Definition at line 200 of file dttr_mods.h.

◆ DTTR_Mods_GameFrameBlockedFn

typedef void(* DTTR_Mods_GameFrameBlockedFn) ()

Definition at line 201 of file dttr_mods.h.

◆ DTTR_Mods_GraphicsDeviceCreatedFn

typedef void(* DTTR_Mods_GraphicsDeviceCreatedFn) (const DTTR_Mods_GraphicsContext *ctx)

Definition at line 191 of file dttr_mods.h.

◆ DTTR_Mods_GraphicsDeviceDestroyingFn

typedef void(* DTTR_Mods_GraphicsDeviceDestroyingFn) (const DTTR_Mods_GraphicsContext *ctx)

Definition at line 194 of file dttr_mods.h.

◆ DTTR_Mods_GraphicsDeviceLostFn

typedef void(* DTTR_Mods_GraphicsDeviceLostFn) (const DTTR_Mods_GraphicsContext *ctx)

Definition at line 192 of file dttr_mods.h.

◆ DTTR_Mods_GraphicsDeviceRestoredFn

typedef void(* DTTR_Mods_GraphicsDeviceRestoredFn) (const DTTR_Mods_GraphicsContext *ctx)

Definition at line 193 of file dttr_mods.h.

◆ DTTR_Mods_ImGuiBeginFn

typedef void(* DTTR_Mods_ImGuiBeginFn) (const DTTR_Mods_RenderContext *ctx)

Definition at line 185 of file dttr_mods.h.

◆ DTTR_Mods_ImGuiEndFn

typedef void(* DTTR_Mods_ImGuiEndFn) (const DTTR_Mods_RenderContext *ctx)

Definition at line 186 of file dttr_mods.h.

◆ DTTR_Mods_InfoFn

typedef const DTTR_Mods_Info *(* DTTR_Mods_InfoFn) ()

Definition at line 105 of file dttr_mods.h.

◆ DTTR_Mods_InitFn

typedef bool(* DTTR_Mods_InitFn) (const DTTR_Mods_Context *ctx)

Definition at line 101 of file dttr_mods.h.

◆ DTTR_Mods_InputModeChangedFn

typedef void(* DTTR_Mods_InputModeChangedFn) (const DTTR_Mods_InputContext *ctx)

Definition at line 197 of file dttr_mods.h.

◆ DTTR_Mods_LateInitFn

typedef void(* DTTR_Mods_LateInitFn) ()

Definition at line 106 of file dttr_mods.h.

◆ DTTR_Mods_LogFn

typedef void(* DTTR_Mods_LogFn) (int level, const char *file, int line, const char *fmt,...)

Definition at line 46 of file dttr_mods.h.

◆ DTTR_Mods_LogIsEnabledFn

typedef bool(* DTTR_Mods_LogIsEnabledFn) (int level)

Definition at line 53 of file dttr_mods.h.

◆ DTTR_Mods_OverlayVisibleChangedFn

typedef void(* DTTR_Mods_OverlayVisibleChangedFn) (bool visible)

Definition at line 187 of file dttr_mods.h.

◆ DTTR_Mods_RenderFn

typedef void(* DTTR_Mods_RenderFn) (const DTTR_Mods_RenderContext *ctx)

Definition at line 177 of file dttr_mods.h.

◆ DTTR_Mods_RenderGameFn

typedef void(* DTTR_Mods_RenderGameFn) (const DTTR_Mods_RenderGameContext *ctx)

Definition at line 176 of file dttr_mods.h.

◆ DTTR_Mods_ShouldAdvanceGameFrameFn

typedef bool(* DTTR_Mods_ShouldAdvanceGameFrameFn) ()

Definition at line 199 of file dttr_mods.h.

◆ DTTR_Mods_TickFn

typedef void(* DTTR_Mods_TickFn) ()

Definition at line 103 of file dttr_mods.h.

◆ DTTR_Mods_WindowCreatedFn

typedef void(* DTTR_Mods_WindowCreatedFn) (const DTTR_Mods_WindowContext *ctx)

Definition at line 188 of file dttr_mods.h.

◆ DTTR_Mods_WindowDestroyingFn

typedef void(* DTTR_Mods_WindowDestroyingFn) (const DTTR_Mods_WindowContext *ctx)

Definition at line 190 of file dttr_mods.h.

◆ DTTR_Mods_WindowResizedFn

typedef void(* DTTR_Mods_WindowResizedFn) (const DTTR_Mods_WindowContext *ctx)

Definition at line 189 of file dttr_mods.h.

◆ DTTR_Mods_WriteExceptionReportFn

typedef bool(* DTTR_Mods_WriteExceptionReportFn) (const DTTR_Mods_ExceptionReportRequest *request, DTTR_Mods_ExceptionReport *report)

Definition at line 41 of file dttr_mods.h.

◆ SDL_Event

typedef union SDL_Event SDL_Event

Definition at line 20 of file dttr_mods.h.

◆ SDL_Window

typedef struct SDL_Window SDL_Window

Definition at line 19 of file dttr_mods.h.

Enumeration Type Documentation

◆ DTTR_Mods_GraphicsBackend

Enumerator
DTTR_MODS_GRAPHICS_BACKEND_UNKNOWN 
DTTR_MODS_GRAPHICS_BACKEND_SDL_GPU 
DTTR_MODS_GRAPHICS_BACKEND_OPENGL 

Definition at line 140 of file dttr_mods.h.

Function Documentation

◆ DTTR_Mods_ContextIsCompatible()

bool DTTR_Mods_ContextIsCompatible ( const DTTR_Mods_Context * ctx)
inlinestatic

Definition at line 249 of file dttr_mods.h.

References ctx, and DTTR_SDK_ABI_VERSION.

◆ DTTR_Mods_GetWriteExceptionReportFn()

DTTR_Mods_WriteExceptionReportFn DTTR_Mods_GetWriteExceptionReportFn ( const DTTR_Mods_API * api)
inlinestatic