Larger debug text for retina display (#3109)

* Add Init.Resolution.scaleDebug

* clamp scale to BGFX_CONFIG_MAX_SCALE_DEBUG

* update version

* Use textWdith/textHeight in helloworld
This commit is contained in:
云风
2023-06-14 09:17:38 +08:00
committed by GitHub
parent b5471d14f8
commit 498c34273b
12 changed files with 33 additions and 15 deletions

View File

@@ -647,6 +647,7 @@ namespace bgfx
uint32_t reset; //!< Reset parameters.
uint8_t numBackBuffers; //!< Number of back buffers.
uint8_t maxFrameLatency; //!< Maximum frame latency.
uint8_t scaleDebug; //!< Scale factor for debug view.
};
/// Initialization parameters used by `bgfx::init`.

View File

@@ -639,6 +639,7 @@ typedef struct bgfx_resolution_s
uint32_t reset; /** Reset parameters. */
uint8_t numBackBuffers; /** Number of back buffers. */
uint8_t maxFrameLatency; /** Maximum frame latency. */
uint8_t scaleDebug; /** Scale factor for debug view. */
} bgfx_resolution_t;

View File

@@ -15,7 +15,7 @@
#ifndef BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_API_VERSION UINT32_C(118)
#define BGFX_API_VERSION UINT32_C(119)
/**
* Color RGB/alpha/depth write. When it's not specified write will be disabled.