mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
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:
@@ -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`.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user