102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_RendererVtbl Struct Reference

Backend-specific operations dispatched through function pointers. More...

#include <graphics_private.h>

Data Fields

void(* begin_frame )(DTTR_BackendState *state)
void(* end_frame )(DTTR_BackendState *state)
bool(* present_video_frame_bgra )(DTTR_BackendState *state, const uint8_t *pixels, int width, int height, int stride)
bool(* resize )(DTTR_BackendState *state, int width, int height)
void(* cleanup )(DTTR_BackendState *state)
const char *(* get_driver_name )(const DTTR_BackendState *state)
void(* defer_texture_destroy )(DTTR_BackendState *state, int texture_index)

Detailed Description

Backend-specific operations dispatched through function pointers.

Definition at line 134 of file graphics_private.h.

Field Documentation

◆ begin_frame

void(* DTTR_RendererVtbl::begin_frame) (DTTR_BackendState *state)

Definition at line 135 of file graphics_private.h.

◆ cleanup

void(* DTTR_RendererVtbl::cleanup) (DTTR_BackendState *state)

Definition at line 145 of file graphics_private.h.

◆ defer_texture_destroy

void(* DTTR_RendererVtbl::defer_texture_destroy) (DTTR_BackendState *state, int texture_index)

Definition at line 147 of file graphics_private.h.

◆ end_frame

void(* DTTR_RendererVtbl::end_frame) (DTTR_BackendState *state)

Definition at line 136 of file graphics_private.h.

◆ get_driver_name

const char *(* DTTR_RendererVtbl::get_driver_name) (const DTTR_BackendState *state)

Definition at line 146 of file graphics_private.h.

◆ present_video_frame_bgra

bool(* DTTR_RendererVtbl::present_video_frame_bgra) (DTTR_BackendState *state, const uint8_t *pixels, int width, int height, int stride)

Definition at line 137 of file graphics_private.h.

◆ resize

bool(* DTTR_RendererVtbl::resize) (DTTR_BackendState *state, int width, int height)

Definition at line 144 of file graphics_private.h.


The documentation for this struct was generated from the following file: