mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-09-28 17:58:01 +03:00
Define a set of fixed modes covering our use-cases to allow rendering 4:3 games to a pillarbox on widescreen monitors.
28 lines
734 B
C
28 lines
734 B
C
#pragma once
|
|
|
|
/**
|
|
* Different modes for scaling different source resolutions to target
|
|
* resolutions including keeping the aspect ratio
|
|
*/
|
|
enum patch_gfx_scale_mode {
|
|
PATCH_GFX_SCALE_MODE_INVALID = 0,
|
|
PATCH_GFX_SCALE_MODE_SD_480_TO_PILLARBOX_HD_720 = 1,
|
|
PATCH_GFX_SCALE_MODE_SD_480_TO_PILLARBOX_HD_1080 = 2,
|
|
PATCH_GFX_SCALE_MODE_SD_480_TO_SD_960 = 3,
|
|
PATCH_GFX_SCALE_MODE_HD_720_TO_HD_1080 = 4,
|
|
};
|
|
|
|
/**
|
|
* Initialize the patch module
|
|
*
|
|
* This takes care of running the games on non NVIDIA cards
|
|
*/
|
|
void patch_gfx_init();
|
|
|
|
/**
|
|
* Scale the rendered output according to the given mode (see enum)
|
|
*
|
|
* @param scale_mode The scaling mode to apply
|
|
*/
|
|
void patch_gfx_scale(enum patch_gfx_scale_mode scale_mode);
|